CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ECALEndcapProperties.cc
Go to the documentation of this file.
2 
3 //This class header
5 #include "TMath.h"
6 #include <iostream>
8 
10 {
11 
12  using namespace std;
13 
14  edm::ParameterSet fastDetEndcap = fastDet.getParameter<edm::ParameterSet>("EndcapCalorimeterProperties");
15 
16  lightColl_ = fastDetEndcap.getParameter<double>("lightColl");
17  lightCollUnif_ = fastDetEndcap.getParameter<double>("lightCollUnif");
18  photoStatistics_ = fastDetEndcap.getParameter<double>("photoStatistics");
19  thickness_ = fastDetEndcap.getParameter<double>("thickness");
20  interactionLength_ = fastDetEndcap.getParameter<double>("interactionLength");
21 
22  Aeff_ = fastDetEndcap.getParameter<double>("Aeff");
23  Zeff_ = fastDetEndcap.getParameter<double>("Zeff");
24  rho_ = fastDetEndcap.getParameter<double>("rho");
25  radLenIngcm2_ = fastDetEndcap.getParameter<double>("radLenIngcm2");
26 
27  // Parameters that might be calculated out of the formulas
28 
29  radLenIncm_ = fastDetEndcap.getParameter<double>("radLenIncm");
31 
32  criticalEnergy_ = fastDetEndcap.getParameter<double>("criticalEnergy");
33  criticalEnergy_ = (criticalEnergy_ < 0) ? 2.66E-3*TMath::Power((radLenIngcm2_*Zeff_/Aeff_),1.1) : criticalEnergy_;
34 
35  moliereRadius_ = fastDetEndcap.getParameter<double>("moliereRadius");
37 
38  Fs_ = fastDetEndcap.getParameter<double>("Fs");
39  ehat_ = fastDetEndcap.getParameter<double>("ehat");
40  resE_ = fastDetEndcap.getParameter<double>("resE");
41 
42  bHom_ = fastDetEndcap.getParameter<bool>("bHom");
43 
44  bool debug = fastDetEndcap.getParameter<bool>("debug");
45 
46  if (debug)
47  LogDebug("ECALEndcapProperties") <<" ========== Endcap ========= " << endl
48  <<" \t\t isHom ? " << bHom_ << endl
49  <<" lightColl = " << lightColl_ << endl
50  <<" lightCollUnif_ = " << lightCollUnif_ << endl
51  <<" photoStatistics_ = " << photoStatistics_ << endl
52  <<" thickness_ = " << thickness_ << endl
53  <<" interactionLength_ = " << interactionLength_ << endl
54  <<" Aeff_ = " << Aeff_ << endl
55  <<" Zeff_ = " << Zeff_ << endl
56  <<" rho_ = " << rho_ << endl
57  <<" radLenIngcm2_ = " << radLenIngcm2_ << endl
58  <<" radLenIncm_ = " << radLenIncm_ << endl
59  <<" moliereRadius_ = " << moliereRadius_ << endl
60  <<" criticalEnergy_ = " << criticalEnergy_ << endl
61  <<" scaleEnergy_ = " << scaleEnergy_ << endl
62  <<" Fs = " << Fs_ << " ehat = " << ehat_ << " resE = " << resE_ << endl;
63 
64 
65 }
#define LogDebug(id)
T getParameter(std::string const &) const
const double scaleEnergy_
double moliereRadius_
double criticalEnergy_
double radLenIngcm2_
double lightCollUnif_
double interactionLength_
ECALEndcapProperties(const edm::ParameterSet &fastDet)
double photoStatistics_
#define debug
Definition: MEtoEDMFormat.h:34