CMS 3D CMS Logo

MtdSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMSForward_MtdSD_h
2 #define SimG4CMSForward_MtdSD_h
3 
7 
10 
11 #include <string>
12 #include <vector>
13 
14 class G4Step;
15 class SimTrackManager;
16 
17 //-------------------------------------------------------------------
18 
19 class MtdSD : public TimingSD {
20 public:
22 
23  ~MtdSD() override;
24 
25  uint32_t setDetUnitId(const G4Step *) override;
26 
27 protected:
28  int getTrackID(const G4Track *) override;
29 
30 private:
31  static constexpr unsigned int k_idsecOffset = 1;
32  static constexpr unsigned int k_idloopOffset = 2;
33  static constexpr unsigned int k_idFromCaloOffset = 3;
34 
35  double energyCut;
37 
39  void getBaseNumber(const G4Step *);
40 
43  bool isBTL;
44  bool isETL;
45 };
46 
47 #endif
bool isBTL
Definition: MtdSD.h:43
Definition: MtdSD.h:19
bool isETL
Definition: MtdSD.h:44
int getTrackID(const G4Track *) override
Definition: MtdSD.cc:101
static constexpr unsigned int k_idsecOffset
Definition: MtdSD.h:31
uint32_t setDetUnitId(const G4Step *) override
Definition: MtdSD.cc:59
double energyCut
Definition: MtdSD.h:35
static constexpr unsigned int k_idloopOffset
Definition: MtdSD.h:32
MTDBaseNumber theBaseNumber
Definition: MtdSD.h:42
double energyHistoryCut
Definition: MtdSD.h:36
void getBaseNumber(const G4Step *)
Definition: MtdSD.cc:80
void setNumberingScheme(MTDNumberingScheme *)
Definition: MtdSD.cc:71
MtdSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: MtdSD.cc:20
MTDNumberingScheme * numberingScheme
Definition: MtdSD.h:41
static constexpr unsigned int k_idFromCaloOffset
Definition: MtdSD.h:33
~MtdSD() override
Definition: MtdSD.cc:57