CMS 3D CMS Logo

HDShowerParametrization.h
Go to the documentation of this file.
1 #ifndef HDShowerParametrization_H
2 #define HDShowerParametrization_H
3 
16 public:
18  : theECAL(ecal), theHCAL(hcal), theHSParameters(hadronshower) {}
19 
21 
22  const ECALProperties* ecalProperties() const { return theECAL; }
23 
24  const HCALProperties* hcalProperties() const { return theHCAL; }
25 
26  const HSParameters* hsParameters() const { return theHSParameters; }
27 
28  // to distinguish between low- and high-energy case
29  void setCase(int choice) {
30  if (choice < 1 || choice > 2)
31  theCase = 2;
32  else
33  theCase = choice;
34  }
35 
36  // Minimal energy for the parameters calculation ( e < emin)
37  double emin() const { return 2.; }
38  // First range for the parameters calculation ( emin < e < mid)
39  double emid() const { return 10.; }
40  // Second range for the parameters calculation ( emid < e < emax)
41  double emax() const { return 500.; }
42 
43  double e1() const { return 0.35; }
44  double e2() const { return 0.09; }
45  double alpe1() const {
46  if (theCase == 1)
47  return 1.08;
48  else
49  return 1.30;
50  }
51  double alpe2() const {
52  if (theCase == 1)
53  return 0.24;
54  else
55  return 0.255;
56  }
57  double bete1() const {
58  if (theCase == 1)
59  return 0.478;
60  else
61  return 0.289;
62  }
63  double bete2() const {
64  if (theCase == 1)
65  return 0.135;
66  else
67  return 0.010;
68  }
69  double alph1() const {
70  if (theCase == 1)
71  return 1.17;
72  else
73  return 0.38;
74  }
75  double alph2() const {
76  if (theCase == 1)
77  return 0.21;
78  else
79  return 0.23;
80  }
81  double beth1() const {
82  if (theCase == 1)
83  return 2.10;
84  else
85  return 0.83;
86  }
87  double beth2() const {
88  if (theCase == 1)
89  return 0.72;
90  else
91  return 0.049;
92  }
93  double part1() const {
94  if (theCase == 1)
95  return 0.751;
96  else
97  return 0.509;
98  }
99  double part2() const {
100  if (theCase == 1)
101  return 0.177;
102  else
103  return 0.021;
104  }
105  double r1() const { return 0.0124; }
106  double r2() const { return 0.359; }
107  double r3() const { return 0.0511; }
108 
109 private:
113 
114  int theCase;
115 };
116 
117 #endif
const HSParameters * theHSParameters
const ECALProperties * theECAL
HDShowerParametrization(const ECALProperties *ecal, const HCALProperties *hcal, const HSParameters *hadronshower)
const HSParameters * hsParameters() const
const HCALProperties * theHCAL
const HCALProperties * hcalProperties() const
const ECALProperties * ecalProperties() const