ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkUtilityPackages
TrkDriftCircleMath
src
DCOnTrack.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
namespace
TrkDriftCircleMath
{
8
9
std::ostream&
operator<<
(std::ostream& os,
const
TrkDriftCircleMath::DCOnTrack
& dc) {
10
double
pull = dc.
residual
() / dc.
dr
();
11
12
os << dc.
position
() << std::setw(6) <<
" r "
<< dc.
r
() <<
" dr "
<< dc.
dr
() <<
" id "
<< dc.
id
();
13
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EarlyHit
)
14
os <<
" EarlyHit"
;
15
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::InTime
)
16
os <<
" InTime"
;
17
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::LateHit
)
18
os <<
" LateHit"
;
19
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EmptyTube
)
20
os <<
" EmptyTube"
;
21
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::NotCrossed
)
22
os <<
" NotCrossed"
;
23
else
24
os <<
" unknown state"
;
25
os <<
" res "
<< dc.
residual
() <<
" pull "
<< pull;
26
if
(dc.
dr
() != dc.
drPrecise
()) { os <<
" pull(2) "
<< dc.
residual
() / dc.
drPrecise
(); }
27
os <<
" errTrk "
<< dc.
errorTrack
();
28
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::OnTrack
)
29
os <<
" OnTrack "
;
30
else
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::Delta
)
31
os <<
" Delta "
;
32
else
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::OutOfTime
)
33
os <<
" OutOfTime "
;
34
else
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::CloseDC
)
35
os <<
" CloseDC "
;
36
return
os;
37
}
38
39
MsgStream&
operator<<
(MsgStream& os,
const
TrkDriftCircleMath::DCOnTrack
& dc) {
40
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EarlyHit
)
41
os <<
" EarlyHit"
;
42
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::InTime
)
43
os <<
" InTime"
;
44
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::LateHit
)
45
os <<
" LateHit"
;
46
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::EmptyTube
)
47
os <<
" EmptyTube"
;
48
else
if
(dc.
driftState
() ==
TrkDriftCircleMath::DriftCircle::NotCrossed
)
49
os <<
" NotCrossed"
;
50
else
51
os <<
" unknown state"
;
52
os << std::setw(7) <<
" res "
<< dc.
residual
() << std::setw(7) <<
" pull "
<< dc.
residual
() / dc.
dr
();
53
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::OnTrack
)
54
os <<
" OnTrack "
;
55
else
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::Delta
)
56
os <<
" Delta "
;
57
else
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::OutOfTime
)
58
os <<
" OutOfTime "
;
59
else
if
(dc.
state
() ==
TrkDriftCircleMath::DCOnTrack::CloseDC
)
60
os <<
" CloseDC "
;
61
return
os;
62
}
63
64
}
// namespace TrkDriftCircleMath
DCOnTrack.h
TrkDriftCircleMath::DCOnTrack
class representing a drift circle meaurement on segment
Definition
DCOnTrack.h:16
TrkDriftCircleMath::DCOnTrack::state
void state(DCOnTrackState st)
set DCOnTrack state
Definition
DCOnTrack.h:47
TrkDriftCircleMath::DCOnTrack::OutOfTime
@ OutOfTime
delta electron
Definition
DCOnTrack.h:22
TrkDriftCircleMath::DCOnTrack::Delta
@ Delta
used in fit
Definition
DCOnTrack.h:21
TrkDriftCircleMath::DCOnTrack::OnTrack
@ OnTrack
Definition
DCOnTrack.h:20
TrkDriftCircleMath::DCOnTrack::CloseDC
@ CloseDC
too large drift time
Definition
DCOnTrack.h:23
TrkDriftCircleMath::DCOnTrack::residual
void residual(double res)
set residual
Definition
DCOnTrack.h:35
TrkDriftCircleMath::DCOnTrack::errorTrack
void errorTrack(double error)
set track error
Definition
DCOnTrack.h:41
TrkDriftCircleMath::DriftCircle::r
double r() const
access to drift radius
Definition
DriftCircle.h:86
TrkDriftCircleMath::DriftCircle::id
const MdtId & id() const
access to identifier
Definition
DriftCircle.h:77
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::drPrecise
double drPrecise() const
access to precise error drift radius
Definition
DriftCircle.h:92
TrkDriftCircleMath::DriftCircle::driftState
const DriftState & driftState() const
access to drift state
Definition
DriftCircle.h:95
TrkDriftCircleMath::DriftCircle::EarlyHit
@ EarlyHit
Definition
DriftCircle.h:26
TrkDriftCircleMath::DriftCircle::EmptyTube
@ EmptyTube
drift time too large to be compatible with drift spectrum
Definition
DriftCircle.h:29
TrkDriftCircleMath::DriftCircle::LateHit
@ LateHit
drift time compatible with drift spectrum
Definition
DriftCircle.h:28
TrkDriftCircleMath::DriftCircle::InTime
@ InTime
drift time too small to be compatible with drift spectrum
Definition
DriftCircle.h:27
TrkDriftCircleMath::DriftCircle::NotCrossed
@ NotCrossed
channel without drift measurement
Definition
DriftCircle.h:30
TrkDriftCircleMath
Function object to check whether two Segments are sub/super sets or different.
Definition
IMdtSegmentFinder.h:13
TrkDriftCircleMath::operator<<
std::ostream & operator<<(std::ostream &os, const TrkDriftCircleMath::ClusterId &id)
Definition
ClusterId.cxx:9
Generated on
for ATLAS Offline Software by
1.17.0