All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRTPreProcessTree.h
Go to the documentation of this file.
1 #ifndef CRT_PREPROCESS_TREE_H
2 #define CRT_PREPROCESS_TREE_H
3 
4 #include <TTree.h>
5 #include <TBranch.h>
6 
7 #include <iostream>
8 
9 namespace icarus {
10  namespace crt {
11  class CRTPreProcessTree;
12  }
13 }
14 
16 
17  public:
18  CRTPreProcessTree(TTree* tr);
19  void Init();
20  size_t GetNEntries() const;
21  uint64_t GetAbsTime(size_t ientry) const;
22  uint64_t GetAbsTime() const;
23  void Load(size_t ientry) const;
24  uint8_t Mac5() const;
25  bool IsNoise() const;
26  uint8_t MaxChan() const;
27  float MaxPE() const;
28  float TotPE() const;
29  float PE(uint8_t chan) const;
30  uint8_t NChanAbove() const;
31  bool Above(uint8_t chan) const;
32  bool Active(uint8_t chan) const;
33  int Region() const;
34  int Layer() const;
35  float PollRate() const;
36  float InstRate() const;
37  uint64_t T0() const;
38 
39  private:
40  TTree* fTree;
41 
42  uint8_t fMac5;
43  bool fIsNoise;
44  uint8_t fMaxChan;
45  float fMaxPE;
46  float fTotPE;
47  float fPE[32];
48  uint8_t fNChanAbove;
49  bool fAbove[32];
50  bool fActive[32];
51  ULong64_t fT0;
52  int fRegion;
53  int fLayer;
54  float fPollRate;
55  float fInstRate;
56 
57  TBranch* b_Mac5;
58  TBranch* b_IsNoise;
59  TBranch* b_MaxChan;
60  TBranch* b_MaxPE;
61  TBranch* b_TotPE;
62  TBranch* b_PE;
63  TBranch* b_NChanAbove;
64  TBranch* b_Above;
65  TBranch* b_Active;
66  TBranch* b_T0;
67  TBranch* b_Region;
68  TBranch* b_Layer;
69  TBranch* b_PollRate;
70  TBranch* b_InstRate;
71 
72 
73 };
74 
75 #endif
void Load(size_t ientry) const
bool Above(uint8_t chan) const
bool Active(uint8_t chan) const
float PE(uint8_t chan) const
process_name crt