ATLAS Offline Software
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
PESA::T2Track Class Reference

#include <T2Track.h>

Collaboration diagram for PESA::T2Track:

Public Member Functions

 T2Track (const Trk::Track &track)
 
 T2Track (const T2Track &track)=default
 
double Pt () const
 
double Eta () const
 
double Phi () const
 
double Z0 () const
 
double D0 () const
 
double Z0err () const
 
double D0err () const
 
double NDF () const
 
double Qual () const
 
double Chi2Prob () const
 
int SiHits () const
 
int PIXHits () const
 
int SCTHits () const
 
int TRTHits () const
 

Static Private Member Functions

static double trackChi2Prob (int ndf, double chi2)
 

Private Attributes

double m_Pt
 
double m_Eta
 
double m_Phi
 
double m_Z0
 
double m_D0
 
double m_Z0err
 
double m_D0err
 
double m_NDF
 
double m_Qual
 
double m_Chi2Prob
 
int m_SiHits
 
int m_PIXHits
 
int m_SCTHits
 
int m_TRTHits
 

Detailed Description

Definition at line 43 of file T2Track.h.

Constructor & Destructor Documentation

◆ T2Track() [1/2]

PESA::T2Track::T2Track ( const Trk::Track track)
inline

Definition at line 59 of file T2Track.h.

63  {
64  nPix = track.trackSummary()->get(Trk::numberOfPixelHits);
65  nSct = track.trackSummary()->get(Trk::numberOfSCTHits);
66  } else {
67  for(auto tSOS = track.trackStateOnSurfaces()->begin();
68  tSOS!=track.trackStateOnSurfaces()->end(); ++tSOS) {
69  if ((*tSOS)->type(Trk::TrackStateOnSurface::Perigee) == false) {
70  const Trk::FitQualityOnSurface& fq = (*tSOS)->fitQualityOnSurface();
71  if(!fq) continue;
72  int nd = fq.numberDoF();
73  if(nd==2) nPix++;
74  if(nd==1) nSct++;
75  }
76  }
77  }
78  m_PIXHits = nPix;
79  m_SCTHits = nSct/2;
81  m_NDF = (m_PIXHits + m_SCTHits)*2 - 5;
82  m_TRTHits = 0; //for now: FTF tracks have no TRT extension in any case
83  }
84  m_Chi2Prob = -1;
85  const double chi2 = m_Qual * m_NDF;
86  if ( m_NDF > 0 && chi2 > 0. && ! std::isinf( chi2 ) )
87  {
88  m_Chi2Prob = TMath::Prob(chi2,m_NDF);
89  }
90  }
91 
92  T2Track(const T2Track& track) = default;
93 
94 
95  // Accessors
96  double Pt () const { return m_Pt ; }
97  double Eta () const { return m_Eta ; }
98  double Phi () const { return m_Phi ; }
99  double Z0 () const { return m_Z0 ; }
100  double D0 () const { return m_D0 ; }
101  double Z0err () const { return m_Z0err ; }
102  double D0err () const { return m_D0err ; }
103  double NDF () const { return m_NDF ; }
104  double Qual () const { return m_Qual ; }
105  double Chi2Prob() const { return m_Chi2Prob; }
106  int SiHits () const { return m_SiHits ; }
107  int PIXHits () const { return m_PIXHits ; }
108  int SCTHits () const { return m_SCTHits ; }
109  int TRTHits () const { return m_TRTHits ; }
110 
111  private:
112 

◆ T2Track() [2/2]

PESA::T2Track::T2Track ( const T2Track track)
default

Member Function Documentation

◆ Chi2Prob()

double PESA::T2Track::Chi2Prob ( ) const
inline

Definition at line 127 of file T2Track.h.

◆ D0()

double PESA::T2Track::D0 ( ) const
inline

Definition at line 122 of file T2Track.h.

◆ D0err()

double PESA::T2Track::D0err ( ) const
inline

Definition at line 124 of file T2Track.h.

◆ Eta()

double PESA::T2Track::Eta ( ) const
inline

Definition at line 119 of file T2Track.h.

◆ NDF()

double PESA::T2Track::NDF ( ) const
inline

Definition at line 125 of file T2Track.h.

◆ Phi()

double PESA::T2Track::Phi ( ) const
inline

Definition at line 120 of file T2Track.h.

◆ PIXHits()

int PESA::T2Track::PIXHits ( ) const
inline

Definition at line 129 of file T2Track.h.

◆ Pt()

double PESA::T2Track::Pt ( ) const
inline

Definition at line 118 of file T2Track.h.

◆ Qual()

double PESA::T2Track::Qual ( ) const
inline

Definition at line 126 of file T2Track.h.

◆ SCTHits()

int PESA::T2Track::SCTHits ( ) const
inline

Definition at line 130 of file T2Track.h.

◆ SiHits()

int PESA::T2Track::SiHits ( ) const
inline

Definition at line 128 of file T2Track.h.

◆ trackChi2Prob()

static double PESA::T2Track::trackChi2Prob ( int  ndf,
double  chi2 
)
staticprivate

◆ TRTHits()

int PESA::T2Track::TRTHits ( ) const
inline

Definition at line 131 of file T2Track.h.

◆ Z0()

