All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRTRawTree.h
Go to the documentation of this file.
1 #ifndef CRT_RAW_TREE_H
2 #define CRT_RAW_TREE_H
3 
4 #include <TTree.h>
5 #include <TBranch.h>
6 
7 #include <iostream>
8 #include <cfloat>
9 
10 namespace icarus{
11  namespace crt {
12  class CRTRawTree;
13  }
14 }
15 
16 
18 
19  public:
20  explicit CRTRawTree(TTree* tr);
21  size_t GetNEntries() const;
22  uint64_t GetAbsTime(size_t ientry) const;
23  uint8_t GetMac(size_t ientry) const;
24  uint16_t GetADC(size_t ientry, uint8_t chan) const;
25  float GetInstRate(size_t ientry_prev, size_t ientry_next) const;
26  float GetPollRate(size_t ientry) const;
27  uint64_t GetInterval(size_t ientry1, size_t ientry2) const;
28 
29  private:
30  TTree *fTree;
31  uint8_t fMac5; //last 8 bits of FEB mac5 address
32  uint16_t fFlags;
33  uint16_t fLostcpu;
34  uint16_t fLostfpga;
35  uint32_t fTs0;
36  uint32_t fTs1;
37  uint16_t fAdc[32];
38  uint32_t fCoinc;
39  ULong64_t fRun_start_time;
40  ULong64_t fThis_poll_start;
41  ULong64_t fThis_poll_end;
42  ULong64_t fLast_poll_start;
43  ULong64_t fLast_poll_end;
45  uint32_t fFeb_in_poll;
47  uint32_t fSequence_id;
49 
50  TBranch* b_Mac5; //last 8 bits of FEB mac5 address
51  TBranch* b_Flags;
52  TBranch* b_Lostcpu;
53  TBranch* b_Lostfpga;
54  TBranch* b_Ts0;
55  TBranch* b_Ts1;
56  TBranch* b_Adc;
57  TBranch* b_Coinc;
58  TBranch* b_Run_start_time;
60  TBranch* b_This_poll_end;
62  TBranch* b_Last_poll_end;
64  TBranch* b_Feb_in_poll;
66  TBranch* b_Sequence_id;
68 
69  void Init();
70 
71 };
72 
73 #endif
ULong64_t fFragment_timestamp
Definition: CRTRawTree.h:48
TBranch * b_Run_start_time
Definition: CRTRawTree.h:58
TBranch * b_This_poll_end
Definition: CRTRawTree.h:60
TBranch * b_This_poll_start
Definition: CRTRawTree.h:59
TBranch * b_Last_poll_end
Definition: CRTRawTree.h:62
TBranch * b_Last_poll_start
Definition: CRTRawTree.h:61
float GetPollRate(size_t ientry) const
Definition: CRTRawTree.cc:80
size_t GetNEntries() const
Definition: CRTRawTree.cc:40
float GetInstRate(size_t ientry_prev, size_t ientry_next) const
Definition: CRTRawTree.cc:74
TBranch * b_System_clock_deviation
Definition: CRTRawTree.h:63
int32_t fSystem_clock_deviation
Definition: CRTRawTree.h:44
ULong64_t fRun_start_time
Definition: CRTRawTree.h:39
ULong64_t fThis_poll_start
Definition: CRTRawTree.h:40
TBranch * b_Fragment_timestamp
Definition: CRTRawTree.h:67
uint32_t fFeb_event_number
Definition: CRTRawTree.h:46
uint64_t GetAbsTime(size_t ientry) const
Definition: CRTRawTree.cc:44
uint8_t GetMac(size_t ientry) const
Definition: CRTRawTree.cc:54
ULong64_t fThis_poll_end
Definition: CRTRawTree.h:41
ULong64_t fLast_poll_start
Definition: CRTRawTree.h:42
process_name crt
TBranch * b_Feb_event_number
Definition: CRTRawTree.h:65
ULong64_t fLast_poll_end
Definition: CRTRawTree.h:43
uint16_t GetADC(size_t ientry, uint8_t chan) const
Definition: CRTRawTree.cc:64
uint64_t GetInterval(size_t ientry1, size_t ientry2) const
Definition: CRTRawTree.cc:90