CMS 3D CMS Logo

HCALProperties.h
Go to the documentation of this file.
1 #ifndef HCALProperties_H
2 #define HCALProperties_H
3 
5 #include <vector>
6 
17 namespace edm {
18  class ParameterSet;
19 }
20 
22 {
23 
24  public:
25 
26  HCALProperties(const edm::ParameterSet& fastDet);
27 
28  ~HCALProperties() override {
29  }
30 
32  inline double theAeff() const override { return HCALAeff_; }
33 
35  inline double theZeff() const override { return HCALZeff_; }
36 
38  inline double rho() const override { return HCALrho_; }
39 
41  inline double radLenIncm() const override { return radiationLengthIncm(); }
42 
44  // This is needed in Calorimetry/CrystalSegment.
45  // Patrick, if you don't like it, give me another solution
46  // to access the ECALProperties efficiently.
47  inline double radiationLengthIncm() const { return HCALradiationLengthIncm_; }
48 
50  inline double radLenIngcm2() const override { return HCALradLenIngcm2_; }
51 
53  inline double moliereRadius() const override { return HCALmoliereRadius_; }
54  //inline double moliereRadius() const { return 2.4; }
55 
57  inline double criticalEnergy() const override { return HCALcriticalEnergy_; }
58 
60  inline double interactionLength() const override { return HCALinteractionLength_; }
61 
64  inline double hOverPi() const {return hOPi;}
65 
67  inline double spotFraction() const {return spotFrac;}
68 
69  double getHcalDepth(double) const;
70 
71  int eta2ieta(double eta) const;
72 
73  private:
74  double hOPi;
75  double spotFrac;
76 
77  protected:
78  double HCALAeff_;
79  double HCALZeff_;
80  double HCALrho_;
86  std::vector <double> etatow_;// HCAL towers eta edges
87  std::vector <double> hcalDepthLam_;// HCAL depth for each tower ieta
88 
89 };
90 
91 #endif
std::vector< double > etatow_
double criticalEnergy() const override
Critical energy in GeV (2.66E-3*(x0*Z/A)^1.1)
double radiationLengthIncm() const
Radiation length in cm but static.
double HCALradiationLengthIncm_
double theAeff() const override
Effective A.
double radLenIncm() const override
Radiation length in cm.
double interactionLength() const override
Interaction length in cm.
double spotFraction() const
Spot fraction wrt ECAL.
double hOverPi() const
double HCALradLenIngcm2_
double HCALcriticalEnergy_
double theZeff() const override
Effective Z.
~HCALProperties() override
double moliereRadius() const override
Moliere Radius in cm (=7 A/Z in g/cm^2)
double rho() const override
Density in g/cm3.
double HCALinteractionLength_
double radLenIngcm2() const override
Radiation length in g/cm^2.
HLT enums.
double HCALmoliereRadius_
std::vector< double > hcalDepthLam_