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
DetectorDescription
DDCMS
src
DDCompactView.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/DDCMS/interface/DDCompactView.h
"
2
#include "
DetectorDescription/DDCMS/interface/Filter.h
"
3
4
#include <cmath>
5
6
template
<>
7
std::vector<int> cms::DDCompactView::getVector<int>(
const
std::string
&
key
)
const
{
8
const
cms::DDVectorsMap
& vmap = this->
detector
()->
vectors
();
9
std::vector<int>
result
;
10
for
(
auto
const
& it : vmap) {
11
if
(
cms::dd::noNamespace
(it.first) ==
key
) {
12
for
(
const
auto
&
i
: it.second) {
13
result
.emplace_back(std::round(
i
));
14
}
15
break
;
16
}
17
}
18
return
result
;
19
}
20
21
template
<>
22
std::vector<double> cms::DDCompactView::getVector<double>(
const
std::string
&
key
)
const
{
23
const
cms::DDVectorsMap
& vmap = this->
detector
()->vectors();
24
std::vector<double>
result
;
25
26
for
(
auto
const
& it : vmap) {
27
if
(
cms::dd::noNamespace
(it.first) ==
key
) {
28
for
(
const
auto
&
i
: it.second) {
29
result
.emplace_back(
i
);
30
}
31
break
;
32
}
33
}
34
return
result
;
35
}
mps_fire.i
i
Definition:
mps_fire.py:355
cms::DDVectorsMap
tbb::concurrent_unordered_map< std::string, tbb::concurrent_vector< double > > DDVectorsMap
Definition:
DDNamespace.h:14
cms::dd::noNamespace
std::string_view noNamespace(std::string_view)
Definition:
Filter.cc:63
DDCompactView.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
hgcalTestNeighbor_cfi.detector
detector
Definition:
hgcalTestNeighbor_cfi.py:6
mps_fire.result
result
Definition:
mps_fire.py:303
crabWrapper.key
key
Definition:
crabWrapper.py:19
cms::DDDetector::vectors
DDVectorsMap const & vectors() const
Definition:
DDDetector.h:22
cms::DDCompactView::detector
const cms::DDDetector * detector() const
Definition:
DDCompactView.h:32
Filter.h
Generated for CMSSW Reference Manual by
1.8.16