test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HDShowerParametrization.h
Go to the documentation of this file.
1 #ifndef HDShowerParametrization_H
2 #define HDShowerParametrization_H
3 
16 {
17  public:
18 
20  const HCALProperties* hcal,
21  const HSParameters * hadronshower):
22  theECAL(ecal),
23  theHCAL(hcal),
24  theHSParameters(hadronshower){}
25 
27 
28  const ECALProperties* ecalProperties() const {
29  return theECAL;
30  }
31 
32  const HCALProperties* hcalProperties() const {
33  return theHCAL;
34  }
35 
36  const HSParameters * hsParameters() const{
37  return theHSParameters;
38  }
39 
40  // to distinguish between low- and high-energy case
41  void setCase(int choice) {
42  if(choice < 1 || choice > 2) theCase = 2;
43  else theCase = choice;
44  }
45 
46  // Minimal energy for the parameters calculation ( e < emin)
47  double emin() const { return 2.;}
48  // First range for the parameters calculation ( emin < e < mid)
49  double emid() const { return 10.; }
50  // Second range for the parameters calculation ( emid < e < emax)
51  double emax() const { return 500.; }
52 
53  double e1() const { return 0.35; }
54  double e2() const { return 0.09; }
55  double alpe1() const { if(theCase==1) return 1.08; else return 1.30; }
56  double alpe2() const { if(theCase==1) return 0.24; else return 0.255; }
57  double bete1() const { if(theCase==1) return 0.478; else return 0.289; }
58  double bete2() const { if(theCase==1) return 0.135; else return 0.010; }
59  double alph1() const { if(theCase==1) return 1.17; else return 0.38; }
60  double alph2() const { if(theCase==1) return 0.21; else return 0.23; }
61  double beth1() const { if(theCase==1) return 2.10; else return 0.83; }
62  double beth2() const { if(theCase==1) return 0.72; else return 0.049; }
63  double part1() const { if(theCase==1) return 0.751; else return 0.509; }
64  double part2() const { if(theCase==1) return 0.177; else return 0.021; }
65  double r1() const { return 0.0124; }
66  double r2() const { return 0.359; }
67  double r3() const { return 0.0511; }
68 
69  private:
70 
74 
75  int theCase;
76 };
77 
78 #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