BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
#include <RunAnalysis.hh>
Public Member Functions | |
RunAnalysis () | |
RunAnalysis (Run *runIn, TChain *chainIn, bool perEntryAnalysis=true, bool debugIn=false) | |
Constructor intended for use to construct a run analysis object. More... | |
virtual void | Process () |
Operate on each entry in the run tree. More... | |
Public Member Functions inherited from Analysis | |
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. More... | |
virtual void | Process ()=0 |
virtual void | UserProcess () |
Virtual function for user to overload and use. Does nothing by default. More... | |
virtual void | SimpleHistograms () |
Process histogram definitions from configuration instance. More... | |
void | PreparePerEntryHistograms () |
Create structures necessary for per entry histograms. More... | |
void | AccumulatePerEntryHistograms (long int entryNumber) |
Accumulate means and variances for per entry histograms. More... | |
void | TerminatePerEntryHistograms () |
Prepare result of per entry histogram accumulation. More... | |
virtual void | Terminate () |
virtual void | Write (TFile *outputFile) |
Write rebdsim histograms. More... | |
Protected Member Functions | |
ClassDef (RunAnalysis, 1) | |
Protected Member Functions inherited from Analysis | |
void | FillHistogram (HistogramDef *definition, std::vector< TH1 * > *outputHistograms=nullptr) |
Create an individual histogram based on a definition. More... | |
Protected Attributes | |
Run * | run |
Run object that data loaded from the file will be loaded into. More... | |
Protected Attributes inherited from Analysis | |
std::string | treeName |
TChain * | chain |
std::string | mergedHistogramName |
Name of directory for merged histograms. More... | |
std::vector< TH1 * > | simpleHistograms |
std::vector< PerEntryHistogram * > | perEntryHistograms |
HistogramMeanFromFile * | histoSum |
Merge of per event stored histograms. More... | |
bool | debug |
Whether debug print out is used or not. More... | |
long int | entries |
Number of entries in the chain. More... | |
bool | perEntry |
Whether to analyse each entry in the tree in a for loop or not. More... | |
Analysis of a run.
Definition at line 35 of file RunAnalysis.hh.
RunAnalysis::RunAnalysis | ( | ) |
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.
RunAnalysis::RunAnalysis | ( | Run * | runIn, |
TChain * | chainIn, | ||
bool | perEntryAnalysis = true , |
||
bool | debugIn = false |
||
) |
Constructor intended for use to construct a run analysis object.
Definition at line 35 of file RunAnalysis.cc.
|
virtualnoexcept |
Definition at line 43 of file RunAnalysis.cc.
|
virtual |
Operate on each entry in the run tree.
Implements Analysis.
Definition at line 46 of file RunAnalysis.cc.
References HistogramMeanFromFile::Accumulate(), Analysis::AccumulatePerEntryHistograms(), Analysis::debug, Run::Histos, Analysis::histoSum, run, and Analysis::UserProcess().
|
protected |
Run object that data loaded from the file will be loaded into.
Definition at line 55 of file RunAnalysis.hh.
Referenced by Process().