1 |
pam-fi |
1.1.2.1 |
/* |
2 |
|
|
* TrkRigCut.h |
3 |
|
|
* |
4 |
|
|
* Created on: 09-apr-2010 |
5 |
|
|
* Author: S. Ricciarini |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file TrkYSensCut.h The TrkYSensCut class definition file */ |
9 |
|
|
|
10 |
|
|
#ifndef TRKYSENSCUT_H_ |
11 |
|
|
#define TRKYSENSCUT_H_ |
12 |
|
|
|
13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
|
15 |
|
|
/*! @brief The TRK Y sensor cut. |
16 |
|
|
* This cut selects only events for which the TRK hit sensor id. sensorId. |
17 |
|
|
*/ |
18 |
|
|
class TrkYSensCut: public PamCut { |
19 |
|
|
|
20 |
|
|
public: |
21 |
|
|
/*! @brief Constructor. |
22 |
|
|
* |
23 |
|
|
* @param cutName The cut's name. |
24 |
pam-fi |
1.1.2.2 |
* @param sensorId The TRK sensor id. along Y (0-1 for increasing Y) |
25 |
pam-fi |
1.1.2.1 |
*/ |
26 |
|
|
TrkYSensCut(const char *cutName, Int_t sensorId) : |
27 |
|
|
PamCut(cutName), _sensorId(sensorId) { |
28 |
|
|
} |
29 |
|
|
/*! @brief Destructor. */ |
30 |
|
|
~TrkYSensCut() { |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
/*! @brief The rigidity check. |
34 |
|
|
* |
35 |
|
|
* @param event The event to analyze. |
36 |
|
|
* @return #CUTOK if the rigidity is greater than the threshold |
37 |
|
|
* @return 0 otherwise. |
38 |
|
|
*/ |
39 |
|
|
int Check(PamLevel2 *event); |
40 |
|
|
|
41 |
|
|
private: |
42 |
|
|
|
43 |
|
|
Int_t _sensorId; |
44 |
|
|
|
45 |
|
|
}; |
46 |
|
|
#endif /* TRKYSENSCUT_H_ */ |