![]() |
AmpTools
|
#include <ConfigurationInfo.h>
Public Member Functions | |
AmplitudeInfo (const string &reactionName, const string &sumName, const string &Name) | |
string | reactionName () const |
string | sumName () const |
string | ampName () const |
string | fullName () const |
const vector< vector< string > > & | factors () const |
const vector< vector< int > > & | permutations () const |
const vector< AmplitudeInfo *> & | constraints () const |
bool | hasConstraint (AmplitudeInfo *constraint) const |
complex< double > | value () const |
bool | real () const |
bool | fixed () const |
string | scale () const |
const vector< ParameterInfo *> & | parameters () const |
void | display (string fileName="", bool append=true) |
void | clear () |
void | addFactor (const vector< string > &factor) |
void | addPermutation (const vector< int > &permutation) |
void | addConstraint (AmplitudeInfo *constraint) |
void | setValue (complex< double > value) |
void | setReal (bool real) |
void | setFixed (bool fixed) |
void | setScale (string scale) |
void | addParameter (ParameterInfo *parameter) |
void | removeConstraint (AmplitudeInfo *constraint) |
void | removeParameter (ParameterInfo *parameter) |
This class holds all information related to a single amplitude. In the construction of the intensity , where
indexes the coherent sums and i indexes the amplitudes, this class defines the
. The class is typically composed of a list of user-defined factors that are multiplied together to create the amplitude.
Definition at line 765 of file ConfigurationInfo.h.
|
inline |
The constructor: each amplitude is uniquely defined by a reaction, a coherent sum, and an amplitude name.
[in] | reactionName | the name of the reaction |
[in] | sumName | the name of the coherent sum the amplitude belongs to |
[in] | ampName | the name of the amplitude itself |
Definition at line 778 of file ConfigurationInfo.h.
void AmplitudeInfo::addConstraint | ( | AmplitudeInfo * | constraint | ) |
This adds the constraint that the production parameter of the current amplitude must be the same as the production parameter for the amplitude whose AmplitudeInfo is passed in. If the argument's list of constraints is not empty it creates constraints between those amplitudes and the current amplitude also.
[in] | constraint | a pointer to the AmplitudeInfo to which to constrain the current amplitude's production parameter |
Definition at line 841 of file ConfigurationInfo.cc.
|
inline |
This adds a new factor, i.e. a user-defined amplitude computing routine, to the amplitude.
[in] | factor | a vector of strings describing the factor. The first element of the vector is the name of the user's amplitude routine. The remaining elements are optional string arguments that are passed to the newAmplitude routine of the user-defined Amplitude |
Definition at line 921 of file ConfigurationInfo.h.
void AmplitudeInfo::addParameter | ( | ParameterInfo * | parameter | ) |
This associates some amplitude parameter described by the ParameterInfo objects with the current amplitude.
[in] | parameter | pointer the ParameterInfo object for the parameter |
Definition at line 894 of file ConfigurationInfo.cc.
|
inline |
This adds a new permutation to the amplitude. See documentation in the AmplitudeManager below for info about permutations.
Definition at line 929 of file ConfigurationInfo.h.
|
inline |
This returns the name of the amplitude.
Definition at line 801 of file ConfigurationInfo.h.
void AmplitudeInfo::clear | ( | ) |
This clears out all the internal data for this particular AmplitudeInfo object.
Definition at line 925 of file ConfigurationInfo.cc.
|
inline |
This returns a vector that contains AmplitudeInfo pointers for every other amplitude that is constrained to have the same production parameter as the current amplitude.
Definition at line 855 of file ConfigurationInfo.h.
void AmplitudeInfo::display | ( | string | fileName = "" , |
bool | append = true |
||
) |
Displays information about this amplitude to the screen or writes it to file if a file name is passed in.
[in] | fileName | (optional) name of file to write amplitude info to |
[in] | append | (optional) if true (default) information will be appended to the file, if false is passed in the file will be overwritten |
Definition at line 743 of file ConfigurationInfo.cc.
|
inline |
This returns information about all of the user-defined factors that make up the amplitude. It is a list of vectors – each item in the initial vector is a vector of strings. The first string in the vector specifies the name of the user-defined amplitude class that tells how to compute the amplitude factor. The remaining items in the vector of strings are string arguments that can be passed into the newAmplitude routine to create a new instance of the users amplitude. The length of the returned vector is the number of factors in the amplitude.
Definition at line 828 of file ConfigurationInfo.h.
|
inline |
|
inline |
This returns the "full name" of the reaction. It is obtained by concatenating togther the reaction name, sum name, and amplitude name with a double colon, e.g. reactionName::sumName::ampName
Definition at line 808 of file ConfigurationInfo.h.
bool AmplitudeInfo::hasConstraint | ( | AmplitudeInfo * | constraint | ) | const |
Check to see if this amplitude is constrained to another amplitude.
[in] | constraint | pointer to an AmplitudeInfo object |
Definition at line 859 of file ConfigurationInfo.cc.
|
inline |
This returns a vector of pointers to all of the ParameterInfo objects that are associated with this amplitude.
Definition at line 886 of file ConfigurationInfo.h.
|
inline |
This returns a vector of the different permutations for this amplitude. It is used to store additional permuations besides the default permutation and is used to setup the AmplitudeManager.
Definition at line 844 of file ConfigurationInfo.h.
|
inline |
This returns the name of the reaction for this amplitude.
Definition at line 791 of file ConfigurationInfo.h.
|
inline |
void AmplitudeInfo::removeConstraint | ( | AmplitudeInfo * | constraint | ) |
This removes a particular AmplitudeInfo from the list of constraints. It also removes itself from the list of constraints of each of the constrained Amplitudes.
[in] | constraint | a pointer to the AmplitudeInfo to be removed from the list of constraints |
Definition at line 871 of file ConfigurationInfo.cc.
void AmplitudeInfo::removeParameter | ( | ParameterInfo * | parameter | ) |
This removes an associated ParameterInfo pointer from the list of ParameterInfo objects associated with this amplitude.
[in] | parameter | a pointer to the ParameterInfo object to removed |
Definition at line 903 of file ConfigurationInfo.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This sets the initial value of the production parameter for a particular parameter.
[in] | value | the desired initial value |
Definition at line 949 of file ConfigurationInfo.h.
|
inline |
This returns the name of the sum for this amplitude.
Definition at line 796 of file ConfigurationInfo.h.
|
inline |
This returns the current value of the production parameter.
Definition at line 871 of file ConfigurationInfo.h.