ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimObjects
src
FPGATrackSimTrackPars.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
12
#include "
FPGATrackSimObjects/FPGATrackSimTrackPars.h
"
13
14
#include <stdexcept>
15
16
const
double
&
FPGATrackSimTrackPars::operator[]
(
unsigned
i
)
const
17
{
18
switch
(
i
)
19
{
20
case
0:
return
phi
;
21
case
1:
return
qOverPt
;
22
case
2:
return
d0
;
23
case
3:
return
z0
;
24
case
4:
return
eta
;
25
default
:
throw
std::out_of_range(
"FPGATrackSimTrackPars[] out of range"
);
26
}
27
}
28
29
30
double
&
FPGATrackSimTrackPars::operator[]
(
unsigned
i
)
31
{
32
switch
(
i
)
33
{
34
case
0:
return
phi
;
35
case
1:
return
qOverPt
;
36
case
2:
return
d0
;
37
case
3:
return
z0
;
38
case
4:
return
eta
;
39
default
:
throw
std::out_of_range(
"FPGATrackSimTrackPars[] out of range"
);
40
}
41
}
42
43
44
const
int
&
FPGATrackSimTrackParsI::operator[]
(
unsigned
i
)
const
45
{
46
switch
(
i
)
47
{
48
case
0:
return
phi
;
49
case
1:
return
qOverPt
;
50
case
2:
return
d0
;
51
case
3:
return
z0
;
52
case
4:
return
eta
;
53
default
:
throw
std::out_of_range(
"FPGATrackSimTrackPars[] out of range"
);
54
}
55
}
56
57
58
int
&
FPGATrackSimTrackParsI::operator[]
(
unsigned
i
)
59
{
60
switch
(
i
)
61
{
62
case
0:
return
phi
;
63
case
1:
return
qOverPt
;
64
case
2:
return
d0
;
65
case
3:
return
z0
;
66
case
4:
return
eta
;
67
default
:
throw
std::out_of_range(
"FPGATrackSimTrackPars[] out of range"
);
68
}
69
}
70
71
72
std::string
FPGATrackSimTrackPars::parName
(
unsigned
i
)
73
{
74
switch
(
i
)
75
{
76
case
0:
return
"phi"
;
77
case
1:
return
"qOverPt"
;
78
case
2:
return
"d0"
;
79
case
3:
return
"z0"
;
80
case
4:
return
"eta"
;
81
default
:
throw
std::out_of_range(
"FPGATrackSimTrackPars::parName out of range"
);
82
}
83
}
84
85
std::ostream&
operator<<
(std::ostream&
os
,
const
FPGATrackSimTrackPars
&
pars
)
86
{
87
os
<<
"phi:"
<<
pars
.phi
88
<<
" q/pt:"
<<
pars
.qOverPt
89
<<
" d0:"
<<
pars
.d0
90
<<
" z0:"
<<
pars
.z0
91
<<
" eta:"
<<
pars
.eta;
92
return
os
;
93
}
94
95
std::ostream&
operator<<
(std::ostream&
os
,
const
FPGATrackSimTrackParsI
&
pars
)
96
{
97
os
<<
"phi:"
<<
pars
.phi
98
<<
" q/pt:"
<<
pars
.qOverPt
99
<<
" d0:"
<<
pars
.d0
100
<<
" z0:"
<<
pars
.z0
101
<<
" eta:"
<<
pars
.eta;
102
return
os
;
103
}
make_hlt_rep.pars
pars
Definition:
make_hlt_rep.py:90
FPGATrackSimTrackPars::phi
double phi
Definition:
FPGATrackSimTrackPars.h:24
FPGATrackSimTrackParsI::eta
int eta
Definition:
FPGATrackSimTrackPars.h:62
FPGATrackSimTrackPars
Definition:
FPGATrackSimTrackPars.h:22
FPGATrackSimTrackPars::qOverPt
double qOverPt
Definition:
FPGATrackSimTrackPars.h:25
FPGATrackSimTrackPars::d0
double d0
Definition:
FPGATrackSimTrackPars.h:26
FPGATrackSimTrackParsI::d0
int d0
Definition:
FPGATrackSimTrackPars.h:60
FPGATrackSimTrackPars::eta
double eta
Definition:
FPGATrackSimTrackPars.h:28
lumiFormat.i
int i
Definition:
lumiFormat.py:85
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
FPGATrackSimTrackPars::operator[]
const double & operator[](unsigned i) const
Definition:
FPGATrackSimTrackPars.cxx:16
FPGATrackSimTrackPars::parName
static std::string parName(unsigned i)
Definition:
FPGATrackSimTrackPars.cxx:72
FPGATrackSimTrackParsI::phi
int phi
Definition:
FPGATrackSimTrackPars.h:58
operator<<
std::ostream & operator<<(std::ostream &os, const FPGATrackSimTrackPars &pars)
Definition:
FPGATrackSimTrackPars.cxx:85
FPGATrackSimTrackPars::z0
double z0
Definition:
FPGATrackSimTrackPars.h:27
FPGATrackSimTrackParsI::z0
int z0
Definition:
FPGATrackSimTrackPars.h:61
FPGATrackSimTrackParsI::operator[]
const int & operator[](unsigned i) const
Definition:
FPGATrackSimTrackPars.cxx:44
FPGATrackSimTrackParsI::qOverPt
int qOverPt
Definition:
FPGATrackSimTrackPars.h:59
FPGATrackSimTrackParsI
Definition:
FPGATrackSimTrackPars.h:56
FPGATrackSimTrackPars.h
Structs that store the 5 track parameters.
Generated on Fri Jan 10 2025 21:10:30 for ATLAS Offline Software by
1.8.18