ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
TrkDriftCircleMath::DCOnTrack Class Reference

class representing a drift circle meaurement on segment More...

#include <DCOnTrack.h>

Inheritance diagram for TrkDriftCircleMath::DCOnTrack:
Collaboration diagram for TrkDriftCircleMath::DCOnTrack:

Public Types

enum  DCOnTrackState {
  OnTrack, Delta, OutOfTime, CloseDC,
  OutsideRoad
}
 enum to identify different DC states More...
 
enum  DriftState {
  EarlyHit = -1, InTime = 0, LateHit = 1, EmptyTube = 2,
  NotCrossed = 3
}
 state of the drift circle More...
 

Public Member Functions

 DCOnTrack (const DriftCircle &dc, double res=0., double err=1e9)
 minimal constructor More...
 
void residual (double res)
 set residual More...
 
double residual () const
 access residual More...
 
void errorTrack (double error)
 set track error More...
 
double errorTrack () const
 access track error More...
 
void state (DCOnTrackState st)
 set DCOnTrack state More...
 
DCOnTrackState state () const
 access DCOnTrack state More...
 
const LocVec2Dposition () const
 access to local position More...
 
const MdtIdid () const
 access to identifier More...
 
double x () const
 direct access to local x position More...
 
double y () const
 direct access to local y position More...
 
double r () const
 access to drift radius More...
 
double dr () const
 access to error drift radius More...
 
double drPrecise () const
 access to precise error drift radius More...
 
const DriftStatedriftState () const
 access to drift state More...
 
const Muon::MdtDriftCircleOnTrackrot () const
 access to the ROT More...
 
unsigned int index () const
 
void updateRadius (double r, double dr)
 set method to allow update from t0 refit More...
 

Private Attributes

double m_residual {0.}
 
double m_errorTrack {1.e9}
 
DCOnTrackState m_state {OnTrack}
 
LocVec2D m_pos {0., 0.}
 
double m_r {0.}
 
double m_dr {0.}
 
double m_drPrecise {0.}
 
MdtId m_id {}
 
const Muon::MdtDriftCircleOnTrackm_rot {nullptr}
 
unsigned int m_idx {0}
 

Detailed Description

class representing a drift circle meaurement on segment

Definition at line 16 of file DCOnTrack.h.

Member Enumeration Documentation

◆ DCOnTrackState

enum to identify different DC states

Enumerator
OnTrack 
Delta 

used in fit

OutOfTime 

delta electron

CloseDC 

too large drift time

OutsideRoad 

inside road but too far to be on track

outside road

Definition at line 19 of file DCOnTrack.h.

19  {
20  OnTrack,
21  Delta,
22  OutOfTime,
23  CloseDC,
25  };

◆ DriftState

state of the drift circle

Enumerator
EarlyHit 
InTime 

drift time too small to be compatible with drift spectrum

LateHit 

drift time compatible with drift spectrum

EmptyTube 

drift time too large to be compatible with drift spectrum

NotCrossed 

channel without drift measurement

Definition at line 25 of file DriftCircle.h.

25  {
26  EarlyHit = -1,
27  InTime = 0,
28  LateHit = 1,
29  EmptyTube = 2,
30  NotCrossed = 3
31  };

Constructor & Destructor Documentation

◆ DCOnTrack()

TrkDriftCircleMath::DCOnTrack::DCOnTrack ( const DriftCircle dc,
double  res = 0.,
double  err = 1e9 
)
inline

minimal constructor

Parameters
dcDriftCircle
resresidual
errerror of track prediction

Definition at line 32 of file DCOnTrack.h.

Member Function Documentation

◆ dr()

double TrkDriftCircleMath::DriftCircle::dr ( ) const
inlineinherited

access to error drift radius

Definition at line 89 of file DriftCircle.h.

89 { return m_dr; }

◆ driftState()

const DriftState& TrkDriftCircleMath::DriftCircle::driftState ( ) const
inlineinherited

access to drift state

