10 |
#ifndef EFFRIGCOLLECTION_H_ |
#ifndef EFFRIGCOLLECTION_H_ |
11 |
#define EFFRIGCOLLECTION_H_ |
#define EFFRIGCOLLECTION_H_ |
12 |
|
|
13 |
#include "../EffCollection/EffCollection.h" |
#include "../BinnedEffCollection/BinnedEffCollection.h" |
14 |
|
|
15 |
/*! @brief A rigidity-binned efficiency collection |
/*! @brief A rigidity binned efficiency collection |
16 |
* |
* |
17 |
* This class inherits from #EffCollection: it has selection and detector4 cuts and actions, and it |
* This class inherits from #BinnedEffCollection: it only implements the #GetBinValue method |
18 |
* computes and saves the integrated detector efficiency. Plus, it will compute and save the efficiency |
* to return event rigidity with sign. |
|
* for each rigidity bin given to the constructor. The output consists of text files and a ROOT file |
|
|
* with the efficiency graph. |
|
19 |
* |
* |
20 |
* 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 |
21 |
* 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 |
24 |
* at the moment of rigidity computation). |
* at the moment of rigidity computation). |
25 |
* |
* |
26 |
*/ |
*/ |
27 |
class EffRigCollection: public EffCollection { |
class EffRigCollection: public BinnedEffCollection { |
28 |
|
|
29 |
public: |
public: |
30 |
|
|
51 |
|
|
52 |
} |
} |
53 |
|
|
54 |
/*! @brief Applies the selection and detector cuts to the current event. |
/*! @brief The value of binning parameter (rigidity). |
55 |
* |
* |
56 |
* @param event The event to analyze. |
* @param event The current event. |
57 |
* @return CUTOK if the event survives all the selection and detector cuts. |
* @return The rigidity (with sign) of current event. |
58 |
*/ |
*/ |
59 |
int ApplyCut(PamLevel2 *event); |
float GetBinValue(PamLevel2 *event); |
|
|
|
|
/*! @brief The post analysis task. |
|
|
* |
|
|
*/ |
|
|
void Finalize(); |
|
|
|
|
|
private: |
|
|
|
|
|
vector<float> _bins; |
|
|
vector<unsigned int> _selVector; |
|
|
vector<unsigned int> _detVector; |
|
|
|
|
|
unsigned int _outUp, _outDown; |
|
|
|
|
60 |
}; |
}; |
61 |
|
|
62 |
#endif /* EFFRIGCOLLECTION_H_ */ |
#endif /* EFFRIGCOLLECTION_H_ */ |