Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
SimCalorimetry
CastorSim
src
CastorSimParameterMap.cc
Go to the documentation of this file.
1
#include "
DataFormats/DetId/interface/DetId.h
"
2
#include "
DataFormats/HcalDetId/interface/HcalCastorDetId.h
"
3
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
4
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
5
#include "
SimCalorimetry/CastorSim/src/CastorSimParameterMap.h
"
6
#include <iostream>
7
8
// some arbitrary numbers for now
9
CastorSimParameterMap::CastorSimParameterMap
() : theCastorParameters(1., 4.3333, 2.09, -4.,
false
) {}
10
/*
11
CaloSimParameters(double photomultiplierGain, double amplifierGain,
12
double samplingFactor, double timePhase,
13
int readoutFrameSize, int binOfMaximum,
14
bool doPhotostatistics);
15
*/
16
17
CastorSimParameterMap::CastorSimParameterMap
(
const
edm::ParameterSet
&
p
)
18
: theCastorParameters(
p
.getParameter<
edm
::
ParameterSet
>(
"castor"
)) {}
19
20
const
CaloSimParameters
&
CastorSimParameterMap::simParameters
(
const
DetId
&detId)
const
{
21
HcalGenericDetId
genericId(detId);
22
23
// if(detId.det()==DetId::Calo &&
24
// detId.subdetId()==HcalCastorDetId::SubdetectorId)
25
26
if
(genericId.
isHcalCastorDetId
())
27
return
theCastorParameters
;
28
29
else
30
throw
cms::Exception
(
"not HcalCastorDetId"
);
31
}
32
33
void
CastorSimParameterMap::setDbService
(
const
CastorDbService
*dbService) {
34
theCastorParameters
.
setDbService
(dbService);
35
}
funct::false
false
Definition:
Factorize.h:29
HcalGenericDetId
Definition:
HcalGenericDetId.h:15
CastorSimParameterMap.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
CastorSimParameterMap::simParameters
const CaloSimParameters & simParameters(const DetId &id) const override
Definition:
CastorSimParameterMap.cc:20
DetId
Definition:
DetId.h:17
CastorSimParameterMap::theCastorParameters
CastorSimParameters theCastorParameters
Definition:
CastorSimParameterMap.h:27
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition:
CaloSimParameters.h:14
CastorSimParameters::setDbService
void setDbService(const CastorDbService *service)
Definition:
CastorSimParameters.h:19
CastorSimParameterMap::setDbService
void setDbService(const CastorDbService *service)
Definition:
CastorSimParameterMap.cc:33
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
ParameterSet
Definition:
Functions.h:16
HcalDetId.h
CastorSimParameterMap::CastorSimParameterMap
CastorSimParameterMap()
hardcoded default parameters
Definition:
CastorSimParameterMap.cc:9
CastorDbService
Definition:
CastorDbService.h:25
HcalSubdetector.h
HcalGenericDetId::isHcalCastorDetId
bool isHcalCastorDetId() const
Definition:
HcalGenericDetId.cc:84
DetId.h
Exception
Definition:
hltDiff.cc:245
HcalCastorDetId.h
Generated for CMSSW Reference Manual by
1.8.16