Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garana
garana
Accessors
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
8
#include "
garana/Accessors/StructuredDetTree.h
"
9
10
using namespace
garana
;
11
12
StructuredDetTree::StructuredDetTree
(TTree*
tree
) {
13
SetupRead
(tree);
//initialize tree pointer in TreeReader instance and set branch address
14
}
15
16
bool
StructuredDetTree::SetBranchAddresses
() {
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
}
garana
Definition:
FlatDetTree.h:15
garana::TreeReader::fTreeIn
TTree * fTreeIn
pointer to the analyzed TTree or TChain
Definition:
TreeReader.h:51
garana::StructuredDetTree::SetBranchAddresses
bool SetBranchAddresses() override
Definition:
StructuredDetTree.cxx:16
StructuredDetTree.h
garana::StructuredDetTree::StructuredDetTree
StructuredDetTree(TTree *tree=0)
Definition:
StructuredDetTree.cxx:12
garana::TreeReader::b_Event
TBranch * b_Event
Definition:
TreeReader.h:54
garana::TreeReader::SetupRead
void SetupRead(TTree *tree)
Definition:
TreeReader.cxx:6
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