Class for storing an algorithm determining the residual (ref-test) of momentum in theta (in degrees)
More...
#include <AnalyzingAlgorithmResiduals.h>
|
| AnalyzingAlgorithmResidualPTheta () |
| constructor
|
|
DataType | calcData (const TCInfoType &aTC) override |
| returns the residual (ref-test) of momentum in theta (in degrees)
|
|
| BELLE2_DEFINE_EXCEPTION (No_refTC_Attached, "To given testTC no refTC was attached, could not provide valid data for algorithm - no value returned!") |
| this exception is thrown if m_storeRefTCDataForTestTC is true and no refTC could be found
|
|
bool | operator== (const AnalyzingAlgorithmBase &b) const |
| operator for comparison.
|
|
AlgoritmType::Type | getID () const |
| returns unique ID
|
|
std::string | getIDName () const |
| returns unique ID as a string
|
|
|
static VectorType & | getOrigin () |
| returns current value for the origin
|
|
static void | setOrigin (VectorType newOrigin) |
| set origin for all inherited classes
|
|
static bool | willRefTCdataBeUsed4TestTCs () |
| returns current choice for behavior of algorithms in terms of storing reference or testData for successfully matched TCs
|
|
static void | setWillRefTCdataBeUsed4TestTCs (bool newBehavior) |
| set behavior of algorithms in terms of storing reference or testData for successfully matched TCs
|
|
|
virtual const TCInfoType & | chooseCorrectTC (const TCInfoType &aTC) const |
| virtual class to determine the correct TC to be used for algorithm calculation.
|
|
virtual const TcPair | chooseCorrectPairOfTCs (const TCInfoType &aTC) const |
| makes sure that TcPair.refTC and .testTC are correctly set - throws exception if there are problems
|
|
|
static VectorType | s_origin |
| stores the origin used for some calculations, can be set here
|
|
static bool | m_storeRefTCDataForTestTC |
| if true, for testTC the values of attached refTC will be stored instead of own values.
|
|
template<class DataType, class TCInfoType, class VectorType>
class Belle2::AnalyzingAlgorithmResidualPTheta< DataType, TCInfoType, VectorType >
Class for storing an algorithm determining the residual (ref-test) of momentum in theta (in degrees)
Definition at line 118 of file AnalyzingAlgorithmResiduals.h.
◆ AnalyzingAlgorithmResidualPTheta()
template<class DataType, class TCInfoType, class VectorType>
constructor
Definition at line 121 of file AnalyzingAlgorithmResiduals.h.
121 : AnalyzingAlgorithmBase<DataType, TCInfoType, VectorType>
122 (AlgoritmType::AnalyzingAlgorithmResidualPTheta) {}
◆ calcData()
template<class DataType, class TCInfoType, class VectorType>
DataType calcData |
( |
const TCInfoType & | aTC | ) |
|
|
inlineoverridevirtual |
◆ chooseCorrectPairOfTCs()
template<class DataType, class TCInfoType, class VectorType>
virtual const TcPair chooseCorrectPairOfTCs |
( |
const TCInfoType & | aTC | ) |
const |
|
inlineprotectedvirtualinherited |
makes sure that TcPair.refTC and .testTC are correctly set - throws exception if there are problems
Definition at line 100 of file AnalyzingAlgorithmBase.h.
101 {
102
103 if (aTC.m_assignedTC == nullptr) { throw AnalyzingAlgorithmBase::No_refTC_Attached(); }
104
105 if (aTC.m_tcType == TCType::Reference or aTC.m_tcType == TCType::Lost) {
106 return TcPair(aTC, *aTC.m_assignedTC);
107 }
108 return TcPair(*aTC.m_assignedTC, aTC);
109 }
◆ chooseCorrectTC()
template<class DataType, class TCInfoType, class VectorType>
virtual const TCInfoType & chooseCorrectTC |
( |
const TCInfoType & | aTC | ) |
const |
|
inlineprotectedvirtualinherited |
virtual class to determine the correct TC to be used for algorithm calculation.
- throws exception if there are problems. More explanations @ m_storeRefTCDataForTestTC.
Definition at line 84 of file AnalyzingAlgorithmBase.h.
85 {
86
87 if (TCType::isReference(aTC.m_tcType)) { return aTC; }
88
89
90 if (m_storeRefTCDataForTestTC == false) { return aTC; }
91
92
93 if (aTC.m_assignedTC != nullptr) { return *aTC.m_assignedTC; }
94
95 throw AnalyzingAlgorithmBase::No_refTC_Attached();
96 }
◆ getID()
template<class DataType, class TCInfoType, class VectorType>
◆ getIDName()
template<class DataType, class TCInfoType, class VectorType>
std::string getIDName |
( |
| ) |
const |
|
inlineinherited |
◆ getOrigin()
template<class DataType, class TCInfoType, class VectorType>
static VectorType & getOrigin |
( |
| ) |
|
|
inlinestaticinherited |
◆ operator==()
template<class DataType, class TCInfoType, class VectorType>
◆ setOrigin()
template<class DataType, class TCInfoType, class VectorType>
static void setOrigin |
( |
VectorType | newOrigin | ) |
|
|
inlinestaticinherited |
◆ setWillRefTCdataBeUsed4TestTCs()
template<class DataType, class TCInfoType, class VectorType>
static void setWillRefTCdataBeUsed4TestTCs |
( |
bool | newBehavior | ) |
|
|
inlinestaticinherited |
set behavior of algorithms in terms of storing reference or testData for successfully matched TCs
Definition at line 149 of file AnalyzingAlgorithmBase.h.
149{ m_storeRefTCDataForTestTC = newBehavior; }
◆ willRefTCdataBeUsed4TestTCs()
template<class DataType, class TCInfoType, class VectorType>
static bool willRefTCdataBeUsed4TestTCs |
( |
| ) |
|
|
inlinestaticinherited |
returns current choice for behavior of algorithms in terms of storing reference or testData for successfully matched TCs
Definition at line 145 of file AnalyzingAlgorithmBase.h.
145{ return m_storeRefTCDataForTestTC; }
◆ m_iD
template<class DataType, class TCInfoType, class VectorType>
◆ m_storeRefTCDataForTestTC
template<class DataType, class TCInfoType, class VectorType>
bool m_storeRefTCDataForTestTC |
|
staticprotectedinherited |
if true, for testTC the values of attached refTC will be stored instead of own values.
- why are there values of the mcTC stored? we want to know the real data, not the guesses of the reconstructed data. Deviations of reference values to guesses of the reconstructed data will be stored in resiudals anyway.
Definition at line 64 of file AnalyzingAlgorithmBase.h.
◆ s_origin
template<class DataType, class TCInfoType, class VectorType>
The documentation for this class was generated from the following file: