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
CalibCalorimetry
CaloMiscalibTools
src
MiscalibReaderXMLEcalEndcap.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
2
#include "
CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLEcalEndcap.h
"
3
4
DetId
MiscalibReaderFromXMLEcalEndcap::parseCellEntry
(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) {
5
EEDetId
cell =
MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes
(
getIntAttribute
(attribute,
"x_index"
),
6
getIntAttribute
(attribute,
"y_index"
),
7
getIntAttribute
(attribute,
"z_index"
));
8
return
cell;
9
}
10
11
EEDetId
MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes
(
int
ix,
int
iy,
int
iz) {
12
try
{
13
if
(
EEDetId::validDetId
(ix, iy, iz)) {
14
EEDetId
cell(ix, iy, iz);
15
return
cell;
16
}
else
{
17
return
EEDetId
(0);
18
}
19
}
20
21
catch
(...)
22
23
{
24
std::cout
<<
"Null coordinates = "
<< ix <<
","
<< iy <<
","
<< iz << std::endl;
25
return
EEDetId
(0);
26
}
27
}
MiscalibReaderFromXMLEcalEndcap::parseCellEntry
DetId parseCellEntry(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
Definition:
MiscalibReaderXMLEcalEndcap.cc:4
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
EEDetId.h
MiscalibReaderFromXMLEcalEndcap.h
DetId
Definition:
DetId.h:17
MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes
EEDetId getCellFromAttributes(int ix, int iy, int iz)
Definition:
MiscalibReaderXMLEcalEndcap.cc:11
EEDetId
Definition:
EEDetId.h:14
MiscalibReaderFromXML::getIntAttribute
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition:
MiscalibReaderXML.cc:41
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition:
EEDetId.h:248
Generated for CMSSW Reference Manual by
1.8.16