Definition at line 95 of file DriftCircle.h.

95 { return m_state; }

◆ drPrecise()

double TrkDriftCircleMath::DriftCircle::drPrecise ( ) const
inlineinherited

access to precise error drift radius

Definition at line 92 of file DriftCircle.h.

92 { return m_drPrecise; }

◆ errorTrack() [1/2]

double TrkDriftCircleMath::DCOnTrack::errorTrack ( ) const
inline

access track error

Definition at line 44 of file DCOnTrack.h.

44 { return m_errorTrack; }

◆ errorTrack() [2/2]

void TrkDriftCircleMath::DCOnTrack::errorTrack ( double  error)
inline

set track error

Definition at line 41 of file DCOnTrack.h.

41 { m_errorTrack = error; }

◆ id()

const MdtId& TrkDriftCircleMath::DriftCircle::id ( ) const
inlineinherited

access to identifier

Definition at line 77 of file DriftCircle.h.

77 { return m_id; }

◆ index()

unsigned int TrkDriftCircleMath::DriftCircle::index ( ) const
inlineinherited

Definition at line 99 of file DriftCircle.h.

99 { return m_idx; }

◆ position()

const LocVec2D& TrkDriftCircleMath::DriftCircle::position ( ) const
inlineinherited

access to local position

Definition at line 74 of file DriftCircle.h.

74 { return m_pos; }

◆ r()

double TrkDriftCircleMath::DriftCircle::r ( ) const
inlineinherited

access to drift radius

Definition at line 86 of file DriftCircle.h.

86 { return m_r; }

◆ residual() [1/2]

double TrkDriftCircleMath::DCOnTrack::residual ( ) const
inline

access residual

Definition at line 38 of file DCOnTrack.h.

38 { return m_residual; }

◆ residual() [2/2]

void TrkDriftCircleMath::DCOnTrack::residual ( double  res)
inline

set residual

Definition at line 35 of file DCOnTrack.h.

35 { m_residual = res; }

◆ rot()

const Muon::MdtDriftCircleOnTrack* TrkDriftCircleMath::DriftCircle::rot ( ) const
inlineinherited

access to the ROT

Definition at line 97 of file DriftCircle.h.

97 { return m_rot; }

◆ state() [1/2]

DCOnTrackState TrkDriftCircleMath::DCOnTrack::state ( ) const
inline

access DCOnTrack state

Definition at line 50 of file DCOnTrack.h.

50 { return m_state; }

◆ state() [2/2]

void TrkDriftCircleMath::DCOnTrack::state ( DCOnTrackState  st)
inline

set DCOnTrack state

Definition at line 47 of file DCOnTrack.h.

47 { m_state = st; }

◆ updateRadius()

void TrkDriftCircleMath::DriftCircle::updateRadius ( double  r,
double  dr 
)
inlineinherited

set method to allow update from t0 refit

Definition at line 101 of file DriftCircle.h.

101  {
102  m_r = r;
103  m_dr = dr;
104  }

◆ x()

double TrkDriftCircleMath::DriftCircle::x ( ) const
inlineinherited

direct access to local x position

Definition at line 80 of file DriftCircle.h.

80 { return m_pos.x(); }

◆ y()

double TrkDriftCircleMath::DriftCircle::y ( ) const
inlineinherited

direct access to local y position

Definition at line 83 of file DriftCircle.h.

83 { return m_pos.y(); }

Member Data Documentation

◆ m_dr

double TrkDriftCircleMath::DriftCircle::m_dr {0.}
privateinherited

Definition at line 109 of file DriftCircle.h.

◆ m_drPrecise

double TrkDriftCircleMath::DriftCircle::m_drPrecise {0.}
privateinherited

Definition at line 110 of file DriftCircle.h.

◆ m_errorTrack

double TrkDriftCircleMath::DCOnTrack::m_errorTrack {1.e9}
private

Definition at line 54 of file DCOnTrack.h.

◆ m_id

MdtId TrkDriftCircleMath::DriftCircle::m_id {}
privateinherited

