CMS 3D CMS Logo

ECALEndcapProperties.cc
Go to the documentation of this file.
2 
3 //This class header
5 #include "TMath.h"
6 #include <iostream>
8 
10  edm::ParameterSet fastDetEndcap = fastDet.getParameter<edm::ParameterSet>("EndcapCalorimeterProperties");
11 
12  lightColl_ = fastDetEndcap.getParameter<double>("lightColl");
13  lightCollUnif_ = fastDetEndcap.getParameter<double>("lightCollUnif");
14  photoStatistics_ = fastDetEndcap.getParameter<double>("photoStatistics");
15  thickness_ = fastDetEndcap.getParameter<double>("thickness");
16  interactionLength_ = fastDetEndcap.getParameter<double>("interactionLength");
17 
18  Aeff_ = fastDetEndcap.getParameter<double>("Aeff");
19  Zeff_ = fastDetEndcap.getParameter<double>("Zeff");
20  rho_ = fastDetEndcap.getParameter<double>("rho");
21  radLenIngcm2_ = fastDetEndcap.getParameter<double>("radLenIngcm2");
22 
23  // Parameters that might be calculated out of the formulas
24 
25  radLenIncm_ = fastDetEndcap.getParameter<double>("radLenIncm");
27 
28  criticalEnergy_ = fastDetEndcap.getParameter<double>("criticalEnergy");
30  (criticalEnergy_ < 0) ? 2.66E-3 * TMath::Power((radLenIngcm2_ * Zeff_ / Aeff_), 1.1) : criticalEnergy_;
31 
32  moliereRadius_ = fastDetEndcap.getParameter<double>("moliereRadius");
34 
35  Fs_ = fastDetEndcap.getParameter<double>("Fs");
36  ehat_ = fastDetEndcap.getParameter<double>("ehat");
37  resE_ = fastDetEndcap.getParameter<double>("resE");
38 
39  da_ = fastDetEndcap.getParameter<double>("da");
40  dp_ = fastDetEndcap.getParameter<double>("dp");
41 
42  bHom_ = fastDetEndcap.getParameter<bool>("bHom");
43 
44  bool debug = fastDetEndcap.getParameter<bool>("debug");
45 
46  if (debug)
47  edm::LogInfo("ECALProperties") << " ========== Endcap ========= \n"
48  << " isHom ? " << bHom_ << "\n"
49  << " da = " << da_ << " dp = " << dp_ << " lightColl = " << lightColl_ << "\n"
50  << " lightCollUnif_ = " << lightCollUnif_ << "\n"
51  << " photoStatistics_ = " << photoStatistics_ << " photons/GeV\n"
52  << " thickness_ = " << thickness_ << " in cm \n"
53  << " interactionLength_ = " << interactionLength_ << " cm \n"
54  << " Aeff_ = " << Aeff_ << "\n"
55  << " Zeff_ = " << Zeff_ << "\n"
56  << " rho_ = " << rho_ << " g/cm3\n"
57  << " radLenIngcm2_ = " << radLenIngcm2_ << " g*cm2\n"
58  << " radLenIncm_ = " << radLenIncm_ << " cm\n"
59  << " moliereRadius_ = " << moliereRadius_ << " cm\n"
60  << " criticalEnergy_ = " << criticalEnergy_ << " GeV\n"
61  << " scaleEnergy_ = " << scaleEnergy_ << " GeV\n"
62  << " Fs = " << Fs_ << " ehat = " << ehat_ << " resE = " << resE_ << "\n";
63 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const double scaleEnergy_
double moliereRadius_
double criticalEnergy_
double radLenIngcm2_
Log< level::Info, false > LogInfo
#define debug
Definition: HDRShower.cc:19
double lightCollUnif_
double interactionLength_
ECALEndcapProperties(const edm::ParameterSet &fastDet)
double photoStatistics_