IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
RigidBodiesProfileHandler.h
Go to the documentation of this file.
1/**
2 * \file IMP/saxs/RigidBodiesProfileHandler.h
3 * \brief
4 *
5 * \authors Dina Schneidman
6 * Copyright 2007-2022 IMP Inventors. All rights reserved.
7 *
8 */
9
10#ifndef IMPSAXS_RIGID_BODIES_PROFILE_HANDLER_H
11#define IMPSAXS_RIGID_BODIES_PROFILE_HANDLER_H
12
13#include <IMP/saxs/saxs_config.h>
14#include <IMP/saxs/Profile.h>
16
18
19#include <IMP/Model.h>
20
21#include <IMP/Object.h>
22#include <IMP/Pointer.h>
23
24IMPSAXS_BEGIN_NAMESPACE
25
26//! Handle the profile for a set of particles, which may include rigid bodies
27class IMPSAXSEXPORT RigidBodiesProfileHandler : public Object {
28 public:
29 RigidBodiesProfileHandler(const Particles& particles,
30 FormFactorType ff_type = HEAVY_ATOMS);
31
32 void compute_profile(Profile* model_profile) const;
33
34 // TODO: implement
35 // void compute_profile_partial(Profile* model_profile) const;
36
37 void compute_derivatives(const DerivativeCalculator* dc,
38 const Profile* model_profile,
39 const Vector<double>& effect_size,
40 DerivativeAccumulator* acc) const;
41
42 ModelObjectsTemp do_get_inputs() const;
43
44 FormFactorType get_form_factor_type() const { return ff_type_; }
45
46 IMP_OBJECT_METHODS(RigidBodiesProfileHandler);
47
48 protected:
49 Particles particles_; // non-rigid bodies particles
50 Vector<core::RigidBody> rigid_bodies_decorators_; // rigid bodies
51 Vector<Particles> rigid_bodies_; // rigid bodies particles
52 // non-changing part of the profile
53 PointerMember<Profile> rigid_bodies_profile_;
54 FormFactorType ff_type_; // type of the form factors to use
55};
56
57IMPSAXS_END_NAMESPACE
58
59#endif /* IMPSAXS_RIGID_BODIES_PROFILE_HANDLER_H */
A class for computing SAXS derivatives.
Storage of a model, its restraints, constraints and particles.
A shared base class to help in debugging and things.
A nullptr-initialized pointer to an IMP Object.
A class for profile storing and computation.
Class for adding derivatives from restraints to the model.
Object(std::string name)
Construct an object with the given name.
A more IMP-like version of the std::vector.
Definition Vector.h:60
FormFactorType
type of the form factors for profile calculations
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
Definition base_types.h:138
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
functionality for defining rigid bodies
A smart pointer to a ref-counted Object that is a class member.
Definition Pointer.h:144