ATLAS Offline Software
Trigger
TrigAnalysis
TrigInDetAnalysis
TrigInDetAnalysis
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
12
#ifndef TIDA_TRACK_H
13
#define TIDA_TRACK_H
14
15
#include <iostream>
16
#include <iomanip>
17
#include <string>
18
#include <vector>
19
#include <map>
20
21
#include "TObject.h"
22
23
namespace
TIDA
{
24
25
26
class
Track
:
public
TObject {
27
28
public
:
29
30
Track
();
31
Track
(
double
eta
,
double
phi
,
double
z0
,
double
a0
,
double
pT
,
double
chi2
,
double
dof
,
32
double
deta
,
double
dphi
,
double
dz0
,
double
da0
,
double
dpT
,
33
int
bLayerHits
=0,
int
pixelHits
=0,
int
sctHits
=0,
int
siHits
=0,
34
int
strawHits
=0,
int
trHits
=0,
35
unsigned
hitPattern
=0,
36
unsigned
multiPattern
=0,
37
int
author
=0,
38
bool
hasTruth
=
false
,
39
int
barcode
= -1,
40
int
match_barcode
= -1,
41
bool
expectBL
=
false
,
42
unsigned
long
id
=0);
43
44
virtual
~Track
();
45
46
double
eta
()
const
{
return
m_eta
; }
47
double
phi
()
const
{
return
m_phi
; }
48
double
z0
()
const
{
return
m_z0
; }
49
double
a0
()
const
{
return
m_a0
; }
50
double
pT
()
const
{
return
m_pT
; }
51
52
double
chi2
()
const
{
return
m_chi2
;}
53
double
dof
()
const
{
return
m_dof
;}
54
55
double
deta
()
const
{
return
m_deta
;}
56
double
dphi
()
const
{
return
m_dphi
;}
57
double
dz0
()
const
{
return
m_dz0
;}
58
double
da0
()
const
{
return
m_da0
;}
59
double
dpT
()
const
{
return
m_dpT
;}
60
61
int
pixelHits
()
const
{
return
m_pixelHits
%1000; }
62
bool
expectBL
()
const
{
return
m_expectBL
; }
63
int
sctHits
()
const
{
return
m_sctHits
%1000; }
64
int
siHits
()
const
{
return
m_siHits
%1000; }
65
int
bLayerHits
()
const
{
return
m_bLayerHits
%1000; }
66
67
int
strawHits
()
const
{
return
m_strawHits
%1000;}
68
int
trHits
()
const
{
return
m_trHits
%1000;}
69
70
71
int
pixelHoles
()
const
{
return
m_pixelHits
/1000; }
72
int
sctHoles
()
const
{
return
m_sctHits
/1000; }
73
int
siHoles
()
const
{
return
m_siHits
/1000; }
74
int
bLayerHoles
()
const
{
return
m_bLayerHits
/1000; }
75
76
int
strawHoles
()
const
{
return
m_strawHits
/1000;}
77
int
trHoles
()
const
{
return
m_trHits
/1000;}
78
79
80
unsigned
hitPattern
()
const
{
return
m_hitPattern
; }
81
unsigned
multiPattern
()
const
{
return
m_multiPattern
; }
82
83
int
author
()
const
{
return
m_author
; }
84
85
int
barcode
()
const
{
return
m_barcode
;}
86
int
match_barcode
()
const
{
return
m_match_barcode
;}
87
88
unsigned
long
id
()
const
{
return
m_id
; }
89
90
bool
hasTruth
()
const
{
return
m_hasTruth
; }
91
92
void
rotate
();
93
94
public
:
95
96
bool
operator==
(
const
Track
&
t
) {
97
98
if
(
m_author
!=
t
.m_author )
return
false
;
99
100
if
(
m_eta
!=
t
.m_eta )
return
false
;
101
if
(
m_phi
!=
t
.m_phi )
return
false
;
102
if
(
m_z0
!=
t
.m_z0 )
return
false
;
103
if
(
m_a0
!=
t
.m_a0 )
return
false
;
104
if
(
m_pT
!=
t
.m_pT )
return
false
;
105
106
if
(
m_bLayerHits
!=
t
.m_bLayerHits )
return
false
;
107
if
(
m_expectBL
!=
t
.m_expectBL )
return
false
;
108
if
(
m_pixelHits
!=
t
.m_pixelHits )
return
false
;
109
if
(
m_sctHits
!=
t
.m_sctHits )
return
false
;
110
if
(
m_siHits
!=
t
.m_siHits )
return
false
;
111
if
(
m_strawHits
!=
t
.m_strawHits )
return
false
;
112
if
(
m_trHits
!=
t
.m_trHits )
return
false
;
113
if
(
m_hitPattern
!=
t
.m_hitPattern )
return
false
;
114
if
(
m_multiPattern
!=
t
.m_multiPattern )
return
false
;
115
if
(
m_id
!=
t
.m_id )
return
false
;
116
117
return
true
;
118
}
119
120
protected
:
121
122
// Track parameters
123
double
m_eta
,
m_phi
,
m_z0
,
m_a0
,
m_pT
,
m_chi2
;
124
double
m_dof
;
125
double
m_deta
,
m_dphi
,
m_dz0
,
m_da0
,
m_dpT
;
126
131
int
m_bLayerHits
,
m_pixelHits
,
m_sctHits
,
m_siHits
;
132
int
m_strawHits
,
m_trHits
;
133
134
// hit bit pattern
135
unsigned
m_hitPattern
;
136
unsigned
m_multiPattern
;
137
138
//Track author;
139
int
m_author
;
140
141
//
142
bool
m_hasTruth
;
143
int
m_barcode
;
144
int
m_match_barcode
;
145
146
//
147
bool
m_expectBL
;
148
150
unsigned
long
m_id
;
151
152
ClassDef
(
TIDA::Track
,6);
153
154
};
155
156
}
157
158
159
160
inline
std::string
hextobin
(
const
unsigned
&
h
,
int
nbits=32) {
161
std::string
s
;
162
for
(
int
i
=nbits ;
i
-- ; )
s
+= ( (
h
>>
i
&0
x1
) ?
"1"
:
"0"
);
163
return
s
;
164
}
165
166
167
inline
std::ostream&
operator<<
( std::ostream&
s
,
const
TIDA::Track
&
t
) {
168
return
s
<<
"[ "
169
<<
"\teta="
<<
t
.eta()
170
<<
"\tphi="
<<
t
.phi()
171
<<
"\tz0="
<<
t
.z0()
172
<<
"\tpT="
<<
t
.pT()*0.001 <<
" GeV "
173
// << "\tpT=" << t.pT()
174
<<
"\td0="
<<
t
.a0()
175
<<
"\thp=0x"
<< std::hex <<
t
.hitPattern() << std::dec <<
" "
176
// << "\thpb=" << hextobin(t.hitPattern(),20)
177
<<
"\tchi2="
<<
t
.chi2() <<
"/"
<<
t
.dof()
178
<<
"\talgo="
<<
t
.author()
179
<<
"\tbl="
<<
t
.bLayerHits()
180
<<
":"
<< (
t
.expectBL() ?
"t"
:
"f"
)
181
<<
":"
<< (
t
.hasTruth() ?
"t"
:
"f"
)
182
<<
"\tid=0x"
<< std::hex <<
t
.id() << std::dec <<
":0x"
<< std::hex <<
t
.barcode() << std::dec
183
<<
"\t] "
;
184
}
185
186
187
#endif // TIDA_TRACK_H
TIDA::Track::m_trHits
int m_trHits
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:132
plotBeamSpotCompare.x1
x1
Definition:
plotBeamSpotCompare.py:216
TIDA
Test for xAOD.
Definition:
Filter_AcceptAll.h:22
TIDA::Track::dphi
double dphi() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:56
TIDA::Track::m_dphi
double m_dphi
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
TIDA::Track::dof
double dof() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:53
TIDA::Track::rotate
void rotate()
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/src/Track.cxx:64
TIDA::Track::m_multiPattern
unsigned m_multiPattern
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:136
TIDA::Track::pixelHoles
int pixelHoles() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:71
TIDA::Track::m_dz0
double m_dz0
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::bLayerHoles
int bLayerHoles() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:74
TIDA::Track::a0
double a0() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:49
TIDA::Track::operator==
bool operator==(const Track &t)
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:96
hextobin
std::string hextobin(const unsigned &h, int nbits=32)
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:160
TIDA::Track::pT
double pT() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:50
TIDA::Track::strawHoles
int strawHoles() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:76
TIDA::Track::author
int author() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:83
TIDA::Track::sctHoles
int sctHoles() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:72
TIDA::Track::deta
double deta() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:55
TIDA::Track::multiPattern
unsigned multiPattern() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:81
TIDA::Track::m_hitPattern
unsigned m_hitPattern
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:135
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
TIDA::Track::z0
double z0() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:48
TIDA::Track::ClassDef
ClassDef(TIDA::Track, 6)
TIDA::Track::m_pixelHits
int m_pixelHits
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::m_id
unsigned long m_id
identifier
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:150
TIDA::Track::m_match_barcode
int m_match_barcode
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:144
TIDA::Track::Track
Track()
TIDA::Track::trHoles
int trHoles() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:77
TIDA::Track::dz0
double dz0() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:57
TIDA::Track::m_strawHits
int m_strawHits
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:132
TIDA::Track::hasTruth
bool hasTruth() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:90
lumiFormat.i
int i
Definition:
lumiFormat.py:85
TIDA::Track::barcode
int barcode() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:85
TIDA::Track::m_z0
double m_z0
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::m_a0
double m_a0
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::m_bLayerHits
int m_bLayerHits
Track hits and holes - encoded as 1000*nholes + nhits the relevant %1000 or /1000 should be performed...
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::chi2
double chi2() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:52
TIDA::Track::m_hasTruth
bool m_hasTruth
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:142
TIDA::Track::m_barcode
int m_barcode
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:143
TIDA::Track::phi
double phi() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:47
TIDA::Track::trHits
int trHits() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:68
TIDA::Track::m_chi2
double m_chi2
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::~Track
virtual ~Track()
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/src/Track.cxx:61
TIDA::Track::match_barcode
int match_barcode() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:86
TIDA::Track::sctHits
int sctHits() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:63
TIDA::Track::eta
double eta() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:46
TIDA::Track::m_expectBL
bool m_expectBL
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:147
TIDA::Track::siHits
int siHits() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:64
TIDA::Track::m_author
int m_author
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:139
TIDA::Track::id
unsigned long id() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:88
TIDA::Track::m_pT
double m_pT
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::da0
double da0() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:58
TIDA::Track::hitPattern
unsigned hitPattern() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:80
TIDA::Track::m_da0
double m_da0
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::m_deta
double m_deta
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
TIDA::Track::m_phi
double m_phi
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::siHoles
int siHoles() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:73
h
TIDA::Track::dpT
double dpT() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:59
TIDA::Track::m_sctHits
int m_sctHits
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::m_dof
double m_dof
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:124
TIDA::Track
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:26
TIDA::Track::expectBL
bool expectBL() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:62
TIDA::Track::bLayerHits
int bLayerHits() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:65
Track
Definition:
TriggerChamberClusterOnTrackCreator.h:21
TIDA::Track::pixelHits
int pixelHits() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:61
TIDA::Track::m_eta
double m_eta
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:123
TIDA::Track::strawHits
int strawHits() const
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:67
operator<<
std::ostream & operator<<(std::ostream &s, const TIDA::Track &t)
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:167
TIDA::Track::m_siHits
int m_siHits
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:131
TIDA::Track::m_dpT
double m_dpT
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:125
Generated on Sun Dec 22 2024 21:20:14 for ATLAS Offline Software by
1.8.18