|
ROOTPWA
|
#include <amplitudeTreeLeaf.h>
Public Member Functions | |
| amplitudeTreeLeaf () | |
| virtual | ~amplitudeTreeLeaf () |
| void | clear () |
| clears all subamps and subamp labels | |
| amplitudeTreeLeaf & | operator= (const amplitudeTreeLeaf &) |
| amplitudeTreeLeaf & | operator+= (const amplitudeTreeLeaf &) |
| adds all subamps of two amplitudeTreeLeafs with same set of subamps | |
| amplitudeTreeLeaf & | operator-= (const amplitudeTreeLeaf &) |
| subtracts all subamps of two amplitudeTreeLeafs with same set of subamps | |
| template<typename T > | |
| amplitudeTreeLeaf & | operator*= (const T &factor) |
| muliplies all subamps with factor | |
| template<typename T > | |
| amplitudeTreeLeaf & | operator/= (const T &factor) |
| divides all subamps by factor | |
| unsigned int | nmbIncohSubAmps () const |
| returns number of incoherent subamps | |
| bool | containsIncohSubAmp (const std::string &subAmpLabel) const |
| unsigned int | incohSubAmpIndex (const std::string &subAmpLabel) const |
| const std::string & | incohSubAmpName (const unsigned int subAmpIndex) const |
| const std::complex< double > & | incohSubAmp (const unsigned int index=0) const |
| returns incoherent subamp at index | |
| const std::complex< double > & | incohSubAmp (const std::string &subAmpLabel) const |
| returns incoherent subamp at index | |
| const std::complex< double > & | amp () const |
| returns first incoherent subamp (meant for cases where there is only one amplitude) | |
| void | defineIncohSubAmps (const std::vector< std::string > &subAmpLabels) |
| defines number of subamps for this amplitude and their labels; vector has to be more than one entry | |
| void | setIncohSubAmp (const std::complex< double > &, const unsigned int index=0) |
| sets incoherent subamp defined by index | |
| void | setAmp (const std::complex< double > &) |
| returns first incoherent subamp (meant for cases where there is only one amplitude) | |
| std::ostream & | print (std::ostream &out) const |
| prints amplitudes in human-readable form | |
Static Public Member Functions | |
| static bool | debug () |
| returns debug flag | |
| static void | setDebug (const bool debug=true) |
| sets debug flag | |
Private Types | |
| typedef std::map< std::string, unsigned int >::const_iterator | labelToIndexMapIterator |
Private Member Functions | |
| void | rebuildSubAmpLabelMap () |
| rebuilds label-to-index map for subamps | |
Private Attributes | |
| std::vector< std::complex < double > > | _incohSubAmps |
| sub-amplitudes to be added incoherently in intensity formula | |
| std::vector< std::string > | _incohSubAmpLabels |
| labels for subamps | |
| std::map< std::string, unsigned int > | _labelToIndexMap |
Static Private Attributes | |
| static bool | _debug = false |
| if set to true, debug messages are printed | |
Friends | |
| bool | operator== (const amplitudeTreeLeaf &lhsAmp, const amplitudeTreeLeaf &rhsAmp) |
Definition at line 55 of file amplitudeTreeLeaf.h.
|
private |
Definition at line 58 of file amplitudeTreeLeaf.h.
| amplitudeTreeLeaf::amplitudeTreeLeaf | ( | ) |
Definition at line 59 of file amplitudeTreeLeaf.cc.
|
virtual |
Definition at line 69 of file amplitudeTreeLeaf.cc.
|
inline |
returns first incoherent subamp (meant for cases where there is only one amplitude)
Definition at line 94 of file amplitudeTreeLeaf.h.
References incohSubAmp().
Referenced by setIncohSubAmp(), and rpwa::writeAmpFromTree().
| void amplitudeTreeLeaf::clear | ( | ) |
clears all subamps and subamp labels
Definition at line 73 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _incohSubAmps, and _labelToIndexMap.
Referenced by main().
| bool amplitudeTreeLeaf::containsIncohSubAmp | ( | const std::string & | subAmpLabel | ) | const |
Definition at line 128 of file amplitudeTreeLeaf.cc.
References _labelToIndexMap.
|
inlinestatic |
returns debug flag
Definition at line 105 of file amplitudeTreeLeaf.h.
References _debug.
Referenced by setDebug().
| void amplitudeTreeLeaf::defineIncohSubAmps | ( | const std::vector< std::string > & | subAmpLabels | ) |
defines number of subamps for this amplitude and their labels; vector has to be more than one entry
Definition at line 162 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _incohSubAmps, and rebuildSubAmpLabelMap().
Referenced by main().
|
inline |
returns incoherent subamp at index
Definition at line 89 of file amplitudeTreeLeaf.h.
References _incohSubAmps.
Referenced by amp(), operator+=(), operator-=(), rpwa::operator==(), and TPWALikelihood< complexT >::readDecayAmplitudes().
|
inline |
returns incoherent subamp at index
Definition at line 91 of file amplitudeTreeLeaf.h.
References _incohSubAmps, and incohSubAmpIndex().
| unsigned int amplitudeTreeLeaf::incohSubAmpIndex | ( | const std::string & | subAmpLabel | ) | const |
Definition at line 138 of file amplitudeTreeLeaf.cc.
References _labelToIndexMap.
Referenced by incohSubAmp(), and main().
| const string & amplitudeTreeLeaf::incohSubAmpName | ( | const unsigned int | subAmpIndex | ) | const |
Definition at line 150 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels.
|
inline |
returns number of incoherent subamps
Definition at line 83 of file amplitudeTreeLeaf.h.
References _incohSubAmps.
Referenced by operator*=(), operator+=(), operator-=(), operator/=(), rpwa::operator==(), print(), TPWALikelihood< complexT >::readDecayAmplitudes(), and rpwa::writeAmpFromTree().
|
inline |
muliplies all subamps with factor
Definition at line 155 of file amplitudeTreeLeaf.h.
References _incohSubAmps, i, and nmbIncohSubAmps().
| amplitudeTreeLeaf & amplitudeTreeLeaf::operator+= | ( | const amplitudeTreeLeaf & | amp | ) |
adds all subamps of two amplitudeTreeLeafs with same set of subamps
Definition at line 96 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _incohSubAmps, i, incohSubAmp(), and nmbIncohSubAmps().
| amplitudeTreeLeaf & amplitudeTreeLeaf::operator-= | ( | const amplitudeTreeLeaf & | amp | ) |
subtracts all subamps of two amplitudeTreeLeafs with same set of subamps
Definition at line 112 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _incohSubAmps, i, incohSubAmp(), and nmbIncohSubAmps().
|
inline |
divides all subamps by factor
Definition at line 166 of file amplitudeTreeLeaf.h.
References _incohSubAmps, i, and nmbIncohSubAmps().
| amplitudeTreeLeaf & amplitudeTreeLeaf::operator= | ( | const amplitudeTreeLeaf & | amp | ) |
Definition at line 83 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _incohSubAmps, and _labelToIndexMap.
| ostream & amplitudeTreeLeaf::print | ( | std::ostream & | out | ) | const |
prints amplitudes in human-readable form
Definition at line 184 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _incohSubAmps, i, and nmbIncohSubAmps().
Referenced by rpwa::operator<<().
|
private |
rebuilds label-to-index map for subamps
Definition at line 203 of file amplitudeTreeLeaf.cc.
References _incohSubAmpLabels, _labelToIndexMap, and i.
Referenced by defineIncohSubAmps().
|
inline |
returns first incoherent subamp (meant for cases where there is only one amplitude)
Definition at line 101 of file amplitudeTreeLeaf.h.
References setIncohSubAmp().
Referenced by rpwa::fillTreeFromAmp(), and main().
|
inlinestatic |
|
inline |
sets incoherent subamp defined by index
Definition at line 98 of file amplitudeTreeLeaf.h.
References _incohSubAmps, and amp().
|
friend |
Definition at line 130 of file amplitudeTreeLeaf.h.
|
staticprivate |
if set to true, debug messages are printed
Definition at line 113 of file amplitudeTreeLeaf.h.
Referenced by debug(), and setDebug().
|
private |
labels for subamps
Definition at line 116 of file amplitudeTreeLeaf.h.
Referenced by clear(), defineIncohSubAmps(), incohSubAmpName(), operator+=(), operator-=(), operator=(), print(), and rebuildSubAmpLabelMap().
|
private |
sub-amplitudes to be added incoherently in intensity formula
Definition at line 115 of file amplitudeTreeLeaf.h.
Referenced by clear(), defineIncohSubAmps(), incohSubAmp(), nmbIncohSubAmps(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), print(), and setIncohSubAmp().
|
private |
Definition at line 117 of file amplitudeTreeLeaf.h.
Referenced by clear(), containsIncohSubAmp(), incohSubAmpIndex(), operator=(), and rebuildSubAmpLabelMap().
1.8.1.2