1 |
/* |
2 |
* CaloQtotCut.h |
3 |
* |
4 |
* Created on: 10-mar-2019 |
5 |
* Author: S. Ricciarini |
6 |
*/ |
7 |
|
8 |
/*! @file CaloQtotCut.h The CaloQtotCut class definition file */ |
9 |
|
10 |
#ifndef CALOQTOTCUT_H_ |
11 |
#define CALOQTOTCUT_H_ |
12 |
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
15 |
/*! @brief Cut on Calo Qtot variable. Events are discared if not inside the chosen interval of Qtot (total charge in calorimeter) |
16 |
*/ |
17 |
|
18 |
class CaloQtotCut: public PamCut { |
19 |
|
20 |
public: |
21 |
/*! @brief The calorimeter Qtot cut. |
22 |
* @param cutName The name of the cut. |
23 |
* @param qTotMin The minimum threshold for qtot (default: 0). |
24 |
* @param qTotMax The minimum threshold for qtot (default: 1000000000). |
25 |
*/ |
26 |
CaloQtotCut(const char *cutName, Float_t qTotMin=0., Float_t qTotMax=1000000000.) : |
27 |
PamCut(cutName), _qTotMin(qTotMin), _qTotMax(qTotMax) { |
28 |
} |
29 |
|
30 |
/*! @brief Destructor. */ |
31 |
~CaloQtotCut() { |
32 |
} |
33 |
|
34 |
/*! @brief The non-interacting track check. |
35 |
* |
36 |
* @param event The event to analyze. |
37 |
* @return #CUTOK if the ratio between the charge released along the track |
38 |
* and the total released charge is greater than qRatioMin. |
39 |
* @return 0 otherwise. |
40 |
*/ |
41 |
int Check(PamLevel2 *event); |
42 |
|
43 |
private: |
44 |
|
45 |
Float_t _qTotMin, _qTotMax; |
46 |
|
47 |
}; |
48 |
#endif /* CALOQTOTCUT_H_ */ |