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
CondFormats
Alignment
src
DetectorGlobalPosition.cc
Go to the documentation of this file.
1
#include "
CondFormats/Alignment/interface/DetectorGlobalPosition.h
"
2
3
#include "
CondFormats/Alignment/interface/Alignments.h
"
4
#include "
CondFormats/Alignment/interface/AlignTransform.h
"
5
#include "
DataFormats/DetId/interface/DetId.h
"
6
#include "
FWCore/Utilities/interface/Exception.h
"
7
#include <vector>
8
9
namespace
align
{
10
const
AlignTransform
&
DetectorGlobalPosition
(
const
Alignments
&allGlobals,
const
DetId
&
id
) {
11
for
(std::vector<AlignTransform>::const_iterator iter = allGlobals.
m_align
.begin();
12
iter != allGlobals.
m_align
.end();
13
++iter) {
14
if
(iter->rawId() ==
id
.rawId()) {
15
return
*iter;
16
}
17
}
18
19
throw
cms::Exception
(
"RecordNotFound"
) <<
"DetId("
<<
id
.rawId() <<
") not found in GlobalPositionRcd"
<< std::endl;
20
}
21
}
// namespace align
AlignTransform
Definition:
AlignTransform.h:15
align
Definition:
AlignableIndexer.h:30
Alignments
Definition:
Alignments.h:10
Exception
Definition:
hltDiff.cc:245
Alignments::m_align
std::vector< AlignTransform > m_align
Definition:
Alignments.h:19
DetId
Definition:
DetId.h:17
Exception.h
AlignTransform.h
Alignments.h
align::DetectorGlobalPosition
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
Definition:
DetectorGlobalPosition.cc:10
DetectorGlobalPosition.h
DetId.h
Generated for CMSSW Reference Manual by
1.8.14