1 |
/* |
2 |
* TrkRigMDRCut.h |
3 |
* |
4 |
* Created on: 07/ago/2009 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
|
8 |
/*! @file TrkRigMDRCut.h The TrkRigMDRCut class definition file */ |
9 |
|
10 |
#ifndef TRKRIGMDRCUT_H_ |
11 |
#define TRKRIGMDRCUT_H_ |
12 |
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
15 |
/*! @brief The rigidity cut. |
16 |
* This cut discards all the events whose absolute rigidity multiplied by a constant |
17 |
* factor is greater than the MDR. |
18 |
*/ |
19 |
class TrkRigMDRCut: public PamCut { |
20 |
|
21 |
public: |
22 |
/*! @brief Constructor. |
23 |
* |
24 |
* @param cutName The cut's name. |
25 |
* @param MDRFactor The MDR Factor (see #Check). |
26 |
*/ |
27 |
TrkRigMDRCut(const char *cutName, float MDRFactor = 1.) : |
28 |
PamCut(cutName), _MDRFactor(MDRFactor) { |
29 |
} |
30 |
/*! @brief Destructor. */ |
31 |
~TrkRigMDRCut() { |
32 |
} |
33 |
|
34 |
/*! @brief The rigidity check. |
35 |
* |
36 |
* @param event The event to analyze. |
37 |
* @return #CUTOK if |R|*MDRFactor <= MDR |
38 |
* @return 0 otherwise. |
39 |
*/ |
40 |
int Check(PamLevel2 *event); |
41 |
|
42 |
private: |
43 |
|
44 |
float _MDRFactor; |
45 |
|
46 |
}; |
47 |
#endif /* TRKRIGMDRCUT_H_ */ |