Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
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
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
y
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
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File 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
l
m
n
o
p
q
r
s
t
u
v
w
x
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
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
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
Macros
_
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
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Tracking
TrkEvent
TrkEventUtils
src
RoT_Extractor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// RoT_Extractor.cxx, (c) ATLAS Detector software //
8
9
#include "
TrkEventUtils/RoT_Extractor.h
"
10
#include "
TrkCompetingRIOsOnTrack/CompetingRIOsOnTrack.h
"
11
#include "
TrkMeasurementBase/MeasurementBase.h
"
12
#include "
TrkRIO_OnTrack/RIO_OnTrack.h
"
13
14
void
15
Trk::RoT_Extractor::extract
(
16
std::vector<const RIO_OnTrack*>& rots,
17
const
std::vector<const MeasurementBase*>& measurements,
18
bool
convertCompRots)
19
{
20
using namespace
std;
21
rots.reserve(rots.size() + measurements.size());
22
vector<const MeasurementBase*>::const_iterator
it
= measurements.begin();
23
vector<const MeasurementBase*>::const_iterator itEnd = measurements.end();
24
for
(;
it
!= itEnd; ++
it
) {
25
const
Trk::RIO_OnTrack
* rot =
nullptr
;
26
if
((*it)->type(
Trk::MeasurementBaseType::RIO_OnTrack
)) {
27
rot =
static_cast<
const
RIO_OnTrack
*
>
(*it);
28
}
29
if
(convertCompRots &&
nullptr
== rot) {
30
const
Trk::CompetingRIOsOnTrack
* comprot =
nullptr
;
31
if
((*it)->type(
Trk::MeasurementBaseType::CompetingRIOsOnTrack
)) {
32
comprot =
static_cast<
const
Trk::CompetingRIOsOnTrack
*
>
(*it);
33
}
34
if
(comprot) {
35
rot = &comprot->
rioOnTrack
(comprot->
indexOfMaxAssignProb
());
36
}
37
}
38
if
(
nullptr
!= rot) {
39
rots.push_back(rot);
40
}
41
}
42
}
43
44
void
45
Trk::RoT_Extractor::extract
(
const
Trk::RIO_OnTrack
*& rot,
46
const
Trk::MeasurementBase
* meas)
47
{
48
49
if
(meas->
type
(
Trk::MeasurementBaseType::RIO_OnTrack
)) {
50
rot =
static_cast<
const
RIO_OnTrack
*
>
(meas);
51
}
52
if
(rot ==
nullptr
) {
53
const
Trk::CompetingRIOsOnTrack
* comprot =
nullptr
;
54
if
(meas->
type
(
Trk::MeasurementBaseType::CompetingRIOsOnTrack
)) {
55
comprot =
static_cast<
const
Trk::CompetingRIOsOnTrack
*
>
(meas);
56
}
57
if
(comprot) {
58
rot = &comprot->
rioOnTrack
(comprot->
indexOfMaxAssignProb
());
59
}
60
}
61
}
62
MeasurementBase.h
CompetingRIOsOnTrack.h
skel.it
it
Definition:
skel.GENtoEVGEN.py:407
Trk::RIO_OnTrack
Definition:
RIO_OnTrack.h:70
Trk::RoT_Extractor::extract
static void extract(std::vector< const RIO_OnTrack * > &rots, const std::vector< const MeasurementBase * > &measurements)
RoT_Extractor.h
Trk::CompetingRIOsOnTrack::rioOnTrack
virtual const RIO_OnTrack & rioOnTrack(unsigned int) const =0
returns the RIO_OnTrack (also known as ROT) objects depending on the integer.
Trk::MeasurementBaseType::CompetingRIOsOnTrack
@ CompetingRIOsOnTrack
Definition:
MeasurementBase.h:50
Trk::CompetingRIOsOnTrack
Base class for all CompetingRIOsOnTack implementations, extends the common MeasurementBase.
Definition:
CompetingRIOsOnTrack.h:64
Trk::MeasurementBase::type
virtual bool type(MeasurementBaseType::Type type) const =0
Interface method checking the type.
Trk::MeasurementBase
Definition:
MeasurementBase.h:58
RIO_OnTrack.h
Trk::MeasurementBaseType::RIO_OnTrack
@ RIO_OnTrack
Definition:
MeasurementBase.h:49
Trk::CompetingRIOsOnTrack::indexOfMaxAssignProb
unsigned int indexOfMaxAssignProb() const
Index of the ROT with the highest assignment probability.
Definition:
CompetingRIOsOnTrack.cxx:101
Generated on Tue Apr 1 2025 21:17:45 for ATLAS Offline Software by
1.8.18