/[PAMELA software]/PamCut/TrkCuts/TrkCalQualCut/TrkCalQualCut.h
ViewVC logotype

Contents of /PamCut/TrkCuts/TrkCalQualCut/TrkCalQualCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:08 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV, MAIN
CVS Tags: v0r00, Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

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_ */

  ViewVC Help
Powered by ViewVC 1.1.23