CMS 3D CMS Logo

ZdcSD.h
Go to the documentation of this file.
1 // File: ZdcSD.h
3 // Date: 02.04
4 // Description: Stores hits of Zdc in appropriate container
5 //
7 #ifndef ZdcSD_h
8 #define ZdcSD_h
12 
13 class ZdcSD : public CaloSD {
14 public:
15  ZdcSD(const std::string &,
16  const edm::EventSetup &,
18  edm::ParameterSet const &,
19  const SimTrackManager *);
20 
21  ~ZdcSD() override = default;
22 
23  uint32_t setDetUnitId(const G4Step *step) override;
24 
26 
27 protected:
28  double getEnergyDeposit(const G4Step *) override;
29  bool getFromLibrary(const G4Step *) override;
30  void initRun() override;
31 
32 private:
33  int verbosity;
35  double thFibDir;
37 
38  std::unique_ptr<ZdcShowerLibrary> showerLibrary;
39  std::unique_ptr<ZdcNumberingScheme> numberingScheme;
40  std::vector<ZdcShowerLibrary::Hit> hits;
41 };
42 
43 #endif // ZdcSD_h
void setNumberingScheme(ZdcNumberingScheme *scheme)
Definition: ZdcSD.cc:290
double thFibDir
Definition: ZdcSD.h:35
std::unique_ptr< ZdcNumberingScheme > numberingScheme
Definition: ZdcSD.h:39
Definition: CaloSD.h:38
int verbosity
Definition: ZdcSD.h:33
std::vector< ZdcShowerLibrary::Hit > hits
Definition: ZdcSD.h:40
bool useShowerHits
Definition: ZdcSD.h:34
ZdcSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: ZdcSD.cc:26
~ZdcSD() override=default
void initRun() override
Definition: ZdcSD.cc:64
std::unique_ptr< ZdcShowerLibrary > showerLibrary
Definition: ZdcSD.h:38
double zdcHitEnergyCut
Definition: ZdcSD.h:36
step
Definition: StallMonitor.cc:94
bool getFromLibrary(const G4Step *) override
Definition: ZdcSD.cc:66
Definition: ZdcSD.h:13
uint32_t setDetUnitId(const G4Step *step) override
Definition: ZdcSD.cc:286
bool useShowerLibrary
Definition: ZdcSD.h:34
double getEnergyDeposit(const G4Step *) override
Definition: ZdcSD.cc:117