BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Interface to store event information use G4 hooks. More...
#include <BDSEventInfo.hh>
Public Member Functions | |
virtual void | Print () const |
const BDSOutputROOTEventInfo * | GetInfo () const |
Accessor. | |
virtual void | Flush () |
void | SetStartTime (const time_t &startTimeIn) |
Setters. | |
void | SetStopTime (const time_t &stopTimeIn) |
Setters. | |
void | SetDurationWall (G4float durationWallIn) |
Setters. | |
void | SetDurationCPU (G4float durationCPUIn) |
Setters. | |
void | SetSeedStateAtStart (const G4String &seedStateAtStartIn) |
Setters. | |
void | SetIndex (G4int indexIn) |
Setters. | |
void | SetAborted (G4bool abortedIn) |
Setters. | |
void | SetPrimaryHitMachine (G4bool hitIn) |
Setters. | |
void | SetMemoryUsage (G4double memoryUsageMbIn) |
Setters. | |
void | SetPrimaryAbsorbedInCollimator (G4bool absorbed) |
Setters. | |
void | SetNTracks (long long int nTracks) |
Setters. | |
void | SetBunchIndex (int bunchIndexIn) |
Setters. | |
Protected Attributes | |
BDSOutputROOTEventInfo * | info |
Instance of info. | |
Interface to store event information use G4 hooks.
This class inherits G4VUserEventInformation so it can be used to pass information around as part of a G4Event (required by G4). This is basically a wrapper for BDSOutputROOTEventInfo. Can't inherit BDSOutputROOTEventInfo as the Print overload for geant4 clashes with one from TObject. Keep an instance and use that.
Definition at line 41 of file BDSEventInfo.hh.
BDSEventInfo::BDSEventInfo | ( | ) |
Definition at line 24 of file BDSEventInfo.cc.
|
virtual |
Definition at line 28 of file BDSEventInfo.cc.
|
inlinevirtual |
Definition at line 67 of file BDSEventInfo.hh.
|
inline |
Accessor.
Definition at line 65 of file BDSEventInfo.hh.
References info.
Referenced by BDSOutput::FillEventInfo(), and BDSOutput::FillRunInfoAndUpdateHeader().
|
virtual |
Definition at line 33 of file BDSEventInfo.cc.
|
inline |
Setters.
Definition at line 56 of file BDSEventInfo.hh.
References BDSOutputROOTEventInfo::aborted, and info.
|
inline |
Setters.
Definition at line 61 of file BDSEventInfo.hh.
References BDSOutputROOTEventInfo::bunchIndex, and info.
Referenced by BDSPrimaryGeneratorAction::GeneratePrimaries().
|
inline |
Setters.
Definition at line 53 of file BDSEventInfo.hh.
References BDSOutputROOTEventInfo::durationCPU, and info.
|
inline |
Setters.
Definition at line 52 of file BDSEventInfo.hh.
References BDSOutputROOTEventInfo::durationWall, and info.
|
inline |
Setters.
Definition at line 55 of file BDSEventInfo.hh.
References BDSOutputROOTEventInfo::index, and info.
|
inline |
Setters.
Definition at line 58 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::memoryUsageMb.
|
inline |
Setters.
Definition at line 60 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::nTracks.
|
inline |
Setters.
Definition at line 59 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::primaryAbsorbedInCollimator.
|
inline |
Setters.
Definition at line 57 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::primaryHitMachine.
|
inline |
Setters.
Definition at line 54 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::seedStateAtStart.
Referenced by BDSLinkPrimaryGeneratorAction::GeneratePrimaries(), and BDSPrimaryGeneratorAction::GeneratePrimaries().
|
inline |
Setters.
Definition at line 50 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::startTime.
|
inline |
Setters.
Definition at line 51 of file BDSEventInfo.hh.
References info, and BDSOutputROOTEventInfo::stopTime.
|
protected |
Instance of info.
Definition at line 71 of file BDSEventInfo.hh.
Referenced by GetInfo(), SetAborted(), SetBunchIndex(), SetDurationCPU(), SetDurationWall(), SetIndex(), SetMemoryUsage(), SetNTracks(), SetPrimaryAbsorbedInCollimator(), SetPrimaryHitMachine(), SetSeedStateAtStart(), SetStartTime(), and SetStopTime().