ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
Trk::VKTrack Class Reference

#include <TrkVKalVrtCoreBase.h>

Collaboration diagram for Trk::VKTrack:

Public Member Functions

 VKTrack (long int, const double[], const double[], VKVertex *, double)
 
 ~VKTrack ()=default
 
double getMass () const
 
void setMass (double M)
 
double a0 () const
 
double z () const
 
double theta () const
 
double phi () const
 
double invR () const
 
double r_a0 () const
 
double r_z () const
 
double r_theta () const
 
double r_phi () const
 
double r_invR () const
 
void setCurrent (const double[], const double[])
 
void setReference (const double[], const double[])
 
void restoreCurrentWgt ()
 

Public Attributes

long int Id
 
int Charge
 
double fitP [3] {}
 
double Chi2
 
double cnstP [3] {}
 
double iniP [3] {}
 
double Perig [5] {}
 
double WgtM [15] {}
 
double WgtM_save [15] {}
 
double rmnd [5] {}
 
double e [5] {}
 
double v [5][5] {}
 
double refPerig [5] {}
 
double refCovar [15] {}
 

Private Attributes

VKVertexm_originVertex
 
double m_mass
 

Friends

std::ostream & operator<< (std::ostream &out, const VKTrack &track)
 

Detailed Description

Definition at line 63 of file TrkVKalVrtCoreBase.h.

Constructor & Destructor Documentation

◆ VKTrack()

Trk::VKTrack::VKTrack ( long int  iniId,
const double  Perigee[],
const double  Covariance[],
VKVertex vk,
double  m 
)

Definition at line 47 of file TrkVKalVrtCoreBase.cxx.

52  : Id(iniId)
53  , Charge(1)
54  , Chi2(0)
55  , m_mass(m)
56  {
57  if (Perigee[4] < 0)
58  Charge = -1;
59  for (int i = 0; i < 3; i++) {
60  fitP[i] = 0;
61  cnstP[i] = 0.;
62  iniP[i] = 0.;}
65  for(int i=0; i<5; i++) { rmnd[i]=0;}
67  m_originVertex = vk;
68  }

◆ ~VKTrack()

Trk::VKTrack::~VKTrack ( )
default

Member Function Documentation

◆ a0()

double Trk::VKTrack::a0 ( ) const
inline

Definition at line 102 of file TrkVKalVrtCoreBase.h.

102 { return Perig[0];}

◆ getMass()

double Trk::VKTrack::getMass ( ) const
inline

Definition at line 100 of file TrkVKalVrtCoreBase.h.

100 {return m_mass;}

◆ invR()

double Trk::VKTrack::invR ( ) const
inline

Definition at line 106 of file TrkVKalVrtCoreBase.h.

106 { return Perig[4];}

◆ phi()

double Trk::VKTrack::phi ( ) const
inline

Definition at line 105 of file TrkVKalVrtCoreBase.h.

105 { return Perig[3];}

◆ r_a0()

double Trk::VKTrack::r_a0 ( ) const
inline

Definition at line 107 of file TrkVKalVrtCoreBase.h.

107 { return refPerig[0];}

◆ r_invR()

double Trk::VKTrack::r_invR ( ) const
inline

Definition at line 111 of file TrkVKalVrtCoreBase.h.

111 { return refPerig[4];}

◆ r_phi()

double Trk::VKTrack::r_phi ( ) const
inline

Definition at line 110 of file TrkVKalVrtCoreBase.h.

110 { return refPerig[3];}

◆ r_theta()

double Trk::VKTrack::r_theta ( ) const
inline

Definition at line 109 of file TrkVKalVrtCoreBase.h.

109 { return refPerig[2];}

◆ r_z()

double Trk::VKTrack::r_z ( ) const
inline

Definition at line 108 of file TrkVKalVrtCoreBase.h.

108 { return refPerig[1];}

◆ restoreCurrentWgt()

void Trk::VKTrack::restoreCurrentWgt ( )

