BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Analysis of the model tree. More...
#include <HeaderAnalysis.hh>
Public Member Functions | |
HeaderAnalysis (const std::vector< std::string > &filenamesIn, Header *headerIn, TChain *chainIn) | |
Constructor intended for use to construct a model analysis object. | |
unsigned long long int | CountNOriginalEvents (unsigned long long int &nEventsInFileIn, unsigned long long int &nEventsInFileSkippedIn, unsigned long long int &nEventsRequestedIn, unsigned int &distrFileLoopNTimesIn) |
Protected Attributes | |
std::vector< std::string > | filenames |
Header * | header |
TChain * | chain |
Analysis of the model tree.
Definition at line 34 of file HeaderAnalysis.hh.
HeaderAnalysis::HeaderAnalysis | ( | const std::vector< std::string > & | filenamesIn, |
Header * | headerIn, | ||
TChain * | chainIn | ||
) |
Constructor intended for use to construct a model analysis object.
Definition at line 32 of file HeaderAnalysis.cc.
|
virtualnoexcept |
Definition at line 40 of file HeaderAnalysis.cc.
unsigned long long int HeaderAnalysis::CountNOriginalEvents | ( | unsigned long long int & | nEventsInFileIn, |
unsigned long long int & | nEventsInFileSkippedIn, | ||
unsigned long long int & | nEventsRequestedIn, | ||
unsigned int & | distrFileLoopNTimesIn | ||
) |
Add up nOriginalEvents from each file in the chain and also nEventsInFile and nEventsInFileSkipped so we have the total numbers. Use the second entry of the header in each file, if it exists. Will reset incoming variables to 0.
Definition at line 43 of file HeaderAnalysis.cc.
References BDSOutputROOTEventHeader::distrFileLoopNTimes, Header::header, BDSOutputROOTEventHeader::nEventsInFile, BDSOutputROOTEventHeader::nEventsInFileSkipped, BDSOutputROOTEventHeader::nEventsRequested, BDSOutputROOTEventHeader::nOriginalEvents, and Header::SetBranchAddress().
|
protected |
Definition at line 54 of file HeaderAnalysis.hh.
|
protected |
Definition at line 52 of file HeaderAnalysis.hh.
|
protected |
Definition at line 53 of file HeaderAnalysis.hh.