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
EcalSimAlgos
src
EEHitResponse.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/EcalSimAlgos/interface/EEHitResponse.h
"
2
#include "
SimCalorimetry/EcalSimAlgos/interface/APDSimParameters.h
"
3
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVSimParameterMap.h
"
4
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloSimParameters.h
"
5
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVHitFilter.h
"
6
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVShape.h
"
7
#include "
Geometry/CaloGeometry/interface/CaloGenericDetId.h
"
8
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
9
10
EEHitResponse::EEHitResponse
(
const
CaloVSimParameterMap
* parameterMap,
const
CaloVShape
* shape)
11
:
12
13
EcalHitResponse
(parameterMap, shape) {
14
const
EEDetId
detId(
EEDetId::detIdFromDenseIndex
(0));
15
const
CaloSimParameters
&
parameters
(parameterMap->
simParameters
(detId));
16
17
const
unsigned
int
rSize(
parameters
.readoutFrameSize());
18
const
unsigned
int
nPre(
parameters
.binOfMaximum() - 1);
19
20
const
unsigned
int
size
(
EEDetId::kSizeForDenseIndexing
);
21
22
m_vSam
.reserve(
size
);
23
24
for
(
unsigned
int
i
(0);
i
!=
size
; ++
i
) {
25
m_vSam
.emplace_back(
CaloGenericDetId
(detId.
det
(), detId.
subdetId
(),
i
), rSize, nPre);
26
}
27
}
28
29
EEHitResponse::~EEHitResponse
() {}
30
31
unsigned
int
EEHitResponse::samplesSize
()
const
{
return
m_vSam
.size(); }
32
33
unsigned
int
EEHitResponse::samplesSizeAll
()
const
{
return
m_vSam
.size(); }
34
35
const
EcalHitResponse::EcalSamples
*
EEHitResponse::operator[]
(
unsigned
int
i
)
const
{
return
&
m_vSam
[
i
]; }
36
37
EcalHitResponse::EcalSamples
*
EEHitResponse::operator[]
(
unsigned
int
i
) {
return
&
m_vSam
[
i
]; }
38
39
EcalHitResponse::EcalSamples
*
EEHitResponse::vSam
(
unsigned
int
i
) {
return
&
m_vSam
[
i
]; }
40
41
EcalHitResponse::EcalSamples
*
EEHitResponse::vSamAll
(
unsigned
int
i
) {
return
&
m_vSam
[
i
]; }
42
43
const
EcalHitResponse::EcalSamples
*
EEHitResponse::vSamAll
(
unsigned
int
i
)
const
{
return
&
m_vSam
[
i
]; }
CaloGenericDetId.h
EEHitResponse::samplesSizeAll
unsigned int samplesSizeAll() const override
Definition:
EEHitResponse.cc:33
BeamSpotPI::parameters
parameters
Definition:
BeamSpotPayloadInspectorHelper.h:30
mps_fire.i
i
Definition:
mps_fire.py:428
CaloGenericDetId
Definition:
CaloGenericDetId.h:12
CaloVSimParameterMap
Definition:
CaloVSimParameterMap.h:7
EEHitResponse::vSamAll
EcalSamples * vSamAll(unsigned int i) override
Definition:
EEHitResponse.cc:41
EEHitResponse::vSam
EcalSamples * vSam(unsigned int i) override
Definition:
EEHitResponse.cc:39
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition:
DetId.h:46
EEDetId.h
CaloTSamplesBase
Definition:
CaloTSamplesBase.h:9
CaloSimParameters.h
EEHitResponse.h
CaloVHitFilter.h
EEHitResponse::operator[]
EcalSamples * operator[](unsigned int i) override
Definition:
EEHitResponse.cc:37
EEDetId::detIdFromDenseIndex
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition:
EEDetId.h:220
EEDetId::kSizeForDenseIndexing
Definition:
EEDetId.h:329
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition:
CaloSimParameters.h:14
CaloVSimParameterMap::simParameters
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition:
DetId.h:48
EEDetId
Definition:
EEDetId.h:14
EEHitResponse::~EEHitResponse
~EEHitResponse() override
Definition:
EEHitResponse.cc:29
CaloVSimParameterMap.h
EcalHitResponse
Definition:
EcalHitResponse.h:29
CaloVShape
Electronic response of the preamp.
Definition:
CaloVShape.h:11
APDSimParameters.h
CaloVShape.h
EEHitResponse::m_vSam
std::vector< EESamples > m_vSam
Definition:
EEHitResponse.h:33
EEHitResponse::EEHitResponse
EEHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
Definition:
EEHitResponse.cc:10
EEHitResponse::samplesSize
unsigned int samplesSize() const override
Definition:
EEHitResponse.cc:31
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16