BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Protected Attributes
BDSEventInfo Class Reference

Interface to store event information use G4 hooks. More...

#include <BDSEventInfo.hh>

Inheritance diagram for BDSEventInfo:
Inheritance graph
Collaboration diagram for BDSEventInfo:
Collaboration graph

Public Member Functions

virtual void Print () const
 
const BDSOutputROOTEventInfoGetInfo () const
 Accessor. More...
 
virtual void Flush ()
 
void SetStartTime (const time_t &startTimeIn)
 Setters. More...
 
void SetStopTime (const time_t &stopTimeIn)
 Setters. More...
 
void SetDurationWall (G4float durationWallIn)
 Setters. More...
 
void SetDurationCPU (G4float durationCPUIn)
 Setters. More...
 
void SetSeedStateAtStart (const G4String &seedStateAtStartIn)
 Setters. More...
 
void SetIndex (G4int indexIn)
 Setters. More...
 
void SetAborted (G4bool abortedIn)
 Setters. More...
 
void SetPrimaryHitMachine (G4bool hitIn)
 Setters. More...
 
void SetMemoryUsage (G4double memoryUsageMbIn)
 Setters. More...
 
void SetPrimaryAbsorbedInCollimator (G4bool absorbed)
 Setters. More...
 
void SetNTracks (long long int nTracks)
 Setters. More...
 

Protected Attributes

BDSOutputROOTEventInfoinfo
 Instance of info. More...
 

Detailed Description

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.

Author
Laurie Nevay

Definition at line 41 of file BDSEventInfo.hh.

Constructor & Destructor Documentation

◆ BDSEventInfo()

BDSEventInfo::BDSEventInfo ( )

Definition at line 24 of file BDSEventInfo.cc.

◆ ~BDSEventInfo()

BDSEventInfo::~BDSEventInfo ( )
virtual

Definition at line 28 of file BDSEventInfo.cc.

Member Function Documentation

◆ Flush()

virtual void BDSEventInfo::Flush ( )
inlinevirtual

Definition at line 66 of file BDSEventInfo.hh.

◆ GetInfo()

const BDSOutputROOTEventInfo * BDSEventInfo::GetInfo ( ) const
inline

Accessor.

Definition at line 64 of file BDSEventInfo.hh.

References info.

Referenced by BDSOutput::FillEventInfo(), and BDSOutput::FillRunInfo().

Here is the caller graph for this function:

◆ Print()

void BDSEventInfo::Print ( ) const
virtual

Definition at line 33 of file BDSEventInfo.cc.

◆ SetAborted()

void BDSEventInfo::SetAborted ( G4bool  abortedIn)
inline

Setters.

Definition at line 56 of file BDSEventInfo.hh.

References BDSOutputROOTEventInfo::aborted, and info.

◆ SetDurationCPU()

void BDSEventInfo::SetDurationCPU ( G4float  durationCPUIn)
inline

Setters.

Definition at line 53 of file BDSEventInfo.hh.

References BDSOutputROOTEventInfo::durationCPU, and info.

◆ SetDurationWall()

void BDSEventInfo::SetDurationWall ( G4float  durationWallIn)
inline

Setters.

Definition at line 52 of file BDSEventInfo.hh.

References BDSOutputROOTEventInfo::durationWall, and info.

◆ SetIndex()

void BDSEventInfo::SetIndex ( G4int  indexIn)
inline

Setters.

Definition at line 55 of file BDSEventInfo.hh.

References BDSOutputROOTEventInfo::index, and info.

◆ SetMemoryUsage()

void BDSEventInfo::SetMemoryUsage ( G4double  memoryUsageMbIn)
inline

Setters.

Definition at line 58 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::memoryUsageMb.

◆ SetNTracks()

void BDSEventInfo::SetNTracks ( long long int  nTracks)
inline

Setters.

Definition at line 60 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::nTracks.

◆ SetPrimaryAbsorbedInCollimator()

void BDSEventInfo::SetPrimaryAbsorbedInCollimator ( G4bool  absorbed)
inline

Setters.

Definition at line 59 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::primaryAbsorbedInCollimator.

◆ SetPrimaryHitMachine()

void BDSEventInfo::SetPrimaryHitMachine ( G4bool  hitIn)
inline

Setters.

Definition at line 57 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::primaryHitMachine.

◆ SetSeedStateAtStart()

void BDSEventInfo::SetSeedStateAtStart ( const G4String &  seedStateAtStartIn)
inline

Setters.

Definition at line 54 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::seedStateAtStart.

Referenced by BDSLinkPrimaryGeneratorAction::GeneratePrimaries(), and BDSPrimaryGeneratorAction::GeneratePrimaries().

Here is the caller graph for this function:

◆ SetStartTime()

void BDSEventInfo::SetStartTime ( const time_t &  startTimeIn)
inline

Setters.

Definition at line 50 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::startTime.

◆ SetStopTime()

void BDSEventInfo::SetStopTime ( const time_t &  stopTimeIn)
inline

Setters.

Definition at line 51 of file BDSEventInfo.hh.

References info, and BDSOutputROOTEventInfo::stopTime.

Field Documentation

◆ info

BDSOutputROOTEventInfo* BDSEventInfo::info
protected

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