8#ifndef FastTimingHistSelector_h
9#define FastTimingHistSelector_h
55 virtual Int_t
Version()
const {
return 2; }
65#ifdef FastTimingHistSelector_cxx
69 if(tree->SetBranchAddress(
"germanium", &
fGeEnergies) == TTree::kMissingBranch ||
70 tree->SetBranchAddress(
"firstEnergy", &
fLaBrEnergy[0]) == TTree::kMissingBranch ||
71 tree->SetBranchAddress(
"firstLaBr", &
fLaBrId[0]) == TTree::kMissingBranch ||
72 tree->SetBranchAddress(
"secondEnergy", &
fLaBrEnergy[1]) == TTree::kMissingBranch ||
73 tree->SetBranchAddress(
"secondLaBr", &
fLaBrId[1]) == TTree::kMissingBranch ||
74 tree->SetBranchAddress(
"tac", &
fTac) == TTree::kMissingBranch ||
75 tree->SetBranchAddress(
"tacId", &
fTacId) == TTree::kMissingBranch ||
76 tree->SetBranchAddress(
"entry", &
fEntry) == TTree::kMissingBranch) {
77 throw std::runtime_error(
"Failed to find all branches necessary for fast timing histograms!");
virtual Int_t Version() const
virtual ~FastTimingHistSelector()=default
void InitializeBranches(TTree *tree)
ClassDef(FastTimingHistSelector, 1)
std::vector< double > * fGeEnergies
FastTimingHistSelector(TTree *=nullptr)
void SetOutputPrefix(const char *prefix)