CMS 3D CMS Logo

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");
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");
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 }
ECALProperties::rho_
double rho_
Definition: ECALProperties.h:87
MessageLogger.h
ECALProperties::criticalEnergy_
double criticalEnergy_
Definition: ECALProperties.h:92
ECALProperties::radLenIngcm2_
double radLenIngcm2_
Definition: ECALProperties.h:89
ECALProperties::interactionLength_
double interactionLength_
Definition: ECALProperties.h:83
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
ECALProperties::photoStatistics_
double photoStatistics_
Definition: ECALProperties.h:81
debug
#define debug
Definition: HDRShower.cc:19
ECALProperties::Zeff_
double Zeff_
Definition: ECALProperties.h:86
ECALBarrelProperties::ECALBarrelProperties
ECALBarrelProperties(const edm::ParameterSet &fastDet)
Definition: ECALBarrelProperties.cc:9
edm::ParameterSet
Definition: ParameterSet.h:47
ECALProperties::thickness_
double thickness_
Definition: ECALProperties.h:82
ECALProperties::radLenIncm_
double radLenIncm_
Definition: ECALProperties.h:88
ECALProperties::lightColl_
double lightColl_
Definition: ECALProperties.h:79
ECALProperties::da_
double da_
Definition: ECALProperties.h:98
ECALProperties::bHom_
bool bHom_
Definition: ECALProperties.h:101
ECALProperties::resE_
double resE_
Definition: ECALProperties.h:96
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParameterSet.h
ECALProperties::moliereRadius_
double moliereRadius_
Definition: ECALProperties.h:90
ECALProperties::ehat_
double ehat_
Definition: ECALProperties.h:95
ECALProperties::lightCollUnif_
double lightCollUnif_
Definition: ECALProperties.h:80
ECALProperties::scaleEnergy_
const double scaleEnergy_
Definition: ECALProperties.h:104
ECALBarrelProperties.h
ECALProperties::Aeff_
double Aeff_
Definition: ECALProperties.h:85
ECALProperties::Fs_
double Fs_
Definition: ECALProperties.h:94
ECALProperties::dp_
double dp_
Definition: ECALProperties.h:99