StructuredDetTree.cxx
Go to the documentation of this file.
1 /*
2  * StructuredDetTree.cxx
3  *
4  * Created on: Feb 18, 2021
5  * Author: chilgenb
6  */
7 
9 
10 using namespace garana;
11 
13  SetupRead(tree); //initialize tree pointer in TreeReader instance and set branch address
14 }
15 
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
bool SetBranchAddresses() override
TBranch * b_Event
Definition: TreeReader.h:54
void SetupRead(TTree *tree)
Definition: TreeReader.cxx:6
Int_t fEvent
event number for tree entry
Definition: TreeReader.h:55