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
ActionInitialization Class Reference

#include <ActionInitialization.h>

Inheritance diagram for ActionInitialization:

Public Member Functions

 ActionInitialization (const edm::ParameterSet &ps, RunManager *runm)
 
virtual void Build () const
 
virtual void BuildForMaster () const
 
virtual ~ActionInitialization ()
 

Private Attributes

edm::ParameterSet m_pEventAction
 
edm::ParameterSet m_pGenerator
 
edm::ParameterSet m_pPhysics
 
edm::ParameterSet m_pRunAction
 
edm::ParameterSet m_pStackingAction
 
edm::ParameterSet m_pSteppingAction
 
edm::ParameterSet m_pTrackingAction
 
edm::ParameterSet m_pVertexGenerator
 
RunManagerm_runManager
 

Detailed Description

Definition at line 15 of file ActionInitialization.h.

Constructor & Destructor Documentation

ActionInitialization::ActionInitialization ( const edm::ParameterSet ps,
RunManager runm 
)

Definition at line 14 of file ActionInitialization.cc.

16  : G4VUserActionInitialization(),
17  m_runManager(runm),
18  m_pGenerator(p.getParameter<edm::ParameterSet>("Generator")),
19  m_pPhysics(p.getParameter<edm::ParameterSet>("Physics")),
20  m_pRunAction(p.getParameter<edm::ParameterSet>("RunAction")),
21  m_pEventAction(p.getParameter<edm::ParameterSet>("EventAction")),
22  m_pStackingAction(p.getParameter<edm::ParameterSet>("StackingAction")),
23  m_pTrackingAction(p.getParameter<edm::ParameterSet>("TrackingAction")),
24  m_pSteppingAction(p.getParameter<edm::ParameterSet>("SteppingAction"))
25 {}
edm::ParameterSet m_pStackingAction
edm::ParameterSet m_pRunAction
edm::ParameterSet m_pEventAction
edm::ParameterSet m_pPhysics
edm::ParameterSet m_pSteppingAction
edm::ParameterSet m_pGenerator
edm::ParameterSet m_pTrackingAction
ActionInitialization::~ActionInitialization ( )
virtual

Definition at line 29 of file ActionInitialization.cc.

30 {}

Member Function Documentation

void ActionInitialization::Build ( ) const
virtual

Definition at line 48 of file ActionInitialization.cc.

References ConfigFiles::l, m_pEventAction, m_pRunAction, m_pStackingAction, m_pSteppingAction, and m_pTrackingAction.

49 {
50  G4AutoLock l(&ActionInitializationMutex);
51 
53 
54  //Generator* gen = new Generator(m_pGenerator);
55  //SetUserAction(gen);
56 
57  RunAction* runAction = new RunAction(m_pRunAction, interface);
58  SetUserAction(runAction);
59  interface->Connect(runAction);
60 
61  EventAction* eventAction = new EventAction(m_pEventAction, interface,
62  interface->GetSimTrackManager());
63  SetUserAction(eventAction);
64  interface->Connect(eventAction);
65 
66  TrackingAction* trackAction =
67  new TrackingAction(eventAction, m_pTrackingAction);
68  SetUserAction(trackAction);
69  interface->Connect(trackAction);
70 
71  SteppingAction* stepAction =
72  new SteppingAction(eventAction, m_pSteppingAction);
73  SetUserAction(stepAction);
74  interface->Connect(stepAction);
75 
76  SetUserAction(new StackingAction(m_pStackingAction));
77 }
edm::ParameterSet m_pStackingAction
edm::ParameterSet m_pRunAction
edm::ParameterSet m_pEventAction
edm::ParameterSet m_pSteppingAction
volatile std::atomic< bool > shutdown_flag false
edm::ParameterSet m_pTrackingAction
void ActionInitialization::BuildForMaster ( ) const
virtual

Definition at line 34 of file ActionInitialization.cc.

References m_pRunAction.

35 {
37 
38  RunAction* runAction = new RunAction(m_pRunAction, interface);
39  SetUserAction(runAction);
40  interface->Connect(runAction);
41 }
edm::ParameterSet m_pRunAction

Member Data Documentation

edm::ParameterSet ActionInitialization::m_pEventAction
private

Definition at line 35 of file ActionInitialization.h.

Referenced by Build().

edm::ParameterSet ActionInitialization::m_pGenerator
private

Definition at line 31 of file ActionInitialization.h.

edm::ParameterSet ActionInitialization::m_pPhysics
private

Definition at line 33 of file ActionInitialization.h.

edm::ParameterSet ActionInitialization::m_pRunAction
private

Definition at line 34 of file ActionInitialization.h.

Referenced by Build(), and BuildForMaster().

edm::ParameterSet ActionInitialization::m_pStackingAction
private

Definition at line 36 of file ActionInitialization.h.

Referenced by Build().

edm::ParameterSet ActionInitialization::m_pSteppingAction
private

Definition at line 38 of file ActionInitialization.h.

Referenced by Build().

edm::ParameterSet ActionInitialization::m_pTrackingAction
private

Definition at line 37 of file ActionInitialization.h.

Referenced by Build().

edm::ParameterSet ActionInitialization::m_pVertexGenerator
private

Definition at line 32 of file ActionInitialization.h.

RunManager* ActionInitialization::m_runManager
private

Definition at line 29 of file ActionInitialization.h.