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 }
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
edm::ParameterSet
Definition: ParameterSet.h:47
ECALEndcapProperties::ECALEndcapProperties
ECALEndcapProperties(const edm::ParameterSet &fastDet)
Definition: ECALEndcapProperties.cc:9
ECALProperties::thickness_
double thickness_
Definition: ECALProperties.h:82
ECALEndcapProperties.h
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
ECALProperties::Aeff_
double Aeff_
Definition: ECALProperties.h:85
ECALProperties::Fs_
double Fs_
Definition: ECALProperties.h:94
ECALProperties::dp_
double dp_
Definition: ECALProperties.h:99