CMS 3D CMS Logo

RunAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_RunAction_H
2 #define SimG4Core_RunAction_H
3 
6 
7 #include "G4UserRunAction.hh"
8 
9 #include <string>
10 
11 class SimRunInterface;
12 class BeginOfRun;
13 class EndOfRun;
14 class G4Timer;
15 
16 class RunAction: public G4UserRunAction
17 {
18 public:
19  explicit RunAction(const edm::ParameterSet & ps, SimRunInterface*, bool master);
20  ~RunAction() override;
21 
22  void BeginOfRunAction(const G4Run * aRun) override;
23  void EndOfRunAction(const G4Run * aRun) override;
24 
27 
28 private:
31  G4Timer* m_timer;
32  bool m_isMaster;
33 };
34 
35 #endif
Master< F > master(const F &f)
Definition: FunctClone.h:68
void BeginOfRunAction(const G4Run *aRun) override
Definition: RunAction.cc:22
RunAction(const edm::ParameterSet &ps, SimRunInterface *, bool master)
Definition: RunAction.cc:13
G4Timer * m_timer
Definition: RunAction.h:31
SimActivityRegistry::EndOfRunSignal m_endOfRunSignal
Definition: RunAction.h:26
~RunAction() override
Definition: RunAction.cc:19
bool m_isMaster
Definition: RunAction.h:32
std::string m_stopFile
Definition: RunAction.h:30
SimActivityRegistry::BeginOfRunSignal m_beginOfRunSignal
Definition: RunAction.h:25
void EndOfRunAction(const G4Run *aRun) override
Definition: RunAction.cc:40
SimRunInterface * m_runInterface
Definition: RunAction.h:29