ATLAS Offline Software
DCOnTrack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DCMATH_DCONTRACK_H
6 #define DCMATH_DCONTRACK_H
7 
8 #include <ostream>
9 
10 #include "GaudiKernel/MsgStream.h"
12 
13 namespace TrkDriftCircleMath {
14 
16  class DCOnTrack : public DriftCircle {
17  public:
25  };
26 
32  DCOnTrack(const DriftCircle& dc, double res = 0., double err = 1e9) : DriftCircle{dc}, m_residual{res}, m_errorTrack{err} {}
33 
35  void residual(double res) { m_residual = res; }
36 
38  double residual() const { return m_residual; }
39 
41  void errorTrack(double error) { m_errorTrack = error; }
42 
44  double errorTrack() const { return m_errorTrack; }
45 
47  void state(DCOnTrackState st) { m_state = st; }
48 
50  DCOnTrackState state() const { return m_state; }
51 
52  private:
53  double m_residual{0.};
54  double m_errorTrack{1.e9};
55  // cppcheck-suppress duplInheritedMember
56  DCOnTrackState m_state{OnTrack}; // Masks DriftCircle::m_state which is a DriftState
57  };
58 
59  typedef std::vector<DCOnTrack> DCOnTrackVec;
61  typedef DCOnTrackVec::const_iterator DCOnTrackCit;
62 
63  std::ostream& operator<<(std::ostream& os, const TrkDriftCircleMath::DCOnTrack& dc);
64 
65  MsgStream& operator<<(MsgStream& os, const TrkDriftCircleMath::DCOnTrack& dc);
66 
67 } // namespace TrkDriftCircleMath
68 
69 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
TrkDriftCircleMath::DCOnTrackVec
std::vector< DCOnTrack > DCOnTrackVec
Definition: DCOnTrack.h:59
TrkDriftCircleMath::DCOnTrack::Delta
@ Delta
used in fit
Definition: DCOnTrack.h:21
TrkDriftCircleMath::DCOnTrack::errorTrack
double errorTrack() const
access track error
Definition: DCOnTrack.h:44
TrkDriftCircleMath
Function object to check whether two Segments are sub/super sets or different.
Definition: IMdtSegmentFinder.h:13
TrkDriftCircleMath::DCOnTrack::m_errorTrack
double m_errorTrack
Definition: DCOnTrack.h:54
TrkDriftCircleMath::DCOnTrack::residual
double residual() const
access residual
Definition: DCOnTrack.h:38
DriftCircle.h
TrkDriftCircleMath::DCOnTrack::OutOfTime
@ OutOfTime
delta electron
Definition: DCOnTrack.h:22
TrkDriftCircleMath::DriftCircle
This class represents a drift time measurement.
Definition: DriftCircle.h:22
TrkDriftCircleMath::DCOnTrack::state
void state(DCOnTrackState st)
set DCOnTrack state
Definition: DCOnTrack.h:47
TrkDriftCircleMath::DCOnTrack::errorTrack
void errorTrack(double error)
set track error
Definition: DCOnTrack.h:41
TrkDriftCircleMath::DCOnTrackIt
DCOnTrackVec::iterator DCOnTrackIt
Definition: DCOnTrack.h:60
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
TrkDriftCircleMath::operator<<
std::ostream & operator<<(std::ostream &os, const TrkDriftCircleMath::ClusterId &id)
Definition: ClusterId.cxx:9
TrkDriftCircleMath::DCOnTrack::OutsideRoad
@ OutsideRoad
inside road but too far to be on track
Definition: DCOnTrack.h:24
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
TrkDriftCircleMath::DCOnTrack::DCOnTrackState
DCOnTrackState
enum to identify different DC states
Definition: DCOnTrack.h:19
TrkDriftCircleMath::DCOnTrackCit
DCOnTrackVec::const_iterator DCOnTrackCit
Definition: DCOnTrack.h:61
TrkDriftCircleMath::DCOnTrack::state
DCOnTrackState state() const
access DCOnTrack state
Definition: DCOnTrack.h:50
TrkDriftCircleMath::DCOnTrack::OnTrack
@ OnTrack
Definition: DCOnTrack.h:20
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TrkDriftCircleMath::DCOnTrack::residual
void residual(double res)
set residual
Definition: DCOnTrack.h:35
TrkDriftCircleMath::DCOnTrack::m_residual
double m_residual
Definition: DCOnTrack.h:53
TrkDriftCircleMath::DCOnTrack::DCOnTrack
DCOnTrack(const DriftCircle &dc, double res=0., double err=1e9)
minimal constructor
Definition: DCOnTrack.h:32
TrkDriftCircleMath::DCOnTrack::m_state
DCOnTrackState m_state
Definition: DCOnTrack.h:56
TrkDriftCircleMath::DCOnTrack
class representing a drift circle meaurement on segment
Definition: DCOnTrack.h:16
get_generator_info.error
error
Definition: get_generator_info.py:40
error
Definition: IImpactPoint3dEstimator.h:70
TrkDriftCircleMath::DCOnTrack::CloseDC
@ CloseDC
too large drift time
Definition: DCOnTrack.h:23