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

#include <StructuredDisplayTree.h>

Inheritance diagram for garana::StructuredDisplayTree:
garana::DisplayTree garana::TreeReader

Public Member Functions

 StructuredDisplayTree (TTree *tree=0)
 
- Public Member Functions inherited from garana::DisplayTree
virtual ~DisplayTree ()
 
- 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 17 of file StructuredDisplayTree.h.

Constructor & Destructor Documentation

StructuredDisplayTree::StructuredDisplayTree ( TTree *  tree = 0)

Definition at line 12 of file StructuredDisplayTree.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 StructuredDisplayTree::SetBranchAddresses ( )
overrideprivatevirtual

Implements garana::TreeReader.

Definition at line 16 of file StructuredDisplayTree.cxx.

16  {
17  fTreeIn->SetBranchAddress("Event", &fEvent, &b_Event);
18  //fTreeIn->SetBranchAddress("MCTracks", "vector<MCDisplayTrack>", &fMCDisplay);
19  /*if(fAnaMode!="readout"){
20  fDisplayTree->Branch("RecoTracks", "vector<adp::AnaTrack>", &fRecoDisplay);
21  }*/
22 
23 
24 
25  return true;
26 }
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: