FastSimulation
CalorimeterProperties
src
ECALBarrelProperties.cc
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
3
//This class header
4
#include "
FastSimulation/CalorimeterProperties/interface/ECALBarrelProperties.h
"
5
#include "TMath.h"
6
#include <iostream>
7
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
8
9
ECALBarrelProperties::ECALBarrelProperties
(
const
edm::ParameterSet
& fastDet) {
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"
);
27
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
}
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
edm::LogInfo
Definition:
MessageLogger.h:254
ECALProperties::interactionLength_
double interactionLength_
Definition:
ECALProperties.h:83
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:36
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
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ECALProperties::bHom_
bool bHom_
Definition:
ECALProperties.h:101
ECALProperties::resE_
double resE_
Definition:
ECALProperties.h:96
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
Generated for CMSSW Reference Manual by
1.8.16