CMS 3D CMS Logo

LaserAlignmentSimulation.h
Go to the documentation of this file.
1 #ifndef LaserAlignmentSimulation_LaserAlignmentSimulation_H
2 #define LaserAlignmentSimulation_LaserAlignmentSimulation_H
3 
14 
16 
17 // own classes
21 
22 #include <iostream>
23 #include <map>
24 
25 // Geant4 includes
26 
27 class BeginOfRun;
28 class EndOfRun;
29 class BeginOfEvent;
30 class EndOfEvent;
31 class BeginOfTrack;
32 class EndOfTrack;
33 class G4Step;
34 
35 class G4Timer;
36 
37 class EventAction;
38 class RunAction;
39 class SteppingAction;
40 class TrackingAction;
41 
42 class LaserAlignmentSimulation : public Observer<const BeginOfRun *>,
43  public Observer<const BeginOfEvent *>,
44  public Observer<const G4Step *>,
45  public Observer<const EndOfEvent *>,
46  public Observer<const EndOfRun *>,
47  public Observer<const BeginOfTrack *>,
48  public Observer<const EndOfTrack *>,
49  public SimWatcher {
50 public:
52  explicit LaserAlignmentSimulation(edm::ParameterSet const &theConf);
54  ~LaserAlignmentSimulation() override;
55 
56  /* private: */
58  void update(const BeginOfRun *myRun) override;
60  void update(const BeginOfEvent *myEvent) override;
62  void update(const G4Step *myStep) override;
64  void update(const EndOfEvent *myEvent) override;
66  void update(const EndOfRun *myRun) override;
68  void update(const BeginOfTrack *myTrack) override;
70  void update(const EndOfTrack *myTrack) override;
71 
72 private:
77 
78 private:
79  G4Timer *theTimer;
83 
86 
88  /* TrackerG4SimHitNumberingScheme theNumberingScheme; */
89 };
90 
91 #endif
LaserAlignmentSimulation::LaserAlignmentSimulation
LaserAlignmentSimulation(edm::ParameterSet const &theConf)
constructor
Definition: LaserAlignmentSimulation.cc:25
Observer
Definition: Observer.h:23
EventAction
Definition: EventAction.h:23
MaterialProperties
Definition: MaterialProperties.h:15
LaserSteppingAction
Definition: LaserSteppingAction.h:16
MaterialProperties.h
LaserAlignmentSimulation::update
void update(const BeginOfRun *myRun) override
observer for BeginOfRun
Definition: LaserAlignmentSimulation.cc:64
LaserAlignmentSimulation::theDebugLevel
int theDebugLevel
Definition: LaserAlignmentSimulation.h:73
LaserAlignmentSimulation::theSiAbsLengthScale
double theSiAbsLengthScale
Definition: LaserAlignmentSimulation.h:76
SteppingAction
Definition: SteppingAction.h:31
LaserPrimaryGeneratorAction.h
LaserAlignmentSimulation
Definition: LaserAlignmentSimulation.h:42
EndOfTrack
Definition: EndOfTrack.h:6
Observer.h
TrackingAction
Definition: TrackingAction.h:16
LaserSteppingAction.h
SimWatcher.h
BeginOfTrack
Definition: BeginOfTrack.h:6
LaserAlignmentSimulation::thePrimaryGenerator
LaserPrimaryGeneratorAction * thePrimaryGenerator
Definition: LaserAlignmentSimulation.h:81
EndOfEvent
Definition: EndOfEvent.h:6
ecalTB2006H4_GenSimDigiReco_cfg.myEvent
myEvent
Definition: ecalTB2006H4_GenSimDigiReco_cfg.py:7
RunAction
Definition: RunAction.h:15
edm::ParameterSet
Definition: ParameterSet.h:47
LaserAlignmentSimulation::theBarrelHits
int theBarrelHits
Definition: LaserAlignmentSimulation.h:84
BeginOfEvent
Definition: BeginOfEvent.h:6
BeginOfRun
Definition: BeginOfRun.h:6
EndOfRun
Definition: EndOfRun.h:6
SimWatcher
Definition: SimWatcher.h:33
LaserAlignmentSimulation::~LaserAlignmentSimulation
~LaserAlignmentSimulation() override
destructor
Definition: LaserAlignmentSimulation.cc:49
LaserAlignmentSimulation::theEnergyLossScalingFactor
double theEnergyLossScalingFactor
Definition: LaserAlignmentSimulation.h:74
LaserAlignmentSimulation::theMPDebug
int theMPDebug
Definition: LaserAlignmentSimulation.h:75
LaserAlignmentSimulation::theMaterialProperties
MaterialProperties * theMaterialProperties
Definition: LaserAlignmentSimulation.h:80
LaserAlignmentSimulation::theEndcapHits
int theEndcapHits
Definition: LaserAlignmentSimulation.h:85
LaserAlignmentSimulation::theParameterSet
edm::ParameterSet theParameterSet
Definition: LaserAlignmentSimulation.h:87
LaserAlignmentSimulation::theSteppingAction
LaserSteppingAction * theSteppingAction
Definition: LaserAlignmentSimulation.h:82
LaserAlignmentSimulation::theTimer
G4Timer * theTimer
Definition: LaserAlignmentSimulation.h:79
LaserPrimaryGeneratorAction
Definition: LaserPrimaryGeneratorAction.h:26