CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/SimG4Core/KillSecondaries/src/KillSecondariesRunAction.cc

Go to the documentation of this file.
00001 #include "SimG4Core/KillSecondaries/interface/KillSecondariesRunAction.h"
00002 #include "SimG4Core/KillSecondaries/interface/KillSecondariesStackingAction.h"
00003 
00004 #include "SimG4Core/Notification/interface/BeginOfRun.h"
00005 
00006 #include "G4Run.hh"
00007 #include "G4RunManagerKernel.hh"
00008 
00009 KillSecondariesRunAction::KillSecondariesRunAction(edm::ParameterSet const & p)
00010     {}
00011 
00012 KillSecondariesRunAction::~KillSecondariesRunAction() {}
00013  
00014 void KillSecondariesRunAction::update(const BeginOfRun * r)
00015 { 
00016     std::cout << " Using KillSecondariesStackingAction!!! " << std::endl;
00017     G4RunManagerKernel::GetRunManagerKernel()->GetEventManager()->
00018         SetUserAction(new KillSecondariesStackingAction);
00019 }
00020