ATLAS Offline Software
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 
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();
14  os << " EarlyHit";
16  os << " InTime";
18  os << " LateHit";
20  os << " EmptyTube";
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();
29  os << " OnTrack ";
31  os << " Delta ";
33  os << " OutOfTime ";
35  os << " CloseDC ";
36  return os;
37  }
38 
39  MsgStream& operator<<(MsgStream& os, const TrkDriftCircleMath::DCOnTrack& dc) {
41  os << " EarlyHit";
43  os << " InTime";
45  os << " LateHit";
47  os << " EmptyTube";
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();
54  os << " OnTrack ";
56  os << " Delta ";
58  os << " OutOfTime ";
60  os << " CloseDC ";
61  return os;
62  }
63 
64 } // namespace TrkDriftCircleMath
TrkDriftCircleMath::DriftCircle::LateHit
@ LateHit
drift time compatible with drift spectrum
Definition: DriftCircle.h:28
TrkDriftCircleMath::DCOnTrack::Delta
@ Delta
used in fit
Definition: DCOnTrack.h:21
TrkDriftCircleMath::DriftCircle::position
const LocVec2D & position() const
access to local position
Definition: DriftCircle.h:74
TrkDriftCircleMath
Function object to check whether two Segments are sub/super sets or different.
Definition: IMdtSegmentFinder.h:13
TrkDriftCircleMath::DriftCircle::dr
double dr() const
access to error drift radius
Definition: DriftCircle.h:89
TrkDriftCircleMath::DCOnTrack::OutOfTime
@ OutOfTime
delta electron
Definition: DCOnTrack.h:22
TrkDriftCircleMath::DCOnTrack::state
void state(DCOnTrackState st)
set DCOnTrack state
Definition: DCOnTrack.h:47
TrkDriftCircleMath::DriftCircle::r
double r() const
access to drift radius
Definition: DriftCircle.h:86
TrkDriftCircleMath::DCOnTrack::errorTrack
void errorTrack(double error)
set track error
Definition: DCOnTrack.h:41
TrkDriftCircleMath::operator<<
std::ostream & operator<<(std::ostream &os, const TrkDriftCircleMath::ClusterId &id)
Definition: ClusterId.cxx:9
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
python.StandardJetMods.pull
pull
Definition: StandardJetMods.py:282
TrkDriftCircleMath::DCOnTrack::OnTrack
@ OnTrack
Definition: DCOnTrack.h:20
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
DCOnTrack.h
TrkDriftCircleMath::DCOnTrack::residual
void residual(double res)
set residual
Definition: DCOnTrack.h:35
TrkDriftCircleMath::DCOnTrack
class representing a drift circle meaurement on segment
Definition: DCOnTrack.h:16
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::drPrecise
double drPrecise() const
access to precise error drift radius
Definition: DriftCircle.h:92
TrkDriftCircleMath::DriftCircle::EarlyHit
@ EarlyHit
Definition: DriftCircle.h:26
TrkDriftCircleMath::DCOnTrack::CloseDC
@ CloseDC
too large drift time
Definition: DCOnTrack.h:23
TrkDriftCircleMath::DriftCircle::InTime
@ InTime
drift time too small to be compatible with drift spectrum
Definition: DriftCircle.h:27