16 |
* |
* |
17 |
* This class inherits from #EffCollection: it has selection and detector4 cuts and actions, and it |
* This class inherits from #EffCollection: it has selection and detector4 cuts and actions, and it |
18 |
* computes and saves the integrated detector efficiency. Plus, it will compute and save the efficiency |
* computes and saves the integrated detector efficiency. Plus, it will compute and save the efficiency |
19 |
* for each rigidity bin given to the constructor. |
* for each rigidity bin given to the constructor. The output consists of text files and a ROOT file |
20 |
|
* with the efficiency graph. |
21 |
* |
* |
22 |
* NOTE: to divide the events in rigidity bins, a physical track is required from which the |
* NOTE: to divide the events in rigidity bins, a physical track is required from which the |
23 |
* rigidity can be calculated. It is MANDATORY to add a #TrkPhSinCut object to the selection |
* rigidity can be calculated. It is MANDATORY to add a #TrkPhSinCut object to the selection |
32 |
|
|
33 |
/*! @brief Constructor. |
/*! @brief Constructor. |
34 |
* |
* |
35 |
* @param collectionName The collection's name. |
* @param collectionName The collection's name. The graph in the ROOT output will have the same name, so be |
36 |
|
* careful to name the collection respecting the C++ rules for the names of the variables |
37 |
|
* (eg. don't use - in the name) otherwise the graph will be unusable. |
38 |
* @param outFileBase The output file base name. It will produce the same file as the parent class #EffCollection |
* @param outFileBase The output file base name. It will produce the same file as the parent class #EffCollection |
39 |
* with the total efficiency, plus a similar file (named outFileBase + "-eff-rig.txt") with a |
* with the total efficiency, plus a similar file (named outFileBase + collection's name + "-rig.txt") |
40 |
* row for each rigidity bin. |
* with a row for each rigidity bin. At the beginning of each row there will be two additional columns |
41 |
|
* with the edges of the bin. Additionally, a ROOT file (outFileBase + collection's name +"-rig.root") |
42 |
|
* will be produced, containing the efficiency graph. |
43 |
* @param rigBinsFile The file with the rigidity bins. |
* @param rigBinsFile The file with the rigidity bins. |
44 |
* @param absRig If true, the absolute rigidity of the selected events will be considered.. |
* @param errMethod The method to use for error computation. Possible values are defined in #EffRigCollection_ErrMethod. |
45 |
*/ |
*/ |
46 |
EffRigCollection(const char *collectionName, TString outFileBase = "", TString rigBinsFile = "", bool absRig = false); |
EffRigCollection(const char *collectionName, TString outFileBase = "", TString rigBinsFile = "", int errMethod = |
47 |
|
EFFERR_ROOT); |
48 |
|
|
49 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
50 |
~EffRigCollection() { |
~EffRigCollection() { |
65 |
|
|
66 |
private: |
private: |
67 |
|
|
|
bool _absRig; |
|
68 |
vector<float> _bins; |
vector<float> _bins; |
69 |
vector<unsigned int> _selVector; |
vector<unsigned int> _selVector; |
70 |
vector<unsigned int> _detVector; |
vector<unsigned int> _detVector; |
71 |
|
|
72 |
unsigned int _outUp, _outDown; |
unsigned int _outUp, _outDown; |
73 |
|
|
74 |
}; |
}; |
75 |
|
|
76 |
#endif /* EFFRIGCOLLECTION_H_ */ |
#endif /* EFFRIGCOLLECTION_H_ */ |