1 |
/* |
2 |
* TrkCalQualCut.h |
3 |
* |
4 |
* Created on: 10-mar-2009 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
|
8 |
/*! @file TrkCalQualCut.h The TrkCalQualCut class definition file */ |
9 |
|
10 |
#ifndef TRKCALQUALCUT_H_ |
11 |
#define TRKCALQUALCUT_H_ |
12 |
|
13 |
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
15 |
/*! @enum TRKCAL_Values Tracker calibration flags */ |
16 |
enum TRKCAL_Values { |
17 |
TRKCAL_ONLINE, ///< Online calibration. |
18 |
TRKCAL_DEFAULT, ///< Default calibration. |
19 |
TRKCAL_BAD, ///< Bad calibration. |
20 |
}; |
21 |
|
22 |
/*! @brief The tracker calibration quality cut. |
23 |
*/ |
24 |
class TrkCalQualCut: public PamCut { |
25 |
|
26 |
public: |
27 |
/*! @brief Constructor. */ |
28 |
TrkCalQualCut(const char *cutName) : |
29 |
PamCut(cutName) { |
30 |
} |
31 |
/*! @brief Destructor. */ |
32 |
~TrkCalQualCut() { |
33 |
} |
34 |
|
35 |
/*! @brief The tracker calibration quality check. |
36 |
* |
37 |
* This method checks the calibration of the event and updates the calibration |
38 |
* information returned by #GetCalibration |
39 |
* |
40 |
* @param event The event to analyze. |
41 |
* @return #CUTOK if tracker calibration is online or default. |
42 |
* @return #TRKCAL_BAD otherwise. |
43 |
*/ |
44 |
int Check(PamLevel2 *event); |
45 |
|
46 |
/*! @brief Returns the calibration type of the last examined event |
47 |
* |
48 |
* @return #TRKCAL_BAD if the event has a bad calibration. |
49 |
* @return #TRKCAL_ONLINE if the event uses a validated online calibration. |
50 |
* @return #TRKCAL_DEFAULT if the event uses the default calibration. |
51 |
* |
52 |
*/ |
53 |
|
54 |
inline int GetCalibration(); |
55 |
|
56 |
private: |
57 |
int _calibration; |
58 |
}; |
59 |
#endif /* TRKCALQUALCUT_H_ */ |