CMS 3D CMS Logo

FastTimerSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMSForward_FastTimerSD_h
2 #define SimG4CMSForward_FastTimerSD_h
3 
5 
9 
10 #include <string>
11 #include <vector>
12 
13 class G4Step;
14 class SimTrackManager;
16 
17 //-------------------------------------------------------------------
18 
19 class FastTimerSD : public TimingSD, public Observer<const BeginOfJob *> {
20 public:
21  FastTimerSD(const std::string &,
22  const edm::EventSetup &,
24  edm::ParameterSet const &,
25  const SimTrackManager *);
26 
27  ~FastTimerSD() override;
28 
29  uint32_t setDetUnitId(const G4Step *) override;
30 
31 protected:
32  using TimingSD::update;
33  void update(const BeginOfJob *) override;
34 
35 private:
36  std::vector<double> getDDDArray(const std::string &, const DDsvalues_type &);
37 
38 private:
40  int type_;
41 };
42 
43 #endif
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: FastTimerSD.cc:77
const FastTimeDDDConstants * ftcons
Definition: FastTimerSD.h:39
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
void update(const BeginOfEvent *) override
This routine will be called when the appropriate signal arrives.
Definition: TimingSD.cc:365
uint32_t setDetUnitId(const G4Step *) override
Definition: FastTimerSD.cc:60
~FastTimerSD() override
Definition: FastTimerSD.cc:58
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
Definition: FastTimerSD.cc:92
FastTimerSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: FastTimerSD.cc:30