Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:29:31

0001 #ifndef SimG4Core_RunAction_H
0002 #define SimG4Core_RunAction_H
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "SimG4Core/Notification/interface/SimActivityRegistry.h"
0006 
0007 #include "G4UserRunAction.hh"
0008 
0009 #include <string>
0010 
0011 class SimRunInterface;
0012 class BeginOfRun;
0013 class EndOfRun;
0014 
0015 class RunAction : public G4UserRunAction {
0016 public:
0017   explicit RunAction(const edm::ParameterSet& ps, SimRunInterface*, bool master);
0018   ~RunAction() override;
0019 
0020   void BeginOfRunAction(const G4Run* aRun) override;
0021   void EndOfRunAction(const G4Run* aRun) override;
0022 
0023   SimActivityRegistry::BeginOfRunSignal m_beginOfRunSignal;
0024   SimActivityRegistry::EndOfRunSignal m_endOfRunSignal;
0025 
0026 private:
0027   SimRunInterface* m_runInterface;
0028   std::string m_stopFile;
0029 };
0030 
0031 #endif