test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FastSimulation
CalorimeterProperties
src
PreshowerLayer1Properties.cc
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
//This class header
3
#include "
FastSimulation/CalorimeterProperties/interface/PreshowerLayer1Properties.h
"
4
#include <cmath>
5
PreshowerLayer1Properties::PreshowerLayer1Properties
(
const
edm::ParameterSet
& fastDet)
6
:
PreshowerProperties
()
7
{
8
// Preshower : mumber of Mips / GeV
9
mips
= fastDet.
getParameter
<
double
>(
"PreshowerLayer1_mipsPerGeV"
);
10
thick
= fastDet.
getParameter
<
double
>(
"PreshowerLayer1_thickness"
);
11
}
12
13
double
PreshowerLayer1Properties::thickness
(
double
eta
)
const
{
14
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.623 < feta && feta < 2.611 )
26
{
27
return
thick
* fabs(cinv);
28
}
29
else
30
{
31
return
0;
32
}
33
34
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1088
PreshowerProperties::mips
double mips
Definition:
PreshowerProperties.h:55
PreshowerProperties::thick
double thick
Definition:
PreshowerProperties.h:54
ParameterSet.h
PreshowerLayer1Properties.h
PreshowerLayer1Properties::PreshowerLayer1Properties
PreshowerLayer1Properties(const edm::ParameterSet &fastDet)
Definition:
PreshowerLayer1Properties.cc:5
eta
Definition:
HIMultiTrackSelector.h:42
PreshowerProperties
Definition:
PreshowerProperties.h:15
PreshowerLayer1Properties::thickness
double thickness(double eta) const
Definition:
PreshowerLayer1Properties.cc:13
reco::e2
Float e2
Definition:
deltaR.h:21
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
edm::ParameterSet
Definition:
ParameterSet.h:36
Generated for CMSSW Reference Manual by
1.8.5