00001 #ifndef SimG4Core_KillSecondariesTrackAction_H 00002 #define SimG4Core_KillSecondariesTrackAction_H 00003 00004 #include "SimG4Core/Watcher/interface/SimWatcher.h" 00005 #include "SimG4Core/Notification/interface/Observer.h" 00006 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00007 00008 class BeginOfTrack; 00009 00010 class KillSecondariesTrackAction : public SimWatcher, 00011 public Observer<const BeginOfTrack *> { 00012 00013 public: 00014 KillSecondariesTrackAction(edm::ParameterSet const & p); 00015 ~KillSecondariesTrackAction(); 00016 void update(const BeginOfTrack * trk); 00017 00018 private: 00019 bool killHeavy; 00020 double kmaxIon, kmaxNeutron, kmaxProton; 00021 }; 00022 00023 #endif 00024 00025