CMS 3D CMS Logo

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