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
HcalSimAlgos
src
HcalCoderFactory.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/HcalSimAlgos/interface/HcalCoderFactory.h
"
2
#include "
CalibFormats/HcalObjects/interface/HcalCoderDb.h
"
3
#include "
CalibFormats/HcalObjects/interface/HcalNominalCoder.h
"
4
5
HcalCoderFactory::HcalCoderFactory
(
CoderType
coderType) : theCoderType(coderType), theDbService(nullptr) {}
6
7
std::unique_ptr<HcalCoder>
HcalCoderFactory::coder
(
const
DetId
&
id
)
const
{
8
HcalCoder
*
result
=
nullptr
;
9
if
(
theCoderType
==
DB
) {
10
assert
(
theDbService
!=
nullptr
);
11
HcalGenericDetId
hcalGenDetId(
id
);
12
const
HcalQIECoder
* qieCoder =
theDbService
->
getHcalCoder
(hcalGenDetId);
13
const
HcalQIEShape
* qieShape =
theDbService
->
getHcalShape
(hcalGenDetId);
14
result
=
new
HcalCoderDb
(*qieCoder, *qieShape);
15
}
else
{
16
result
=
new
HcalNominalCoder
();
17
}
18
return
std::unique_ptr<HcalCoder>(
result
);
19
}
HcalGenericDetId
Definition:
HcalGenericDetId.h:15
HcalCoderFactory::HcalCoderFactory
HcalCoderFactory(CoderType coderType)
Definition:
HcalCoderFactory.cc:5
HcalNominalCoder
Definition:
HcalNominalCoder.h:11
cms::cuda::assert
assert(be >=bs)
HcalCoderFactory::theCoderType
CoderType theCoderType
Definition:
HcalCoderFactory.h:20
HcalDbService::getHcalShape
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
Definition:
HcalDbService.cc:326
HcalCoderDb.h
HcalDbService::getHcalCoder
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
Definition:
HcalDbService.cc:319
DetId
Definition:
DetId.h:17
HcalNominalCoder.h
HcalCoderFactory.h
HcalCoderFactory::coder
std::unique_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer
Definition:
HcalCoderFactory.cc:7
HcalCoderFactory::theDbService
const HcalDbService * theDbService
Definition:
HcalCoderFactory.h:21
HcalQIECoder
Definition:
HcalQIECoder.h:20
HcalCoder
Definition:
HcalCoder.h:19
HcalQIEShape
Definition:
HcalQIEShape.h:17
HcalCoderDb
Definition:
HcalCoderDb.h:15
mps_fire.result
result
Definition:
mps_fire.py:311
HcalCoderFactory::DB
Definition:
HcalCoderFactory.h:10
HcalCoderFactory::CoderType
CoderType
Definition:
HcalCoderFactory.h:10
Generated for CMSSW Reference Manual by
1.8.16