Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef SimG4Core_KillSecondariesTrackAction_H
0002 #define SimG4Core_KillSecondariesTrackAction_H
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "SimG4Core/Notification/interface/Observer.h"
0006 #include "SimG4Core/Watcher/interface/SimWatcher.h"
0007 
0008 class BeginOfTrack;
0009 
0010 class KillSecondariesTrackAction : public SimWatcher, public Observer<const BeginOfTrack *> {
0011 public:
0012   KillSecondariesTrackAction(edm::ParameterSet const &p);
0013   ~KillSecondariesTrackAction() override;
0014   void update(const BeginOfTrack *trk) override;
0015 
0016 private:
0017   bool killHeavy;
0018   double kmaxIon, kmaxNeutron, kmaxProton;
0019 };
0020 
0021 #endif