ATLAS Offline Software
Tracking
TrkUtilityPackages
TrkDriftCircleMath
src
DriftCircle.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrkDriftCircleMath/DCOnTrack.h
"
6
7
MsgStream&
operator<<
(MsgStream&
os
,
const
TrkDriftCircleMath::DriftCircle
& dc) {
8
os
<< dc.
position
() << std::setw(6) <<
" r "
<< dc.
r
() <<
" dr "
<< dc.
dr
() <<
" id "
<< dc.
id
();
9
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EarlyHit
)
10
os
<<
" EarlyHit"
;
11
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::InTime
)
12
os
<<
" InTime"
;
13
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::LateHit
)
14
os
<<
" LateHit"
;
15
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EmptyTube
)
16
os
<<
" EmptyTube"
;
17
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::NotCrossed
)
18
os
<<
" NotCrossed"
;
19
else
20
os
<<
" unknown driftState"
;
21
return
os
;
22
}
23
24
std::ostream&
operator<<
(std::ostream&
os
,
const
TrkDriftCircleMath::DriftCircle
& dc) {
25
os
<< dc.
position
() <<
" r "
<< dc.
r
() <<
" dr "
<< dc.
dr
() <<
" id "
<< dc.
id
();
26
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EarlyHit
)
27
os
<<
" EarlyHit"
;
28
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::InTime
)
29
os
<<
" InTime"
;
30
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::LateHit
)
31
os
<<
" LateHit"
;
32
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EmptyTube
)
33
os
<<
" EmptyTube"
;
34
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::NotCrossed
)
35
os
<<
" NotCrossed"
;
36
else
37
os
<<
" unknown driftState"
;
38
return
os
;
39
}
TrkDriftCircleMath::DriftCircle::LateHit
@ LateHit
drift time compatible with drift spectrum
Definition:
DriftCircle.h:28
operator<<
MsgStream & operator<<(MsgStream &os, const TrkDriftCircleMath::DriftCircle &dc)
Definition:
DriftCircle.cxx:7
TrkDriftCircleMath::DriftCircle::position
const LocVec2D & position() const
access to local position
Definition:
DriftCircle.h:74
TrkDriftCircleMath::DriftCircle::dr
double dr() const
access to error drift radius
Definition:
DriftCircle.h:89
TrkDriftCircleMath::DriftCircle
This class represents a drift time measurement.
Definition:
DriftCircle.h:22
TrkDriftCircleMath::DriftCircle::r
double r() const
access to drift radius
Definition:
DriftCircle.h:86
TrkDriftCircleMath::DriftCircle::NotCrossed
@ NotCrossed
channel without drift measurement
Definition:
DriftCircle.h:30
TrkDriftCircleMath::DriftCircle::driftState
const DriftState & driftState() const
access to drift state
Definition:
DriftCircle.h:95
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
DCOnTrack.h
TrkDriftCircleMath::DriftCircle::EmptyTube
@ EmptyTube
drift time too large to be compatible with drift spectrum
Definition:
DriftCircle.h:29
TrkDriftCircleMath::DriftCircle::id
const MdtId & id() const
access to identifier
Definition:
DriftCircle.h:77
TrkDriftCircleMath::DriftCircle::EarlyHit
@ EarlyHit
Definition:
DriftCircle.h:26
TrkDriftCircleMath::DriftCircle::InTime
@ InTime
drift time too small to be compatible with drift spectrum
Definition:
DriftCircle.h:27
Generated on Sun Dec 22 2024 21:09:31 for ATLAS Offline Software by
1.8.18