/[PAMELA software]/PamCut/MiscCuts/DataQualCut/DataQualCut.h
ViewVC logotype

Contents of /PamCut/MiscCuts/DataQualCut/DataQualCut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Sep 5 13:02:32 2011 UTC (13 years, 2 months ago) by pam-fi
Branch: MAIN
CVS Tags: V9, HEAD
Changes since 1.3: +2 -3 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
Small fix in constructor's documentation.

1 /*
2 * DataQualCut.h
3 *
4 * Created on: 10-mar-2009
5 * Author: N. Mori, S. Ricciarini, E. Mocchiutti
6 */
7
8 #ifndef DATAQUALCUT_H_
9 #define DATAQUALCUT_H_
10
11 /*! @file DataQualCut.h The DataQualCut class definition file */
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15 /*! @brief The event and data quality cut.
16 * This cut ensures that all the data relative to the various detectors is
17 * present in the current event and that it has been correctly read.
18 */
19 //TODO: vedere se includere il ND e S4, chiedere riguardo al controllo su ORB che non c'e' in PamLevel2::IsGood()
20 class DataQualCut: public PamCut {
21
22 public:
23 /*! @brief Constructor.
24 *
25 * @param cutName The cut's name.
26 * @param cutMask An integer whose binary code would provide a mask for the cuts to apply;
27 * use a DETECTORCODE or a combination of them to enable the corresponding checks.
28 * Default: DEFAULT (meaning Level-2 for TRK, CALO, TOF, ANT, TRG, ORB).
29 */
30
31 DataQualCut(const char *cutName, unsigned int cutMask = DEFAULT) :
32 PamCut(cutName), _cutMask(cutMask) {
33 }
34 /*! @brief Destructor. */
35 ~DataQualCut() {
36 }
37
38 /*! @brief The event and data quality check.
39 *
40 * This method checks if the pointers to the various detectors level 2 data are present and
41 * if the data has been correctly unpacked. If it finds missing or corrupted data, it
42 * will stop the check and return a code corresponding to the missing/corrupted detector data.
43 *
44 * @param event The event to analyze.
45 * @return #CUTOK if all the checked data are present and not corrupted.
46 * @return #TRK if Tracker data is missing or corrupted.
47 * @return #CALO if Calo level2 data is missing or corrupted.
48 * @return #CALO_L1 if Calo level1 data is missing
49 * @return #TOF if ToF data is missing or corrupted.
50 * @return #ANT if AC data is missing or corrupted.
51 * @return #TRG if Trigger data is missing or corrupted.
52 * @return #ORB if Orbital Info data is missing.
53 */
54 int Check(PamLevel2 *event);
55
56 private:
57
58 unsigned int _cutMask;
59 Bool_t CL1IsGood(CaloLevel1 *cl1, CaloLevel2 *cl2); ///< Check CaloLevel1 Consistency
60
61 };
62 #endif /* DATAQUALCUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23