All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
icarus::crt::CRTPreProcessTree Class Reference

#include <CRTPreProcessTree.h>

Public Member Functions

 CRTPreProcessTree (TTree *tr)
 
void Init ()
 
size_t GetNEntries () const
 
uint64_t GetAbsTime (size_t ientry) const
 
uint64_t GetAbsTime () const
 
void Load (size_t ientry) const
 
uint8_t Mac5 () const
 
bool IsNoise () const
 
uint8_t MaxChan () const
 
float MaxPE () const
 
float TotPE () const
 
float PE (uint8_t chan) const
 
uint8_t NChanAbove () const
 
bool Above (uint8_t chan) const
 
bool Active (uint8_t chan) const
 
int Region () const
 
int Layer () const
 
float PollRate () const
 
float InstRate () const
 
uint64_t T0 () const
 

Private Attributes

TTree * fTree
 
uint8_t fMac5
 
bool fIsNoise
 
uint8_t fMaxChan
 
float fMaxPE
 
float fTotPE
 
float fPE [32]
 
uint8_t fNChanAbove
 
bool fAbove [32]
 
bool fActive [32]
 
ULong64_t fT0
 
int fRegion
 
int fLayer
 
float fPollRate
 
float fInstRate
 
TBranch * b_Mac5
 
TBranch * b_IsNoise
 
TBranch * b_MaxChan
 
TBranch * b_MaxPE
 
TBranch * b_TotPE
 
TBranch * b_PE
 
TBranch * b_NChanAbove
 
TBranch * b_Above
 
TBranch * b_Active
 
TBranch * b_T0
 
TBranch * b_Region
 
TBranch * b_Layer
 
TBranch * b_PollRate
 
TBranch * b_InstRate
 

Detailed Description

Definition at line 15 of file CRTPreProcessTree.h.

Constructor & Destructor Documentation

CRTPreProcessTree::CRTPreProcessTree ( TTree *  tr)

Definition at line 9 of file CRTPreProcessTree.cc.

9  {
10  fTree = tr;
11  //fTree->SetMaxVirtualSize(16e9);
12  fTree->LoadBaskets(16e9);
13  Init();
14 }

Member Function Documentation

bool CRTPreProcessTree::Above ( uint8_t  chan) const

Definition at line 78 of file CRTPreProcessTree.cc.

78  {
79  return fAbove[chan];
80 }
bool CRTPreProcessTree::Active ( uint8_t  chan) const

Definition at line 81 of file CRTPreProcessTree.cc.

81  {
82  return fActive[chan];
83 }
uint64_t CRTPreProcessTree::GetAbsTime ( size_t  ientry) const

Definition at line 40 of file CRTPreProcessTree.cc.

40  {
41  if(ientry >= GetNEntries()) {
42  std::cout << "ERROR in CRTRawTree::GetAbsTime: entry out of range" << std::endl;
43  return UINT64_MAX;
44  }
45 
46  fTree->GetEntry(ientry);
47  return (uint64_t)fT0;
48 }
BEGIN_PROLOG could also be cout
uint64_t CRTPreProcessTree::GetAbsTime ( ) const

Definition at line 50 of file CRTPreProcessTree.cc.

50  {
51  return (uint64_t)fT0;
52 }
size_t CRTPreProcessTree::GetNEntries ( ) const

Definition at line 36 of file CRTPreProcessTree.cc.

36  {
37  return (size_t)fTree->GetEntriesFast();
38 }
void CRTPreProcessTree::Init ( )

Definition at line 16 of file CRTPreProcessTree.cc.

16  {
17 
18  fTree->SetBranchAddress("mac5", &fMac5, &b_Mac5);
19  fTree->SetBranchAddress("pe", fPE, &b_PE);
20  fTree->SetBranchAddress("active", fActive, &b_Active);
21  fTree->SetBranchAddress("maxChan", &fMaxChan, &b_MaxChan);
22  fTree->SetBranchAddress("maxPE", &fMaxPE, &b_MaxPE);
23  fTree->SetBranchAddress("totPE", &fTotPE, &b_TotPE);
24  fTree->SetBranchAddress("nAbove", &fNChanAbove, &b_NChanAbove);
25  fTree->SetBranchAddress("above", fAbove, &b_Above);
26  fTree->SetBranchAddress("isNoise", &fIsNoise, &b_IsNoise);
27  fTree->SetBranchAddress("region", &fRegion, &b_Region);
28  fTree->SetBranchAddress("layer", &fLayer, &b_Layer);
29  fTree->SetBranchAddress("t0", &fT0, &b_T0);
30  fTree->SetBranchAddress("pollRate", &fPollRate, &b_PollRate);
31  fTree->SetBranchAddress("instRate", &fInstRate, &b_InstRate);
32 
33 
34 }
float CRTPreProcessTree::InstRate ( ) const

Definition at line 93 of file CRTPreProcessTree.cc.