Definition at line 81 of file TrkVKalVrtCoreBase.cxx.

82  {
84  }

◆ setCurrent()

void Trk::VKTrack::setCurrent ( const double  Perigee[],
const double  Weight[] 
)

Definition at line 70 of file TrkVKalVrtCoreBase.cxx.

71  {
73  std::copy(Weight, Weight+15, WgtM);
74  std::copy(Weight, Weight+15, WgtM_save);
75  }

◆ setMass()

void Trk::VKTrack::setMass ( double  M)
inline

Definition at line 101 of file TrkVKalVrtCoreBase.h.

101 { m_mass=M;}

◆ setReference()

void Trk::VKTrack::setReference ( const double  Perigee[],
const double  Covariance[] 
)

Definition at line 76 of file TrkVKalVrtCoreBase.cxx.

77  {
80  }

◆ theta()

double Trk::VKTrack::theta ( ) const
inline

Definition at line 104 of file TrkVKalVrtCoreBase.h.

104 { return Perig[2];}

◆ z()

double Trk::VKTrack::z ( ) const
inline

Definition at line 103 of file TrkVKalVrtCoreBase.h.

103 { return Perig[1];}

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const VKTrack track 
)
friend

Definition at line 94 of file TrkVKalVrtCoreBase.cxx.

95  {
96  //out.setf( std::ios::defaultfloat ); out.precision(5); out << std::endl;
97  out.precision(5); out << std::defaultfloat;
98  out << " Track par: Iteration <-> Ref" << std::endl;
99  out << " * a_0 : "<< track.a0() <<" "<< track.r_a0() << std::endl;
100  out << " * z_0 : "<< track.z() <<" "<< track.r_z() << std::endl;
101  out << " * theta : "<< track.theta()<<" "<< track.r_theta()<< std::endl;
102  out << " * phi : "<< track.phi() <<" "<< track.r_phi() << std::endl;
103  out << " * q/R : "<< track.invR() <<" "<< track.r_invR() << std::endl;
104  out << " * Charge: "<< track.Charge <<" Mass: "<<track.m_mass<< std::endl;
105  out << "-> with ref ErrorMatrix: " << std::endl;out.precision(5);
106  out << track.refCovar[0] <<std::endl;
107  out << track.refCovar[1] <<", "<<track.refCovar[2] <<std::endl;
108  out << track.refCovar[3] <<", "<<track.refCovar[4] <<", "<<track.refCovar[5] <<std::endl;
109  out << track.refCovar[6] <<", "<<track.refCovar[7] <<", "<<track.refCovar[8] <<", "
110  << track.refCovar[9]<<std::endl;
111  out << track.refCovar[10]<<", "<<track.refCovar[11]<<", "<<track.refCovar[12]<<", "
112  << track.refCovar[13]<<", "<<track.refCovar[14]<<std::endl;
113  out << "-> and iteration WeightMatrix: " << std::endl;
114  out << track.WgtM[0] <<std::endl;
115  out << track.WgtM[1] <<", "<<track.WgtM[2] <<std::endl;
116  out << track.WgtM[3] <<", "<<track.WgtM[4] <<", "<<track.WgtM[5] <<std::endl;
117  out << track.WgtM[6] <<", "<<track.WgtM[7] <<", "<<track.WgtM[8] <<", "
118  << track.WgtM[9]<<std::endl;
119  out << track.WgtM[10]<<", "<<track.WgtM[11]<<", "<<track.WgtM[12]<<", "
120  << track.WgtM[13]<<", "<<track.WgtM[14]<<std::endl;
121  return out;
122  }

Member Data Documentation

◆ Charge

int Trk::VKTrack::Charge

Definition at line 73 of file TrkVKalVrtCoreBase.h.

◆ Chi2

double Trk::VKTrack::Chi2

Definition at line 77 of file TrkVKalVrtCoreBase.h.

◆ cnstP

double Trk::VKTrack::cnstP[3] {}

