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 <boost/cstdint.hpp>
28 
29 class HcalTB02SD : public CaloSD {
30 
31 public:
33  edm::ParameterSet const &, const SimTrackManager*);
34  ~HcalTB02SD() override;
35  uint32_t setDetUnitId(const G4Step* step) override;
37 
38 protected:
39 
40  double getEnergyDeposit(const G4Step*) override;
41 
42 private:
43 
44  void initMap(const std::string&, const DDCompactView &);
45  double curve_LY(const G4String& , const G4StepPoint* );
46  double crystalLength(const G4String&);
47 
48 private:
49 
51  bool useWeight;
52  bool useBirk;
53  double birk1, birk2, birk3;
54  std::map<G4String,double> lengthMap;
55 };
56 
57 #endif
std::map< G4String, double > lengthMap
Definition: HcalTB02SD.h:54
double birk2
Definition: HcalTB02SD.h:53
HcalTB02NumberingScheme * numberingScheme
Definition: HcalTB02SD.h:50
double crystalLength(const G4String &)
Definition: HcalTB02SD.cc:176
Definition: CaloSD.h:37
double getEnergyDeposit(const G4Step *) override
Definition: HcalTB02SD.cc:87
uint32_t setDetUnitId(const G4Step *step) override
Definition: HcalTB02SD.cc:107
bool useWeight
Definition: HcalTB02SD.h:51
bool useBirk
Definition: HcalTB02SD.h:52
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
~HcalTB02SD() override
Definition: HcalTB02SD.cc:79
double curve_LY(const G4String &, const G4StepPoint *)
Definition: HcalTB02SD.cc:151
double birk3
Definition: HcalTB02SD.h:53
void setNumberingScheme(HcalTB02NumberingScheme *scheme)
Definition: HcalTB02SD.cc:111
void initMap(const std::string &, const DDCompactView &)
Definition: HcalTB02SD.cc:120
HcalTB02SD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HcalTB02SD.cc:36
step
double birk1
Definition: HcalTB02SD.h:53