1 |
/* |
2 |
* TofBetaRigCut.h |
3 |
* |
4 |
* Created on: 22-apr-2009 |
5 |
* Author: S. Ricciarini |
6 |
*/ |
7 |
|
8 |
/*! @file TofBetaRigHCut.h The TofBetaRigHCut class definition file */ |
9 |
|
10 |
#ifndef TOFBETARIGHCUT_H_ |
11 |
#define TOFBETARIGHCUT_H_ |
12 |
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
15 |
/*! @brief The match between TOF beta modulus and TRK beta modulus for H (p or d). |
16 |
* This cut discards all the events for which the absolute RELATIVE difference between TRK beta modulus (calculated from rigidity of TRK track, mass M=1 OR 2 and charge Z=1) and TOF beta modulus is greater than the threshold. |
17 |
* Rigidity is defined as p/Z (GV) where Z is the particle charge and p the momentum modulus. |
18 |
*/ |
19 |
class TofBetaRigHCut: public PamCut { |
20 |
|
21 |
public: |
22 |
/*! @brief Constructor. |
23 |
* |
24 |
* @param cutName The cut's name. |
25 |
* @param threshold The rigidity-difference threshold (in GV) |
26 |
*/ |
27 |
TofBetaRigHCut(const char *cutName, float threshold) : |
28 |
PamCut(cutName), _threshold(threshold) { |
29 |
|
30 |
} |
31 |
/*! @brief Destructor. */ |
32 |
~TofBetaRigHCut() { |
33 |
|
34 |
} |
35 |
|
36 |
/*! @brief The rigidity check. |
37 |
* |
38 |
* @param event The event to analyze. |
39 |
* @return #CUTOK if the beta difference is less than the threshold |
40 |
* @return 0 otherwise. |
41 |
*/ |
42 |
int Check(PamLevel2 *event); |
43 |
|
44 |
private: |
45 |
|
46 |
float _threshold; |
47 |
|
48 |
}; |
49 |
#endif /* TOFBETARIGHCUT_H_ */ |