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 (EventAction *)
 
void Connect (RunAction *)
 
void Connect (SteppingAction *)
 
void Connect (TrackingAction *)
 
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.

54  {
57  }
58 }

References RunManagerMTWorker::abortEvent(), and m_runManagerMTWorker.

Referenced by EventAction::abortEvent().

◆ abortRun()

void SimRunInterface::abortRun ( bool  softAbort)

Definition at line 60 of file SimRunInterface.cc.

60  {
62  m_runManagerMTWorker->abortRun(softAbort);
63  }
64 }

References RunManagerMTWorker::abortRun(), and m_runManagerMTWorker.

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

◆ Connect() [1/4]

void SimRunInterface::Connect ( EventAction eventAction)

Definition at line 34 of file SimRunInterface.cc.

34  {
36  m_runManagerMTWorker->Connect(eventAction);
37  }
38 }

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

◆ Connect() [2/4]

void SimRunInterface::Connect ( RunAction runAction)

Definition at line 26 of file SimRunInterface.cc.

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

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

◆ Connect() [3/4]

void SimRunInterface::Connect ( SteppingAction stepAction)

Definition at line 46 of file SimRunInterface.cc.

46  {
48  m_runManagerMTWorker->Connect(stepAction);
49  }
50 }

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

◆ Connect() [4/4]

void SimRunInterface::Connect ( TrackingAction trackAction)

Definition at line 40 of file SimRunInterface.cc.

40  {
42  m_runManagerMTWorker->Connect(trackAction);
43  }
44 }

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

◆ GetSimTrackManager()

SimTrackManager * SimRunInterface::GetSimTrackManager ( )

Definition at line 52 of file SimRunInterface.cc.

52 { return m_SimTrackManager; }

References m_SimTrackManager.

◆ setRunManagerMTWorker()

void SimRunInterface::setRunManagerMTWorker ( RunManagerMTWorker run)

Definition at line 24 of file SimRunInterface.cc.

References m_runManagerMTWorker, and writedatasetfile::run.

◆ simEvent()

G4SimEvent * SimRunInterface::simEvent ( )

Definition at line 66 of file SimRunInterface.cc.

66  {
67  G4SimEvent* ptr = nullptr;
70  }
71  return ptr;
72 }

References m_runManagerMTWorker, and RunManagerMTWorker::simEvent().

Referenced by EventAction::EndOfEventAction().

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().

RunManagerMTWorker::abortRun
void abortRun(bool softAbort=false)
Definition: RunManagerMTWorker.cc:576
G4SimEvent
Definition: G4SimEvent.h:14
RunManagerMTWorker::abortEvent
void abortEvent()
Definition: RunManagerMTWorker.cc:559
RunManagerMTWorker::simEvent
G4SimEvent * simEvent()
Definition: RunManagerMTWorker.h:63
RunManagerMTWorker::Connect
void Connect(RunAction *)
Definition: RunManagerMTWorker.cc:419
RunManagerMTWorker::GetSimTrackManager
SimTrackManager * GetSimTrackManager()
Definition: RunManagerMTWorker.cc:438
SimRunInterface::m_SimTrackManager
SimTrackManager * m_SimTrackManager
Definition: SimRunInterface.h:49
SimRunInterface::m_isMaster
bool m_isMaster
Definition: SimRunInterface.h:51
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SimRunInterface::m_runManagerMT
RunManagerMT * m_runManagerMT
Definition: SimRunInterface.h:46
RunManagerMT::Connect
void Connect(RunAction *)
Definition: RunManagerMT.cc:261
SimRunInterface::m_runManagerMTWorker
RunManagerMTWorker * m_runManagerMTWorker
Definition: SimRunInterface.h:47
volumeBasedMagneticField_160812_cfi.master
master
Definition: volumeBasedMagneticField_160812_cfi.py:60