Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:25

0001 #include "SimG4Core/KillSecondaries/interface/KillSecondariesRunAction.h"
0002 #include "SimG4Core/KillSecondaries/interface/KillSecondariesStackingAction.h"
0003 
0004 #include "SimG4Core/Notification/interface/BeginOfRun.h"
0005 
0006 #include "G4Run.hh"
0007 #include "G4RunManagerKernel.hh"
0008 
0009 KillSecondariesRunAction::KillSecondariesRunAction(edm::ParameterSet const &p) {}
0010 
0011 KillSecondariesRunAction::~KillSecondariesRunAction() {}
0012 
0013 void KillSecondariesRunAction::update(const BeginOfRun *r) {
0014   std::cout << " Using KillSecondariesStackingAction!!! " << std::endl;
0015   G4RunManagerKernel::GetRunManagerKernel()->GetEventManager()->SetUserAction(new KillSecondariesStackingAction);
0016 }