Public Member Functions | Private Member Functions | List of all members
garana::StructuredDetTree Class Reference

#include <StructuredDetTree.h>

Inheritance diagram for garana::StructuredDetTree:
garana::DetTree garana::TreeReader

Public Member Functions

 StructuredDetTree (TTree *tree=0)
 
- Public Member Functions inherited from garana::DetTree
virtual ~DetTree ()
 
- Public Member Functions inherited from garana::TreeReader
virtual ~TreeReader ()
 
void SetupRead (TTree *tree)
 
TTree * GetInputTree ()
 
size_t NEntries () const
 
virtual void GetEntry (const UInt_t &ientry)
 
Int_t Event () const
 
const TObjArray * GetBranchList () const
 
void Fill ()
 
void Write ()
 
void CheckOpt (char opt)
 
bool BlockWrite () const
 

Private Member Functions

bool SetBranchAddresses () override
 

Additional Inherited Members

- Protected Attributes inherited from garana::TreeReader
const std::string treename
 
char fOpt = 'r'
 
TTree * fTreeIn = nullptr
 pointer to the analyzed TTree or TChain More...
 
UInt_t fCurrentEntry = UINT_MAX
 
TBranch * b_Event = nullptr
 
Int_t fEvent = -1
 event number for tree entry More...
 

Detailed Description

Definition at line 21 of file StructuredDetTree.h.

Constructor & Destructor Documentation

StructuredDetTree::StructuredDetTree ( TTree *  tree = 0)

Definition at line 12 of file StructuredDetTree.cxx.

12  {
13  SetupRead(tree); //initialize tree pointer in TreeReader instance and set branch address
14 }
void SetupRead(TTree *tree)
Definition: TreeReader.cxx:6

Member Function Documentation

bool StructuredDetTree::SetBranchAddresses ( )
overrideprivatevirtual

Implements garana::TreeReader.

Definition at line 16 of file StructuredDetTree.cxx.

16  {
17 
18  fTreeIn->SetBranchAddress("Event", &fEvent, &b_Event);
19  //fTreeIn->SetBranchAddress("TPCDigits", "vector<gar::raw::RawDigit>", &fTPCDigits);
20  //fTreeIn->SetBranchAddress("CaloDigits.", "vector<gar::raw::CaloDigit>", &fCaloDigits);
21  /*if(fGeo->HasMuonDetector()){
22  fTreeIn->Branch("MuDigits.", "vector<gar::raw::CaloDigit>", &fMuDigits);
23  }*/
24 
25 
26  return true;
27 }
TTree * fTreeIn
pointer to the analyzed TTree or TChain
Definition: TreeReader.h:51
TBranch * b_Event
Definition: TreeReader.h:54
Int_t fEvent
event number for tree entry
Definition: TreeReader.h:55

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