double PESA::T2Track::Z0 ( ) const
inline

Definition at line 121 of file T2Track.h.

◆ Z0err()

double PESA::T2Track::Z0err ( ) const
inline

Definition at line 123 of file T2Track.h.

Member Data Documentation

◆ m_Chi2Prob

double PESA::T2Track::m_Chi2Prob
private

Definition at line 147 of file T2Track.h.

◆ m_D0

double PESA::T2Track::m_D0
private

Definition at line 142 of file T2Track.h.

◆ m_D0err

double PESA::T2Track::m_D0err
private

Definition at line 144 of file T2Track.h.

◆ m_Eta

double PESA::T2Track::m_Eta
private

Definition at line 139 of file T2Track.h.

◆ m_NDF

double PESA::T2Track::m_NDF
private

Definition at line 145 of file T2Track.h.

◆ m_Phi

double PESA::T2Track::m_Phi
private

Definition at line 140 of file T2Track.h.

◆ m_PIXHits

int PESA::T2Track::m_PIXHits
private

Definition at line 149 of file T2Track.h.

◆ m_Pt

double PESA::T2Track::m_Pt
private

Definition at line 138 of file T2Track.h.

◆ m_Qual

double PESA::T2Track::m_Qual
private

Definition at line 146 of file T2Track.h.

◆ m_SCTHits

int PESA::T2Track::m_SCTHits
private

Definition at line 150 of file T2Track.h.

◆ m_SiHits

int PESA::T2Track::m_SiHits
private

Definition at line 148 of file T2Track.h.

◆ m_TRTHits

int PESA::T2Track::m_TRTHits
private

Definition at line 151 of file T2Track.h.

◆ m_Z0

double PESA::T2Track::m_Z0
private

Definition at line 141 of file T2Track.h.

◆ m_Z0err

double PESA::T2Track::m_Z0err
private

Definition at line 143 of file T2Track.h.


The documentation for this class was generated from the following file:
Trk::numberOfPixelHits
@ numberOfPixelHits
number of pixel layers on track with absence of hits
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:57
PESA::T2Track::m_Chi2Prob
double m_Chi2Prob
Definition: T2Track.h:147
Trk::TrackStateOnSurface::Perigee
@ Perigee
This represents a perigee, and so will contain a Perigee object only.
Definition: TrackStateOnSurface.h:117
PESA::T2Track::TRTHits
int TRTHits() const
Definition: T2Track.h:131
PESA::T2Track::m_Qual
double m_Qual
Definition: T2Track.h:146
PESA::T2Track::SiHits
int SiHits() const
Definition: T2Track.h:128
PESA::T2Track::m_Phi
double m_Phi
Definition: T2Track.h:140
PESA::T2Track::SCTHits
int SCTHits() const
Definition: T2Track.h:130
PESA::T2Track::m_Z0
double m_Z0
Definition: T2Track.h:141
PESA::T2Track::D0err
double D0err() const
Definition: T2Track.h:124
PESA::T2Track::m_SCTHits
int m_SCTHits
Definition: T2Track.h:150
PESA::T2Track::PIXHits
int PIXHits() const
Definition: T2Track.h:129
PESA::T2Track::m_Eta
double m_Eta
Definition: T2Track.h:139
PESA::T2Track::Eta
double Eta() const
Definition: T2Track.h:119
Trk::FitQualityOnSurface
Definition: FitQualityOnSurface.h:19
PESA::T2Track::m_Z0err
double m_Z0err
Definition: T2Track.h:143
PESA::T2Track::m_Pt
double m_Pt
Definition: T2Track.h:138
PESA::T2Track::NDF
double NDF() const
Definition: T2Track.h:125
Trk::numberOfSCTHits
@ numberOfSCTHits
number of SCT holes
Definition: Tracking/TrkEvent/TrkTrackSummary/TrkTrackSummary/TrackSummary.h:71
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
PESA::T2Track::m_PIXHits
int m_PIXHits
Definition: T2Track.h:149
PESA::T2Track::D0
double D0() const
Definition: T2Track.h:122
PESA::T2Track::Z0
double Z0() const
Definition: T2Track.h:121
PESA::T2Track::m_SiHits
int m_SiHits
Definition: T2Track.h:148
Trk::FitQualityOnSurface::numberDoF
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition: FitQuality.h:60
PESA::T2Track::m_NDF
double m_NDF
Definition: T2Track.h:145
PESA::T2Track::m_D0err
double m_D0err
Definition: T2Track.h:144
PESA::T2Track::Qual
double Qual() const
Definition: T2Track.h:126
PESA::T2Track::Phi
double Phi() const
Definition: T2Track.h:120
PESA::T2Track::m_D0
double m_D0
Definition: T2Track.h:142
PESA::T2Track::Pt
double Pt() const
Definition: T2Track.h:118
PESA::T2Track::m_TRTHits
int m_TRTHits
Definition: T2Track.h:151
PESA::T2Track::Z0err
double Z0err() const
Definition: T2Track.h:123
PESA::T2Track::T2Track
T2Track(const Trk::Track &track)
Definition: T2Track.h:59
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
PESA::T2Track::Chi2Prob
double Chi2Prob() const
Definition: T2Track.h:127