Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garana
garana
Accessors
StructuredDisplayTree.cxx
Go to the documentation of this file.
1
/*
2
* StructuredDisplayTree.cxx
3
*
4
* Created on: Feb 18, 2021
5
* Author: chilgenb
6
*/
7
8
#include "
garana/Accessors/StructuredDisplayTree.h
"
9
10
using namespace
garana
;
11
12
StructuredDisplayTree::StructuredDisplayTree
(TTree*
tree
) {
13
SetupRead
(tree);
//initialize tree pointer in TreeReader instance and set branch address
14
}
15
16
bool
StructuredDisplayTree::SetBranchAddresses
() {
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
}
StructuredDisplayTree.h
garana
Definition:
FlatDetTree.h:15
garana::TreeReader::fTreeIn
TTree * fTreeIn
pointer to the analyzed TTree or TChain
Definition:
TreeReader.h:51
garana::StructuredDisplayTree::SetBranchAddresses
bool SetBranchAddresses() override
Definition:
StructuredDisplayTree.cxx:16
garana::TreeReader::b_Event
TBranch * b_Event
Definition:
TreeReader.h:54
garana::TreeReader::SetupRead
void SetupRead(TTree *tree)
Definition:
TreeReader.cxx:6
garana::StructuredDisplayTree::StructuredDisplayTree
StructuredDisplayTree(TTree *tree=0)
Definition:
StructuredDisplayTree.cxx:12
garana::TreeReader::fEvent
Int_t fEvent
event number for tree entry
Definition:
TreeReader.h:55
make_resolution.tree
tree
Definition:
make_resolution.py:22
Generated by
1.8.11