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)
 
TmpSimEventsimEvent ()
 
 SimRunInterface (RunManagerMT *run, bool master)
 
 SimRunInterface (RunManagerMTWorker *run, bool master)
 
 ~SimRunInterface ()=default
 

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

Member Function Documentation

◆ abortEvent()

void SimRunInterface::abortEvent ( )

Definition at line 52 of file SimRunInterface.cc.

References RunManagerMTWorker::abortEvent(), and m_runManagerMTWorker.

Referenced by EventAction::abortEvent().

52  {
55  }
56 }
RunManagerMTWorker * m_runManagerMTWorker

◆ abortRun()

void SimRunInterface::abortRun ( bool  softAbort)

Definition at line 58 of file SimRunInterface.cc.

References RunManagerMTWorker::abortRun(), and m_runManagerMTWorker.

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

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

◆ Connect() [1/4]

void SimRunInterface::Connect ( RunAction runAction)

Definition at line 24 of file SimRunInterface.cc.

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

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

◆ Connect() [2/4]

void SimRunInterface::Connect ( EventAction eventAction)

Definition at line 32 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

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

◆ Connect() [3/4]

void SimRunInterface::Connect ( TrackingAction trackAction)

Definition at line 38 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

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

◆ Connect() [4/4]

void SimRunInterface::Connect ( SteppingAction stepAction)

Definition at line 44 of file SimRunInterface.cc.

References RunManagerMTWorker::Connect(), and m_runManagerMTWorker.

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

◆ GetSimTrackManager()

SimTrackManager * SimRunInterface::GetSimTrackManager ( )

Definition at line 50 of file SimRunInterface.cc.

References m_SimTrackManager.

50 { return m_SimTrackManager; }
SimTrackManager * m_SimTrackManager

◆ setRunManagerMTWorker()

void SimRunInterface::setRunManagerMTWorker ( RunManagerMTWorker run)

Definition at line 22 of file SimRunInterface.cc.

References m_runManagerMTWorker, and writedatasetfile::run.

RunManagerMTWorker * m_runManagerMTWorker

◆ simEvent()

TmpSimEvent * SimRunInterface::simEvent ( )

Definition at line 64 of file SimRunInterface.cc.

References m_runManagerMTWorker, and RunManagerMTWorker::simEvent().

64  {
65  TmpSimEvent* ptr = nullptr;
68  }
69  return ptr;
70 }
RunManagerMTWorker * m_runManagerMTWorker
TmpSimEvent * 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().