93  {
94  return fInstRate;
95 }
bool CRTPreProcessTree::IsNoise ( ) const

Definition at line 60 of file CRTPreProcessTree.cc.

60  {
61  return fIsNoise;
62 }
int CRTPreProcessTree::Layer ( ) const

Definition at line 87 of file CRTPreProcessTree.cc.

87  {
88  return fLayer;
89 }
void CRTPreProcessTree::Load ( size_t  ientry) const

Definition at line 54 of file CRTPreProcessTree.cc.

54  {
55  fTree->GetEntry(ientry);
56 }
uint8_t CRTPreProcessTree::Mac5 ( ) const

Definition at line 57 of file CRTPreProcessTree.cc.

57  {
58  return fMac5;
59 }
uint8_t CRTPreProcessTree::MaxChan ( ) const

Definition at line 63 of file CRTPreProcessTree.cc.

63  {
64  return fMaxChan;
65 }
float CRTPreProcessTree::MaxPE ( ) const

Definition at line 66 of file CRTPreProcessTree.cc.

66  {
67  return fMaxPE;
68 }
uint8_t CRTPreProcessTree::NChanAbove ( ) const

Definition at line 75 of file CRTPreProcessTree.cc.

75  {
76  return fNChanAbove;
77 }
float CRTPreProcessTree::PE ( uint8_t  chan) const

Definition at line 72 of file CRTPreProcessTree.cc.

72  {
73  return fPE[chan];
74 }
float CRTPreProcessTree::PollRate ( ) const

Definition at line 90 of file CRTPreProcessTree.cc.

90  {
91  return fPollRate;
92 }
int CRTPreProcessTree::Region ( ) const

Definition at line 84 of file CRTPreProcessTree.cc.

84  {
85  return fRegion;
86 }
uint64_t CRTPreProcessTree::T0 ( ) const

Definition at line 96 of file CRTPreProcessTree.cc.

96  {
97  return (uint64_t)fT0;
98 }
float CRTPreProcessTree::TotPE ( ) const

Definition at line 69 of file CRTPreProcessTree.cc.

69  {
70  return fTotPE;
71 }

Member Data Documentation

TBranch* icarus::crt::CRTPreProcessTree::b_Above
private

Definition at line 64 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_Active
private

Definition at line 65 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_InstRate
private

Definition at line 70 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_IsNoise
private

Definition at line 58 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_Layer
private

Definition at line 68 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_Mac5
private

Definition at line 57 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_MaxChan
private

Definition at line 59 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_MaxPE
private

Definition at line 60 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_NChanAbove
private

Definition at line 63 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_PE
private

Definition at line 62 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_PollRate
private

Definition at line 69 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_Region
private

Definition at line 67 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_T0
private

Definition at line 66 of file CRTPreProcessTree.h.

TBranch* icarus::crt::CRTPreProcessTree::b_TotPE
private

Definition at line 61 of file CRTPreProcessTree.h.

bool icarus::crt::CRTPreProcessTree::fAbove[32]
private

Definition at line 49 of file CRTPreProcessTree.h.

bool icarus::crt::CRTPreProcessTree::fActive[32]
private

Definition at line 50 of file CRTPreProcessTree.h.

float icarus::crt::CRTPreProcessTree::fInstRate
private

Definition at line 55 of file CRTPreProcessTree.h.

bool icarus::crt::CRTPreProcessTree::fIsNoise
private

Definition at line 43 of file CRTPreProcessTree.h.

int icarus::crt::CRTPreProcessTree::fLayer
private

Definition at line 53 of file CRTPreProcessTree.h.

uint8_t icarus::crt::CRTPreProcessTree::fMac5
private

Definition at line 42 of file CRTPreProcessTree.h.

uint8_t icarus::crt::CRTPreProcessTree::fMaxChan
private

Definition at line 44 of file CRTPreProcessTree.h.

float icarus::crt::CRTPreProcessTree::fMaxPE
private

Definition at line 45 of file CRTPreProcessTree.h.

uint8_t icarus::crt::CRTPreProcessTree::fNChanAbove
private

Definition at line 48 of file CRTPreProcessTree.h.

float icarus::crt::CRTPreProcessTree::fPE[32]
private

Definition at line 47 of file CRTPreProcessTree.h.

float icarus::crt::CRTPreProcessTree::fPollRate
private

Definition at line 54 of file CRTPreProcessTree.h.

int icarus::crt::CRTPreProcessTree::fRegion
private

Definition at line 52 of file CRTPreProcessTree.h.

ULong64_t icarus::crt::CRTPreProcessTree::fT0
private

Definition at line 51 of file CRTPreProcessTree.h.

float icarus::crt::CRTPreProcessTree::fTotPE
private

Definition at line 46 of file CRTPreProcessTree.h.

TTree* icarus::crt::CRTPreProcessTree::fTree
private

Definition at line 40 of file CRTPreProcessTree.h.


The documentation for this class was generated from the following files: