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

Loader of ROOT Event output for receating events. More...

#include <BDSOutputLoaderSampler.hh>

Inheritance diagram for BDSOutputLoaderSampler:
Inheritance graph
Collaboration diagram for BDSOutputLoaderSampler:
Collaboration graph

Public Member Functions

 BDSOutputLoaderSampler (const G4String &filePath, const G4String &samplerName)
 
const BDSOutputROOTEventSampler< float > * SamplerDataFloat (G4long eventNumber=0)
 
const BDSOutputROOTEventSampler< double > * SamplerDataDouble (G4long eventNumber=0)
 
G4bool DoublePrecision () const
 
G4long NEventsInFile () const
 
 BDSOutputLoaderSampler (const BDSOutputLoaderSampler &)=delete
 
BDSOutputLoaderSampleroperator= (const BDSOutputLoaderSampler &)=delete
 
- Public Member Functions inherited from BDSOutputLoader
 BDSOutputLoader (const G4String &filePath)
 
G4int DataVersion () const
 
unsigned long long int NOriginalEvents () const
 
GMAD::OptionsBase OptionsBaseClass ()
 
GMAD::Options Options ()
 
GMAD::BeamBase BeamBaseClass ()
 
GMAD::Beam Beam ()
 
G4String SeedState (G4int eventNumber=0)
 Access the seed state for a given event index in the file (0 counting).
 

Private Member Functions

void Common (G4long eventNumber)
 

Private Attributes

G4bool doublePrecision
 
G4long nEvents
 
BDSOutputROOTEventSampler< float > * localSamplerFloat
 
BDSOutputROOTEventSampler< double > * localSamplerDouble
 

Additional Inherited Members

- Protected Attributes inherited from BDSOutputLoader
TFile * file
 
G4int dataVersion
 
unsigned long long int nOriginalEvents
 Cache of variable from header.
 
G4bool badFilePath
 
G4bool rootEventFile
 
BDSOutputROOTEventBeamlocalBeam
 
BDSOutputROOTEventOptionslocalOptions
 
BDSOutputROOTEventInfolocalEventSummary
 
TTree * beamTree
 
TTree * optionsTree
 
TTree * eventTree
 

Detailed Description

Loader of ROOT Event output for receating events.

Author
Laurie Nevay

Definition at line 33 of file BDSOutputLoaderSampler.hh.

Constructor & Destructor Documentation

◆ BDSOutputLoaderSampler()

BDSOutputLoaderSampler::BDSOutputLoaderSampler ( const G4String &  filePath,
const G4String &  samplerName 
)

Definition at line 34 of file BDSOutputLoaderSampler.cc.

◆ ~BDSOutputLoaderSampler()

BDSOutputLoaderSampler::~BDSOutputLoaderSampler ( )
virtual

Definition at line 60 of file BDSOutputLoaderSampler.cc.

Member Function Documentation

◆ Common()

void BDSOutputLoaderSampler::Common ( G4long  eventNumber)
private

Definition at line 80 of file BDSOutputLoaderSampler.cc.

◆ DoublePrecision()

G4bool BDSOutputLoaderSampler::DoublePrecision ( ) const
inline

Definition at line 43 of file BDSOutputLoaderSampler.hh.

◆ NEventsInFile()

G4long BDSOutputLoaderSampler::NEventsInFile ( ) const
inline

Definition at line 44 of file BDSOutputLoaderSampler.hh.

◆ SamplerDataDouble()

const BDSOutputROOTEventSampler< double > * BDSOutputLoaderSampler::SamplerDataDouble ( G4long  eventNumber = 0)

Definition at line 73 of file BDSOutputLoaderSampler.cc.

◆ SamplerDataFloat()

const BDSOutputROOTEventSampler< float > * BDSOutputLoaderSampler::SamplerDataFloat ( G4long  eventNumber = 0)

Definition at line 66 of file BDSOutputLoaderSampler.cc.

Field Documentation

◆ doublePrecision

G4bool BDSOutputLoaderSampler::doublePrecision
private

Definition at line 53 of file BDSOutputLoaderSampler.hh.

◆ localSamplerDouble

BDSOutputROOTEventSampler<double>* BDSOutputLoaderSampler::localSamplerDouble
private

Definition at line 56 of file BDSOutputLoaderSampler.hh.

◆ localSamplerFloat

BDSOutputROOTEventSampler<float>* BDSOutputLoaderSampler::localSamplerFloat
private

Definition at line 55 of file BDSOutputLoaderSampler.hh.

◆ nEvents

G4long BDSOutputLoaderSampler::nEvents
private

Definition at line 54 of file BDSOutputLoaderSampler.hh.


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