test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
8
// Preshower : mumber of Mips / GeV
9
mips
= fastDet.
getParameter
<
double
>(
"PreshowerLayer2_mipsPerGeV"
);
10
thick
= fastDet.
getParameter
<
double
>(
"PreshowerLayer2_thickness"
);
11
pseeradLenIncm_
= fastDet.
getUntrackedParameter
<
double
>(
"PreshowerEEGapRadLenInCm"
,63.);
12
pseeInteractionLength_
= fastDet.
getUntrackedParameter
<
double
>(
"PreshowerEEGapIntLenInCm"
,111.);
13
}
14
15
double
PreshowerLayer2Properties::thickness
(
const
double
eta
)
const
{
16
17
// eta is the pseudorapidity
18
double
e
=
exp
(-eta);
19
double
e2 = e*
e
;
20
// 1 / cos theta
21
double
cinv = (1.+e2)/(1.-e2);
22
// double c = (1.-e2)/(1.+e2);
23
// double s = 2.*e/(1.+e2);
24
// double t = 2.*e/(1.-e2);
25
double
feta = fabs(eta);
26
27
if
( 1.637 < feta && feta < 2.625 )
28
{
29
return
thick
* fabs(cinv);
30
}
31
else
32
{
33
return
0;
34
}
35
36
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1087
PreshowerLayer2Properties::pseeradLenIncm_
double pseeradLenIncm_
Definition:
PreshowerLayer2Properties.h:46
PreshowerLayer2Properties::thickness
double thickness(const double eta) const
Definition:
PreshowerLayer2Properties.cc:15
eta
T eta() const
Definition:
Basic3DVectorLD.h:177
PreshowerLayer2Properties::pseeInteractionLength_
double pseeInteractionLength_
Definition:
PreshowerLayer2Properties.h:45
PreshowerProperties::mips
double mips
Definition:
PreshowerProperties.h:55
PreshowerProperties::thick
double thick
Definition:
PreshowerProperties.h:54
ParameterSet.h
PreshowerProperties
Definition:
PreshowerProperties.h:15
PreshowerLayer2Properties::PreshowerLayer2Properties
PreshowerLayer2Properties(const edm::ParameterSet &fastDet)
Definition:
PreshowerLayer2Properties.cc:6
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
edm::ParameterSet
Definition:
ParameterSet.h:35
PreshowerLayer2Properties.h
Generated for CMSSW Reference Manual by
1.8.5