6 #include "TGeoNavigator.h"
7 #include "TGeoManager.h"
10 #include "src-tools/config.h"
21 int main(
int argc,
char **argv)
23 const std::string stiTreeName =
"t";
40 int nTreeEvents = treeChain->GetEntries();
43 Info(
"loop_over_tree",
"Found tree/chain with N entries: %d", nTreeEvents);
45 nTreeEvents = (prgOpts.GetMaxEventsUser() < nTreeEvents) ? prgOpts.GetMaxEventsUser() : nTreeEvents;
47 Info(
"loop_over_tree",
"Will process %d events", nTreeEvents);
50 treeChain->SetBranchAddress(
"e.", &stiHifyEvent);
51 treeChain->SetBranchStatus(
"e.*",
false);
52 treeChain->SetBranchStatus(
"e.TStiEvent.fTStiKalmanTracks*",
true);
53 treeChain->SetBranchStatus(
"e.TStiEvent.fTStiHits*",
true);
57 Info(
"loop_over_tree",
"Looping over tree/chain...");
59 for (
int iEvent = 1; iEvent <= nTreeEvents; iEvent++, nProcEvents++)
61 if ( nTreeEvents >= 10 && iEvent %
int(nTreeEvents*0.1) == 0 )
62 Info(
"loop_over_tree",
"Analyzing event %d", iEvent);
64 if (myRandom.Rndm() > prgOpts.GetSparsity())
continue;
66 treeChain->GetEntry(iEvent-1);
void Finalize()
Create ratios for all histograms whose name starts with hActiveLayerCounts.
void loop_over_tree(StiHifyPrgOptions &prgOpts)
void AssignClosestCandidateHit()
Loops over the internal container of tracks and calls the track method to override the accepted hits ...
void FillHists(const StiHifyEvent &event)
Processes and controls user options provided in the command line.
bool AcceptCandidateHit() const
int main(int argc, char **argv)
void ProcessOptions()
Takes the standard command line arguments and parses them with the boost program_options utility...