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
n
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
c
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
src
RecoLocalCalo
CaloTowersCreator
src
HcalMaterials.cc
Go to the documentation of this file.
1
#include "
HcalMaterials.h
"
2
3
#include <iostream>
4
5
HcalMaterials::HcalMaterials
() {}
6
7
HcalMaterials::~HcalMaterials
() {}
8
9
float
HcalMaterials::getValue
(
DetId
fId,
float
energy
) {
10
// a real function should be added
11
float
value
= 0.;
12
for
(
unsigned
int
iItem = 0; iItem <
mItems
.size(); iItem++) {
13
if
(fId.
rawId
() ==
mItems
[iItem].mmId()) {
14
value
=
mItems
[iItem].getValue(
energy
);
15
continue
;
16
}
17
}
18
return
value
;
19
}
20
21
void
HcalMaterials::putValue
(
DetId
fId,
const
std::pair<std::vector<float>, std::vector<float> >& fArray) {
22
Item
item
(fId.
rawId
(), fArray);
23
mItems
.push_back(
item
);
24
}
HcalMaterials.h
HcalMaterials::HcalMaterials
HcalMaterials()
Definition:
HcalMaterials.cc:5
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:148
hcalRecHitTable_cff.energy
energy
Definition:
hcalRecHitTable_cff.py:13
value
Definition:
value.py:1
HcalMaterials::getValue
float getValue(DetId fId, float energy)
Definition:
HcalMaterials.cc:9
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
HcalMaterials::mItems
Container mItems
Definition:
HcalMaterials.h:40
DetId
Definition:
DetId.h:17
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition:
DetId.h:57
HcalMaterials::putValue
void putValue(DetId fId, const std::pair< std::vector< float >, std::vector< float > > &fArray)
Definition:
HcalMaterials.cc:21
HcalMaterials::~HcalMaterials
~HcalMaterials()
Definition:
HcalMaterials.cc:7
HcalMaterial
Definition:
HcalMaterials.h:8
Generated for CMSSW Reference Manual by
1.8.14