CMS 3D CMS Logo

HcalTB02SD.h
Go to the documentation of this file.
1 #ifndef HcalTestBeam_HcalTB02SD_H
2 #define HcalTestBeam_HcalTB02SD_H
3 // -*- C++ -*-
4 //
5 // Package: HcalTestBeam
6 // Class : HcalTB02SD
7 //
14 //
15 // Original Author:
16 // Created: Fri May 20 10:14:34 CEST 2006
17 //
18 
19 // system include files
20 #include <map>
21 
22 // user include files
25 
26 #include "G4String.hh"
27 #include <cstdint>
28 
29 class HcalTB02SD : public CaloSD {
30 public:
31  HcalTB02SD(const std::string&,
32  const edm::EventSetup&,
34  edm::ParameterSet const&,
35  const SimTrackManager*);
36  ~HcalTB02SD() override;
37  uint32_t setDetUnitId(const G4Step* step) override;
39 
40 protected:
41  double getEnergyDeposit(const G4Step*) override;
42 
43 private:
44  void initMap(const std::string&, const edm::EventSetup&);
45  double curve_LY(const G4String&, const G4StepPoint*);
46  double crystalLength(const G4String&);
47 
48 private:
50  bool useWeight;
51  bool useBirk;
52  double birk1, birk2, birk3;
53  std::map<G4String, double> lengthMap;
54 };
55 
56 #endif
double birk2
Definition: HcalTB02SD.h:52
std::map< G4String, double > lengthMap
Definition: HcalTB02SD.h:53
HcalTB02NumberingScheme * numberingScheme
Definition: HcalTB02SD.h:49
void initMap(const std::string &, const edm::EventSetup &)
Definition: HcalTB02SD.cc:119
double crystalLength(const G4String &)
Definition: HcalTB02SD.cc:169
Definition: CaloSD.h:38
double getEnergyDeposit(const G4Step *) override
Definition: HcalTB02SD.cc:90
uint32_t setDetUnitId(const G4Step *step) override
Definition: HcalTB02SD.cc:106
bool useWeight
Definition: HcalTB02SD.h:50
bool useBirk
Definition: HcalTB02SD.h:51
HcalTB02SD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HcalTB02SD.cc:39
~HcalTB02SD() override
Definition: HcalTB02SD.cc:81
double curve_LY(const G4String &, const G4StepPoint *)
Definition: HcalTB02SD.cc:149
double birk3
Definition: HcalTB02SD.h:52
void setNumberingScheme(HcalTB02NumberingScheme *scheme)
Definition: HcalTB02SD.cc:110
step
Definition: StallMonitor.cc:94
double birk1
Definition: HcalTB02SD.h:52