Definition at line 80 of file TrkVKalVrtCoreBase.h.

◆ e

double Trk::VKTrack::e[5] {}

Definition at line 92 of file TrkVKalVrtCoreBase.h.

◆ fitP

double Trk::VKTrack::fitP[3] {}

Definition at line 76 of file TrkVKalVrtCoreBase.h.

◆ Id

long int Trk::VKTrack::Id

Definition at line 72 of file TrkVKalVrtCoreBase.h.

◆ iniP

double Trk::VKTrack::iniP[3] {}

Definition at line 83 of file TrkVKalVrtCoreBase.h.

◆ m_mass

double Trk::VKTrack::m_mass
private

Definition at line 121 of file TrkVKalVrtCoreBase.h.

◆ m_originVertex

VKVertex* Trk::VKTrack::m_originVertex
private

Definition at line 120 of file TrkVKalVrtCoreBase.h.

◆ Perig

double Trk::VKTrack::Perig[5] {}

Definition at line 86 of file TrkVKalVrtCoreBase.h.

◆ refCovar

double Trk::VKTrack::refCovar[15] {}

Definition at line 97 of file TrkVKalVrtCoreBase.h.

◆ refPerig

double Trk::VKTrack::refPerig[5] {}

Definition at line 96 of file TrkVKalVrtCoreBase.h.

◆ rmnd

double Trk::VKTrack::rmnd[5] {}

Definition at line 91 of file TrkVKalVrtCoreBase.h.

◆ v

double Trk::VKTrack::v[5][5] {}

Definition at line 93 of file TrkVKalVrtCoreBase.h.

◆ WgtM

double Trk::VKTrack::WgtM[15] {}

Definition at line 87 of file TrkVKalVrtCoreBase.h.

◆ WgtM_save

double Trk::VKTrack::WgtM_save[15] {}

Definition at line 88 of file TrkVKalVrtCoreBase.h.


The documentation for this class was generated from the following files:
Trk::VKTrack::cnstP
double cnstP[3]
Definition: TrkVKalVrtCoreBase.h:80
Trk::VKTrack::WgtM
double WgtM[15]
Definition: TrkVKalVrtCoreBase.h:87
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
Trk::VKTrack::Chi2
double Chi2
Definition: TrkVKalVrtCoreBase.h:77
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
Trk::VKTrack::Id
long int Id
Definition: TrkVKalVrtCoreBase.h:72
Trk::VKTrack::Charge
int Charge
Definition: TrkVKalVrtCoreBase.h:73
Trk::VKTrack::refPerig
double refPerig[5]
Definition: TrkVKalVrtCoreBase.h:96
Trk::VKTrack::Perig
double Perig[5]
Definition: TrkVKalVrtCoreBase.h:86
Trk::Perigee
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
Definition: Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:33
Trk::VKTrack::fitP
double fitP[3]
Definition: TrkVKalVrtCoreBase.h:76
lumiFormat.i
int i
Definition: lumiFormat.py:85
Trk::VKTrack::rmnd
double rmnd[5]
Definition: TrkVKalVrtCoreBase.h:91
Trk::VKTrack::m_mass
double m_mass
Definition: TrkVKalVrtCoreBase.h:121
Trk::VKTrack::m_originVertex
VKVertex * m_originVertex
Definition: TrkVKalVrtCoreBase.h:120
Trk::VKTrack::WgtM_save
double WgtM_save[15]
Definition: TrkVKalVrtCoreBase.h:88
MuonR4::SegmentFit::Covariance
AmgSymMatrix(toInt(ParamDefs::nPars)) Covariance
Definition: MuonHoughDefs.h:49
Trk::VKTrack::refCovar
double refCovar[15]
Definition: TrkVKalVrtCoreBase.h:97
Trk::VKTrack::iniP
double iniP[3]
Definition: TrkVKalVrtCoreBase.h:83
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
calibdata.copy
bool copy
Definition: calibdata.py:27