![]() |
Belle II Software
release-08-02-04
|
Base class for storing an algorithm determining the data one wants to have. More...
#include <AnalyzingAlgorithmBase.h>

Classes | |
| struct | TcPair |
| minimal struct for keeping track which tc is which More... | |
Public Member Functions | |
| 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 | |
| AnalyzingAlgorithmBase () | |
| constructor | |
| virtual | ~AnalyzingAlgorithmBase () |
| virtual destructor - derived classes need to write their own destructors if any other data members are added. | |
| 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 | |
| virtual DataType | calcData (const TCInfoType &) |
| virtual class to calculate data. More... | |
Static Public Member Functions | |
| 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 | |
Protected Member Functions | |
| AnalyzingAlgorithmBase (const AlgoritmType::Type &newID) | |
| constructor used for inheriting classes | |
| AnalyzingAlgorithmBase (const std::string &newID) | |
| constructor used for inheriting classes | |
| AnalyzingAlgorithmBase (const AnalyzingAlgorithmBase &algo)=delete | |
| copy constructor should not be used so delete it | |
| AnalyzingAlgorithmBase & | operator= (const AnalyzingAlgorithmBase &algo)=delete |
| also assignement constructor should not be used | |
| virtual const TCInfoType & | chooseCorrectTC (const TCInfoType &aTC) const |
| virtual class to determine the correct TC to be used for algorithm calculation. More... | |
| virtual const TcPair | chooseCorrectPairOfTCs (const TCInfoType &aTC) const |
| makes sure that TcPair.refTC and .testTC are correctly set - throws exeption if there are problems | |
Protected Attributes | |
| AlgoritmType::Type | m_iD |
| carries unique ID | |
Static Protected Attributes | |
| static VectorType | s_origin = VectorType(0, 0, 0) |
| stores the origin used for some calculations, can be set here More... | |
| static bool | m_storeRefTCDataForTestTC = false |
| if true, for testTC the values of attached refTC will be stored instead of own values. More... | |
Base class for storing an algorithm determining the data one wants to have.
Definition at line 31 of file AnalyzingAlgorithmBase.h.
|
inlinevirtual |
virtual class to calculate data.
takes two TCInfos
Reimplemented in AnalyzingAlgorithmValueQI< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValueDistSeed2IPZ< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValueDistSeed2IPXY< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValueDistSeed2IP< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValuePPhi< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValuePTheta< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValueP< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValuePT< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValuePZ< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValuePY< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmValuePX< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPositionXY< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPosition< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPTAngle< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPAngle< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPPhi< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPTheta< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualP< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPT< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPZ< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPY< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmResidualPX< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmTotalVEDep< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmTotalUEDep< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmTotalVClusters< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmTotalUClusters< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmLostVEDep< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmLostUEDep< DataType, TCInfoType, VectorType >, AnalyzingAlgorithmLostVClusters< DataType, TCInfoType, VectorType >, and AnalyzingAlgorithmLostUClusters< DataType, TCInfoType, VectorType >.
Definition at line 153 of file AnalyzingAlgorithmBase.h.
|
inlineprotectedvirtual |
virtual class to determine the correct TC to be used for algorithm calculation.
Definition at line 84 of file AnalyzingAlgorithmBase.h.