BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
HeaderAnalysis Class Reference

Analysis of the model tree. More...

#include <HeaderAnalysis.hh>

Collaboration diagram for HeaderAnalysis:
Collaboration graph

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
 

Detailed Description

Analysis of the model tree.

Author
Laurie Nevay

Definition at line 33 of file HeaderAnalysis.hh.

Constructor & Destructor Documentation

◆ HeaderAnalysis()

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 31 of file HeaderAnalysis.cc.

◆ ~HeaderAnalysis()

HeaderAnalysis::~HeaderAnalysis ( )
virtualnoexcept

Definition at line 39 of file HeaderAnalysis.cc.

Member Function Documentation

◆ CountNOriginalEvents()

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 42 of file HeaderAnalysis.cc.

References BDSOutputROOTEventHeader::distrFileLoopNTimes, Header::header, BDSOutputROOTEventHeader::nEventsInFile, BDSOutputROOTEventHeader::nEventsInFileSkipped, BDSOutputROOTEventHeader::nEventsRequested, BDSOutputROOTEventHeader::nOriginalEvents, and Header::SetBranchAddress().

Here is the call graph for this function:

Field Documentation

◆ chain

TChain* HeaderAnalysis::chain
protected

Definition at line 53 of file HeaderAnalysis.hh.

◆ filenames

std::vector<std::string> HeaderAnalysis::filenames
protected

Definition at line 51 of file HeaderAnalysis.hh.

◆ header

Header* HeaderAnalysis::header
protected

Definition at line 52 of file HeaderAnalysis.hh.


The documentation for this class was generated from the following files: