eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TBasicDataQualityModule.hxx
Go to the documentation of this file.
1 ///
2 /// For questions or suggestions about this module please contact the
3 /// current responsible and CC in the eventAnalysis package manager.
4 ///
5 /// 12-Nov-2010: Current responsible for this module is,
6 /// Francesca Di Lodovico (f.di.lodovico [*a*t*] qmul.ac.uk)
7 ///
8 #ifndef TBasicDataQualityModule_hxx_seen
9 #define TBasicDataQualityModule_hxx_seen
10 
11 #include <TNamed.h>
12 #include <TRef.h>
13 #include <TTree.h>
14 #include <TND280Event.hxx>
15 #include <string>
17 #include "TDataQuality.hxx"
18 #include "TG4PrimaryParticle.hxx"
19 
20 namespace ND {
21 class TBasicDataQualityModule;
22 };
23 
24 /// An analysis module which add the data quality branch to the
25 /// HeaderDir branch. It contains the data quality flags for the
26 /// ND280 off-axis sub-detectors, the global ND280 off-axis detector
27 /// (ie when all the sub-detectors are quality-assessed good)
28 /// and the INGRID detector.
29 /// For ND280 off-axis, the data to be used for the analyses are the ones
30 /// with the global ND280 off-axis detector assessed good.
31 /// By convention, the data quality flag is 0 if the event is good,
32 /// >0 if otherwise.
33 
35  public:
36  TBasicDataQualityModule(const char *name = "BasicDataQuality",
37  const char *title = "Basic DataQuality Module");
38 
39  virtual ~TBasicDataQualityModule();
40 
41  virtual Bool_t IsEnabledByDefault() const { return kTRUE; }
42 
43  UInt_t GetEventTime() { return fEventTime; }
44 
45  virtual Bool_t ProcessFirstEvent(ND::TND280Event &);
46 
47  protected:
48  virtual void InitializeBranches();
49  virtual bool FillTree(ND::TND280Event &);
50 
51  public:
52  /// DQ object
53  ND::TDataQuality dqObject; //!
54 
55  // Tree Entries
56 
57  /// Event timestamp
58  UInt_t fEventTime; //!
59  /// ND280 Off flag
60  Int_t fND280OffFlag; //!
61  /// TPC flag
62  Int_t fTPCFlag; //!
63  /// TPC1 flag
64  Int_t fTPC1Flag; //!
65  /// TPC2 flag
66  Int_t fTPC2Flag; //!
67  /// TPC3 flag
68  Int_t fTPC3Flag; //!
69  /// FGD flag
70  Int_t fFGDFlag; //!
71  /// FGD1 flag
72  Int_t fFGD1Flag; //!
73  /// FGD2 flag
74  Int_t fFGD2Flag; //!
75  /// ECAL flag
76  Int_t fECALFlag; //!
77  /// DSECAL flag
78  Int_t fDSECALFlag; //!
79  /// BarECAL flag
80  Int_t fBarECALFlag; //!
81  /// P0DECAL flag
82  Int_t fP0DECALFlag; //!
83  /// P0D flag
84  Int_t fP0DFlag; //!
85  /// SMRD flag
86  Int_t fSMRDFlag; //!
87  /// MAGNET flag
88  Int_t fMAGNETFlag; //!
89  /// INGRID flag
90  Int_t fINGRIDFlag; //!
91 
92 };
93 #endif
An analysis module which add the data quality branch to the HeaderDir branch.
ND::TDataQuality dqObject
DQ object.
virtual bool FillTree(ND::TND280Event &)
Fill all the stuff that goes in the output tree.
UInt_t fEventTime
Event timestamp.
TBasicDataQualityModule(const char *name="BasicDataQuality", const char *title="Basic DataQuality Module")
virtual void InitializeBranches()
Initialize Branches. Don&#39;t do anything else in this function.
A base class for analysis output modules which contain event header information.
virtual Bool_t ProcessFirstEvent(ND::TND280Event &)
Is called after the first event is loaded in.
virtual Bool_t IsEnabledByDefault() const
Is the module is enabled by default.

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:43:58 for eventAnalysis by doxygen 1.8.5