CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SimRunInterface Class Reference

#include <SimRunInterface.h>

Public Member Functions

void abortEvent ()
 
void abortRun (bool softAbort)
 
void Connect (RunAction *)
 
void Connect (EventAction *)
 
void Connect (TrackingAction *)
 
void Connect (SteppingAction *)
 
SimTrackManagerGetSimTrackManager ()
 
void setRunManagerMTWorker (RunManagerMTWorker *run)
 
G4SimEventsimEvent ()
 
 SimRunInterface (RunManagerMT *run, bool master)
 
 SimRunInterface (RunManagerMTWorker *run, bool master)
 
 ~SimRunInterface ()
 

Private Attributes

bool m_isMaster
 
RunManagerMTm_runManagerMT
 
RunManagerMTWorkerm_runManagerMTWorker
 
SimTrackManagerm_SimTrackManager
 

Detailed Description

Definition at line 17 of file SimRunInterface.h.

Constructor & Destructor Documentation

◆ SimRunInterface() [1/2]

SimRunInterface::SimRunInterface ( RunManagerMT run,
bool  master 
)

Definition at line 12 of file SimRunInterface.cc.

◆ SimRunInterface() [2/2]

SimRunInterface::SimRunInterface ( RunManagerMTWorker run,
bool  master 
)

◆ ~SimRunInterface()

SimRunInterface::~SimRunInterface ( )

Definition at line 22 of file SimRunInterface.cc.

22 {}

Member Function Documentation

◆ abortEvent()

void SimRunInterface::abortEvent ( )

Definition at line 54 of file SimRunInterface.cc.

References RunManagerMTWorker::abortEvent(), and m_runManagerMTWorker.

Referenced by EventAction::abortEvent().

54  {
57  }
58 }
RunManagerMTWorker * m_runManagerMTWorker

◆ abortRun()

void SimRunInterface::abortRun ( bool  softAbort)

Definition at line 60 of file SimRunInterface.cc.

References RunManagerMTWorker::abortRun(), and m_runManagerMTWorker.

Referenced by RunAction::BeginOfRunAction(), and EventAction::EndOfEventAction().

60  {
62  m_runManagerMTWorker->abortRun(softAbort);
63  }
64 }
RunManagerMTWorker * m_runManagerMTWorker
void abortRun(bool softAbort=false)

◆ Connect() [1/4]

void SimRunInterface::Connect ( RunAction runAction)

Definition at line 26 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), RunManagerMT::Connect(), m_runManagerMT, and m_runManagerMTWorker.

26  {
27  if (m_runManagerMT) {
28  m_runManagerMT->Connect(runAction);
29  } else if (m_runManagerMTWorker) {
30  m_runManagerMTWorker->Connect(runAction);
31  }
32 }
void Connect(RunAction *)
RunManagerMTWorker * m_runManagerMTWorker
RunManagerMT * m_runManagerMT
void Connect(RunAction *)

◆ Connect() [2/4]

void SimRunInterface::Connect ( EventAction eventAction)

Definition at line 34 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

34  {
36  m_runManagerMTWorker->Connect(eventAction);
37  }
38 }
RunManagerMTWorker * m_runManagerMTWorker
void Connect(RunAction *)

◆ Connect() [3/4]

void SimRunInterface::Connect ( TrackingAction trackAction)

Definition at line 40 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

40  {
42  m_runManagerMTWorker->Connect(trackAction);
43  }
44 }
RunManagerMTWorker * m_runManagerMTWorker
void Connect(RunAction *)

◆ Connect() [4/4]

void SimRunInterface::Connect ( SteppingAction stepAction)

Definition at line 46 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

46  {
48  m_runManagerMTWorker->Connect(stepAction);
49  }
50 }
RunManagerMTWorker * m_runManagerMTWorker
void Connect(RunAction *)

◆ GetSimTrackManager()

SimTrackManager * SimRunInterface::GetSimTrackManager ( )

Definition at line 52 of file SimRunInterface.cc.

References m_SimTrackManager.

52 { return m_SimTrackManager; }
SimTrackManager * m_SimTrackManager

◆ setRunManagerMTWorker()

void SimRunInterface::setRunManagerMTWorker ( RunManagerMTWorker run)

Definition at line 24 of file SimRunInterface.cc.

References m_runManagerMTWorker, and writedatasetfile::run.

RunManagerMTWorker * m_runManagerMTWorker

◆ simEvent()

G4SimEvent * SimRunInterface::simEvent ( )

Definition at line 66 of file SimRunInterface.cc.

References m_runManagerMTWorker, and RunManagerMTWorker::simEvent().

Referenced by EventAction::EndOfEventAction().

66  {
67  G4SimEvent* ptr = nullptr;
70  }
71  return ptr;
72 }
RunManagerMTWorker * m_runManagerMTWorker
G4SimEvent * simEvent()

Member Data Documentation

◆ m_isMaster

bool SimRunInterface::m_isMaster
private

Definition at line 51 of file SimRunInterface.h.

◆ m_runManagerMT

RunManagerMT* SimRunInterface::m_runManagerMT
private

Definition at line 46 of file SimRunInterface.h.

Referenced by Connect().

◆ m_runManagerMTWorker

RunManagerMTWorker* SimRunInterface::m_runManagerMTWorker
private

◆ m_SimTrackManager

SimTrackManager* SimRunInterface::m_SimTrackManager
private

Definition at line 49 of file SimRunInterface.h.

Referenced by GetSimTrackManager(), and SimRunInterface().