Definition at line 112 of file DriftCircle.h.

◆ m_idx

unsigned int TrkDriftCircleMath::DriftCircle::m_idx {0}
privateinherited

Definition at line 114 of file DriftCircle.h.

◆ m_pos

LocVec2D TrkDriftCircleMath::DriftCircle::m_pos {0., 0.}
privateinherited

Definition at line 107 of file DriftCircle.h.

◆ m_r

double TrkDriftCircleMath::DriftCircle::m_r {0.}
privateinherited

Definition at line 108 of file DriftCircle.h.

◆ m_residual

double TrkDriftCircleMath::DCOnTrack::m_residual {0.}
private

Definition at line 53 of file DCOnTrack.h.

◆ m_rot

const Muon::MdtDriftCircleOnTrack* TrkDriftCircleMath::DriftCircle::m_rot {nullptr}
privateinherited

Definition at line 113 of file DriftCircle.h.

◆ m_state

DCOnTrackState TrkDriftCircleMath::DCOnTrack::m_state {OnTrack}
private

Definition at line 56 of file DCOnTrack.h.


The documentation for this class was generated from the following file:
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::m_rot
const Muon::MdtDriftCircleOnTrack * m_rot
Definition: DriftCircle.h:113
TrkDriftCircleMath::DriftCircle::dr
double dr() const
access to error drift radius
Definition: DriftCircle.h:89
TrkDriftCircleMath::DCOnTrack::m_errorTrack
double m_errorTrack
Definition: DCOnTrack.h:54
TrkDriftCircleMath::LocVec2D::x
double x() const
Returns the x coordinate of the vector.
Definition: LocVec2D.h:27
TrkDriftCircleMath::DCOnTrack::OutOfTime
@ OutOfTime
delta electron
Definition: DCOnTrack.h:22
TrkDriftCircleMath::DriftCircle::r
double r() const
access to drift radius
Definition: DriftCircle.h:86
TrkDriftCircleMath::DriftCircle::m_r
double m_r
Definition: DriftCircle.h:108
TrkDriftCircleMath::DriftCircle::m_drPrecise
double m_drPrecise
Definition: DriftCircle.h:110
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
TrkDriftCircleMath::DriftCircle::NotCrossed
@ NotCrossed
channel without drift measurement
Definition: DriftCircle.h:30
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::DriftCircle::m_pos
LocVec2D m_pos
Definition: DriftCircle.h:107
TrkDriftCircleMath::LocVec2D::y
double y() const
Returns the y coordinate of the vector.
Definition: LocVec2D.h:29
TrkDriftCircleMath::DCOnTrack::OnTrack
@ OnTrack
Definition: DCOnTrack.h:20
TrkDriftCircleMath::DCOnTrack::m_residual
double m_residual
Definition: DCOnTrack.h:53
TrkDriftCircleMath::DriftCircle::m_idx
unsigned int m_idx
Definition: DriftCircle.h:114
TrkDriftCircleMath::DriftCircle::m_state
DriftState m_state
Definition: DriftCircle.h:111
TrkDriftCircleMath::DriftCircle::m_id
MdtId m_id
Definition: DriftCircle.h:112
TrkDriftCircleMath::DCOnTrack::m_state
DCOnTrackState m_state
Definition: DCOnTrack.h:56
TrkDriftCircleMath::DriftCircle::EmptyTube
@ EmptyTube
drift time too large to be compatible with drift spectrum
Definition: DriftCircle.h:29
TrkDriftCircleMath::DriftCircle::DriftCircle
DriftCircle(const LocVec2D &pos, double r, double dr, DriftState state, MdtId id, const Muon::MdtDriftCircleOnTrack *rot, unsigned int index=0)
full constructor
Definition: DriftCircle.h:42
TrkDriftCircleMath::DriftCircle::m_dr
double m_dr
Definition: DriftCircle.h:109
get_generator_info.error
error
Definition: get_generator_info.py:40
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