File indexing completed on 2024-04-06 12:30:31
0001 #ifndef SimG4Core_PrintTrackNumberAction_H
0002 #define SimG4Core_PrintTrackNumberAction_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 EndOfEvent;
0009 class EndOfTrack;
0010
0011 class PrintTrackNumberAction : public SimWatcher,
0012 public Observer<const EndOfEvent *>,
0013 public Observer<const EndOfTrack *> {
0014 public:
0015 PrintTrackNumberAction(edm::ParameterSet const &p);
0016 ~PrintTrackNumberAction() override;
0017 void update(const EndOfTrack *trk) override;
0018 void update(const EndOfEvent *trk) override;
0019
0020 private:
0021 int theNoTracks;
0022 int theNoTracksThisEvent;
0023 int theNoTracksNoUL;
0024 int theNoTracksThisEventNoUL;
0025 int theNoTracksToPrint;
0026 bool bNoUserLimits;
0027 };
0028
0029 #endif