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