CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
G4SimEventsimEvent ()
 
 SimRunInterface (RunManager *run, bool master)
 
 ~SimRunInterface ()
 

Private Attributes

bool m_isMaster
 
RunManagerm_runManager
 
SimTrackManagerm_SimTrackManager
 

Detailed Description

Definition at line 17 of file SimRunInterface.h.

Constructor & Destructor Documentation

SimRunInterface::SimRunInterface ( RunManager run,
bool  master 
)

Definition at line 11 of file SimRunInterface.cc.

References RunManager::GetSimTrackManager(), m_runManager, and m_SimTrackManager.

13 {
14  if(m_runManager) {
16  }
17 }
SimTrackManager * GetSimTrackManager()
Definition: RunManager.cc:503
SimTrackManager * m_SimTrackManager
RunManager * m_runManager
SimRunInterface::~SimRunInterface ( )

Definition at line 19 of file SimRunInterface.cc.

20 {}

Member Function Documentation

void SimRunInterface::abortEvent ( )

Definition at line 55 of file SimRunInterface.cc.

References RunManager::abortEvent(), and m_runManager.

Referenced by EventAction::abortEvent().

56 {
57  if(m_runManager) {
59  }
60 }
void abortEvent()
Definition: RunManager.cc:382
RunManager * m_runManager
void SimRunInterface::abortRun ( bool  softAbort)

Definition at line 62 of file SimRunInterface.cc.

References RunManager::abortRun(), and m_runManager.

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

63 {
64  if(m_runManager) {
65  m_runManager->abortRun(softAbort);
66  }
67 }
void abortRun(bool softAbort=false)
Definition: RunManager.cc:484
RunManager * m_runManager
void SimRunInterface::Connect ( RunAction runAction)

Definition at line 22 of file SimRunInterface.cc.

References RunManager::Connect(), and m_runManager.

23 {
24  if(m_runManager) {
25  m_runManager->Connect(runAction);
26  }
27 }
RunManager * m_runManager
void Connect(RunAction *)
Definition: RunManager.cc:508
void SimRunInterface::Connect ( EventAction eventAction)

Definition at line 29 of file SimRunInterface.cc.

References RunManager::Connect(), and m_runManager.

30 {
31  if(m_runManager) {
32  m_runManager->Connect(eventAction);
33  }
34 }
RunManager * m_runManager
void Connect(RunAction *)
Definition: RunManager.cc:508
void SimRunInterface::Connect ( TrackingAction trackAction)

Definition at line 36 of file SimRunInterface.cc.

References RunManager::Connect(), and m_runManager.

37 {
38  if(m_runManager) {
39  m_runManager->Connect(trackAction);
40  }
41 }
RunManager * m_runManager
void Connect(RunAction *)
Definition: RunManager.cc:508
void SimRunInterface::Connect ( SteppingAction stepAction)

Definition at line 43 of file SimRunInterface.cc.

References RunManager::Connect(), and m_runManager.

44 {
45  if(m_runManager) {
46  m_runManager->Connect(stepAction);
47  }
48 }
RunManager * m_runManager
void Connect(RunAction *)
Definition: RunManager.cc:508
SimTrackManager * SimRunInterface::GetSimTrackManager ( )

Definition at line 50 of file SimRunInterface.cc.

References m_SimTrackManager.

51 {
52  return m_SimTrackManager;
53 }
SimTrackManager * m_SimTrackManager
G4SimEvent * SimRunInterface::simEvent ( )

Definition at line 69 of file SimRunInterface.cc.

References m_runManager, and RunManager::simEvent().

Referenced by EventAction::EndOfEventAction().

70 {
71  G4SimEvent* ptr = 0;
72  if(m_runManager) {
73  ptr = m_runManager->simEvent();
74  }
75  return ptr;
76 }
RunManager * m_runManager
G4SimEvent * simEvent()
Definition: RunManager.h:80

Member Data Documentation

bool SimRunInterface::m_isMaster
private

Definition at line 47 of file SimRunInterface.h.

RunManager* SimRunInterface::m_runManager
private

Definition at line 43 of file SimRunInterface.h.

Referenced by abortEvent(), abortRun(), Connect(), simEvent(), and SimRunInterface().

SimTrackManager* SimRunInterface::m_SimTrackManager
private

Definition at line 45 of file SimRunInterface.h.

Referenced by GetSimTrackManager(), and SimRunInterface().