BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Analysis of the options tree. More...
#include <OptionsAnalysis.hh>
Public Member Functions | |
OptionsAnalysis () | |
OptionsAnalysis (Options *optionsIn, TChain *chain, bool perEntryAnalysis=true, bool debugIn=false) | |
Constructor intended for use to construct an options analysis object. | |
virtual void | Process () |
Operate on each entry in the options tree. | |
![]() | |
Analysis (const std::string &treeNameIn, TChain *chainIn, const std::string &mergedHistogramNameIn, bool perEntryAnalysis=true, bool debugIn=false) | |
virtual void | Execute () |
Method which calls all other methods in order. | |
virtual void | Process ()=0 |
virtual void | UserProcess () |
Virtual function for user to overload and use. Does nothing by default. | |
virtual void | SimpleHistograms () |
Process histogram definitions from configuration instance. | |
void | PreparePerEntryHistograms () |
Create structures necessary for per entry histograms. | |
void | AccumulatePerEntryHistograms (long int entryNumber) |
Accumulate means and variances for per entry histograms. | |
void | TerminatePerEntryHistograms () |
Prepare result of per entry histogram accumulation. | |
virtual void | Terminate () |
virtual void | Write (TFile *outputFile) |
Write rebdsim histograms. | |
Protected Member Functions | |
ClassDef (OptionsAnalysis, 1) | |
![]() | |
void | FillHistogram (HistogramDef *definition, std::vector< TH1 * > *outputHistograms=nullptr) |
Create an individual histogram based on a definition. | |
Protected Attributes | |
Options * | options |
Options object that data loaded from the file will be loaded into. | |
![]() | |
std::string | treeName |
TChain * | chain |
std::string | mergedHistogramName |
Name of directory for merged histograms. | |
std::vector< TH1 * > | simpleHistograms |
std::vector< PerEntryHistogram * > | perEntryHistograms |
HistogramMeanFromFile * | histoSum |
Merge of per event stored histograms. | |
bool | debug |
Whether debug print out is used or not. | |
long int | entries |
Number of entries in the chain. | |
bool | perEntry |
Whether to analyse each entry in the tree in a for loop or not. | |
Analysis of the options tree.
Definition at line 35 of file OptionsAnalysis.hh.
OptionsAnalysis::OptionsAnalysis | ( | ) |
The default constructor is not intended for use and will not work for the purpose of analysis. It is required by the ROOT C++ reflection system in case you wish to save the object.
OptionsAnalysis::OptionsAnalysis | ( | Options * | optionsIn, |
TChain * | chain, | ||
bool | perEntryAnalysis = true , |
||
bool | debugIn = false |
||
) |
Constructor intended for use to construct an options analysis object.
Definition at line 29 of file OptionsAnalysis.cc.
|
virtualnoexcept |
Definition at line 37 of file OptionsAnalysis.cc.
|
virtual |
Operate on each entry in the options tree.
Implements Analysis.
Definition at line 40 of file OptionsAnalysis.cc.
References Analysis::AccumulatePerEntryHistograms(), and Analysis::entries.
|
protected |
Options object that data loaded from the file will be loaded into.
Definition at line 55 of file OptionsAnalysis.hh.