File indexing completed on 2024-04-06 12:30:31
0001 #ifndef SimG4Core_SaveSimTrack_H
0002 #define SimG4Core_SaveSimTrack_H
0003
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "SimG4Core/Notification/interface/BeginOfTrack.h"
0006 #include "SimG4Core/Notification/interface/Observer.h"
0007 #include "SimG4Core/Watcher/interface/SimWatcher.h"
0008
0009 #include <vector>
0010
0011 class SaveSimTrack : public SimWatcher, public Observer<const BeginOfTrack *> {
0012 public:
0013 SaveSimTrack(edm::ParameterSet const &p);
0014 ~SaveSimTrack() override;
0015 void update(const BeginOfTrack *trk) override;
0016
0017 private:
0018 std::vector<int> pdgs_;
0019 };
0020
0021 #endif