FastSimulation
CalorimeterProperties
src
PreshowerLayer2Properties.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/PreshowerLayer2Properties.h
"
5
#include <cmath>
6
PreshowerLayer2Properties::PreshowerLayer2Properties
(
const
edm::ParameterSet
& fastDet) :
PreshowerProperties
() {
7
// Preshower : mumber of Mips / GeV
8
mips
= fastDet.
getParameter
<
double
>(
"PreshowerLayer2_mipsPerGeV"
);
9
thick
= fastDet.
getParameter
<
double
>(
"PreshowerLayer2_thickness"
);
10
pseeradLenIncm_
= fastDet.
getUntrackedParameter
<
double
>(
"PreshowerEEGapRadLenInCm"
, 63.);
11
pseeInteractionLength_
= fastDet.
getUntrackedParameter
<
double
>(
"PreshowerEEGapIntLenInCm"
, 111.);
12
}
13
14
double
PreshowerLayer2Properties::thickness
(
const
double
eta
)
const
{
15
// eta is the pseudorapidity
16
double
e
=
exp
(-
eta
);
17
double
e2 =
e
*
e
;
18
// 1 / cos theta
19
double
cinv = (1. + e2) / (1. - e2);
20
// double c = (1.-e2)/(1.+e2);
21
// double s = 2.*e/(1.+e2);
22
// double t = 2.*e/(1.-e2);
23
double
feta
= fabs(
eta
);
24
25
if
(1.637 <
feta
&&
feta
< 2.625) {
26
return
thick
* fabs(cinv);
27
}
else
{
28
return
0;
29
}
30
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
PreshowerLayer2Properties::pseeradLenIncm_
double pseeradLenIncm_
Definition:
PreshowerLayer2Properties.h:42
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
PreshowerLayer2Properties::pseeInteractionLength_
double pseeInteractionLength_
Definition:
PreshowerLayer2Properties.h:41
PreshowerProperties::mips
double mips
Definition:
PreshowerProperties.h:49
JetMETHLTOfflineSource_cfi.feta
feta
Definition:
JetMETHLTOfflineSource_cfi.py:30
PreshowerProperties::thick
double thick
Definition:
PreshowerProperties.h:48
ParameterSet.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
PreshowerLayer2Properties::thickness
double thickness(const double eta) const override
Definition:
PreshowerLayer2Properties.cc:14
PreshowerProperties
Definition:
PreshowerProperties.h:15
PreshowerLayer2Properties::PreshowerLayer2Properties
PreshowerLayer2Properties(const edm::ParameterSet &fastDet)
Definition:
PreshowerLayer2Properties.cc:6
edm::ParameterSet
Definition:
ParameterSet.h:47
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
PreshowerLayer2Properties.h
Generated for CMSSW Reference Manual by
1.8.14