CMS 3D CMS Logo

MonopoleSteppingAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_HelpfulWatchers_MonopoleSteppingAction_H
2 #define SimG4Core_HelpfulWatchers_MonopoleSteppingAction_H
3 
9 
10 #include "G4Step.hh"
11 #include <vector>
12 
13 class BeginOfRun;
14 class BeginOfTrack;
15 
17  public Observer<const BeginOfRun *>,
18  public Observer<const BeginOfTrack *>,
19  public Observer<const G4Step *> {
20 public:
22  ~MonopoleSteppingAction() override;
24  void beginRun(edm::EventSetup const &) override;
25  void update(const BeginOfRun *) override;
26  void update(const BeginOfTrack *) override;
27  void update(const G4Step *) override;
28 
29 private:
32  std::vector<int> pdgCode;
36 };
37 
38 #endif
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_bFieldH_
void registerConsumes(edm::ConsumesCollector) override
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
MonopoleSteppingAction(edm::ParameterSet const &p)
void beginRun(edm::EventSetup const &) override