1 |
/* |
2 |
* TrkDedxHeCut.h |
3 |
* |
4 |
* Created on: 28/gen/2010 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
|
8 |
#ifndef TRKDEDXHECUT_H_ |
9 |
#define TRKDEDXHECUT_H_ |
10 |
|
11 |
#include "../../PamCutBase/PamCutBase.h" |
12 |
|
13 |
/*! @brief The dE/dX cut to select He |
14 |
* This cut discards all the events whose rigidity modulus and dE/dX (both given by TRK) are outside a pre-defined band |
15 |
* (defined by E. Vannuccini and N. Mori). The function defining the upper and lower limits of the band is: dE/dx = a + b/R^2, |
16 |
* where a and b are parameters which take different values for the upper and lower limit. |
17 |
* CUT DEPENDENCIES: TrkPhSinCut for object TrkTrack |
18 |
*/ |
19 |
class TrkDedxHeCut: public PamCut { |
20 |
|
21 |
public: |
22 |
|
23 |
/*! @brief Constructor. |
24 |
* |
25 |
* @param cutName The cut's name. |
26 |
*/ |
27 |
TrkDedxHeCut(const char *cutName, const char *trkAlg) : |
28 |
PamCut(cutName), _trkAlg(trkAlg) { |
29 |
} |
30 |
|
31 |
/*! @brief Destructor. */ |
32 |
~TrkDedxHeCut() { |
33 |
} |
34 |
|
35 |
/*! @brief The tracker dE/dx vs rigidity check. |
36 |
* |
37 |
* @param event The event to analyze. |
38 |
* @return #CUTOK if the event lies inside the helium band |
39 |
* @return 0 otherwise |
40 |
*/ |
41 |
int Check(PamLevel2 *event); |
42 |
|
43 |
private: |
44 |
|
45 |
const char *_trkAlg; |
46 |
|
47 |
}; |
48 |
#endif /* TRKDEDXHECUT_H_ */ |