ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
MCP::TrackCalibObj Struct Reference

Basic object to cache all relevant information from the track. More...

#include <MuonObj.h>

Collaboration diagram for MCP::TrackCalibObj:

Public Member Functions

 TrackCalibObj ()=default
 
 TrackCalibObj (const xAOD::TrackParticle *track, TrackType t, int charge, DataYear year, bool isData)
 
 TrackCalibObj (const xAOD::TrackParticle *track, TrackType t, int charge, double eta, double phi, DataYear year, bool isData)
 
 TrackCalibObj (TrackType t, int charge, double pt, double eta, double phi, double mass, AmgVector(5) pars, AmgSymMatrix(5) cov, DataYear year, bool isData)
 
 TrackCalibObj (TrackType t, double pt, double eta, double phi, DataYear year, bool isData)
 
const AmgVector (5) pars
 Track perigee parameters. More...
 
const AmgSymMatrix (5) covariance
 Full track covariance matrix. More...
 

Public Attributes

const TrackType type {}
 Flag telling the code whether this is CB/ME/ID. More...
 
const bool is_valid {false}
 Flag telling whether the track particle exists at all. More...
 
const double uncalib_pt {0.}
 Value of the track-pt pre-calibration. More...
 
double calib_pt {0.}
 Smeared track pt. More...
 
const double eta {0.}
 Value of the track-eta. More...
 
const double phi {0.}
 Value of the track-phi. More...
 
const double mass {0.}
 Value of the track-mass. More...
 
const int uncalib_charge {0}
 Value of the track-charge (before calibration) More...
 
int calib_charge {0}
 Value of the track-charge (after calibration) More...
 
const DataYear year {}
 
const bool isData {}
 

Detailed Description

Basic object to cache all relevant information from the track.

Definition at line 21 of file MuonObj.h.

Constructor & Destructor Documentation

◆ TrackCalibObj() [1/5]

MCP::TrackCalibObj::TrackCalibObj ( )
default

◆ TrackCalibObj() [2/5]

MCP::TrackCalibObj::TrackCalibObj ( const xAOD::TrackParticle track,
TrackType  t,
int  charge,
DataYear  year,
bool  isData 
)
inline

Definition at line 23 of file MuonObj.h.

25  : type{t},
26  is_valid{track != nullptr},
27  uncalib_pt{(track != nullptr) ? track->pt() * MeVtoGeV : 0},
29  eta{(track != nullptr) ? track->eta() : FLT_MAX},
30  phi{(track != nullptr) ? track->phi() : FLT_MAX},
31  mass{(track != nullptr) ? track->m() : 0},
34  year{year},
35  isData{isData},
36  pars{(track != nullptr) ? track->definingParameters()
37  : AmgVector(5)::Zero()},
38  covariance{(track != nullptr)
39  ? track->definingParametersCovMatrix()
40  : AmgSymMatrix(5)::Zero()} {}

◆ TrackCalibObj() [3/5]

MCP::TrackCalibObj::TrackCalibObj ( const xAOD::TrackParticle track,
TrackType  t,
int  charge,
double  eta,
double  phi,
DataYear  year,
bool  isData 
)
inline

Definition at line 42 of file MuonObj.h.

44  : type{t},
45  is_valid{track != nullptr},
46  uncalib_pt{(track != nullptr) ? track->pt() * MeVtoGeV : 0},
48  eta{eta},
49  phi{phi},
50  mass{(track != nullptr) ? track->m() : 0},
53  year{year},
54  isData{isData},
55  pars{(track != nullptr) ? track->definingParameters()
56  : AmgVector(5)()},
57  covariance{(track != nullptr)
58  ? track->definingParametersCovMatrix()
59  : AmgSymMatrix(5)()} {}

◆ TrackCalibObj() [4/5]

MCP::TrackCalibObj::TrackCalibObj ( TrackType  t,
int  charge,
double  pt,
double  eta,
double  phi,
double  mass,
AmgVector(5)  pars,
AmgSymMatrix(5)  cov,
DataYear  year,
bool  isData 
)
inline

Definition at line 61 of file MuonObj.h.

61  :
62  type{t},
63  is_valid{true},
66  eta{eta},
67  phi{phi},
68  mass{mass},
71  year{year},
72  isData{isData},
73  pars {pars},
74  covariance{cov}
75  {}

◆ TrackCalibObj() [5/5]

MCP::TrackCalibObj::TrackCalibObj ( TrackType  t,
double  pt,
double  eta,
double  phi,
DataYear  year,
bool  isData 
)
inline

Definition at line 77 of file MuonObj.h.

77  :
78  type{t},
79  is_valid{true},
82  eta{eta},
83  phi{phi},
84  mass{-999},
85  uncalib_charge{-999},
86  calib_charge{-999},
87  year{year},
88  isData{isData},
89  pars (AmgVector(5)::Zero()),
90  covariance (AmgSymMatrix(5)::Zero())
91  {}

Member Function Documentation

◆ AmgSymMatrix()

const MCP::TrackCalibObj::AmgSymMatrix ( )
inline

Full track covariance matrix.

Definition at line 121 of file MuonObj.h.

121 {AmgSymMatrix(5)::Zero()};

◆ AmgVector()

const MCP::TrackCalibObj::AmgVector ( )
inline

Track perigee parameters.

Definition at line 119 of file MuonObj.h.

119 {AmgVector(5)::Zero()};

Member Data Documentation

◆ calib_charge

int MCP::TrackCalibObj::calib_charge {0}

Value of the track-charge (after calibration)

Definition at line 112 of file MuonObj.h.

◆ calib_pt

double MCP::TrackCalibObj::calib_pt {0.}

Smeared track pt.

Definition at line 102 of file MuonObj.h.

◆ eta

const double MCP::TrackCalibObj::eta {0.}

Value of the track-eta.

Definition at line 104 of file MuonObj.h.

◆ is_valid

const bool MCP::TrackCalibObj::is_valid {false}

Flag telling whether the track particle exists at all.

Definition at line 98 of file MuonObj.h.

◆ isData

const bool MCP::TrackCalibObj::isData {}

Definition at line 116 of file MuonObj.h.

◆ mass

const double MCP::TrackCalibObj::mass {0.}

Value of the track-mass.

Definition at line 108 of file MuonObj.h.

◆ phi

const double MCP::TrackCalibObj::phi {0.}

Value of the track-phi.

Definition at line 106 of file MuonObj.h.

◆ type

const TrackType MCP::TrackCalibObj::type {}

Flag telling the code whether this is CB/ME/ID.

Definition at line 96 of file MuonObj.h.

◆ uncalib_charge

const int MCP::TrackCalibObj::uncalib_charge {0}

Value of the track-charge (before calibration)

Definition at line 110 of file MuonObj.h.

◆ uncalib_pt

const double MCP::TrackCalibObj::uncalib_pt {0.}

Value of the track-pt pre-calibration.

Definition at line 100 of file MuonObj.h.

◆ year

const DataYear MCP::TrackCalibObj::year {}

Definition at line 114 of file MuonObj.h.


The documentation for this struct was generated from the following file:
MCP::TrackCalibObj::is_valid
const bool is_valid
Flag telling whether the track particle exists at all.
Definition: MuonObj.h:98
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
MCP::TrackCalibObj::uncalib_pt
const double uncalib_pt
Value of the track-pt pre-calibration.
Definition: MuonObj.h:100
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
test_pyathena.pt
pt
Definition: test_pyathena.py:11
CP::MeVtoGeV
constexpr float MeVtoGeV
Definition: IsolationCloseByCorrectionTool.cxx:33
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
MCP::TrackCalibObj::uncalib_charge
const int uncalib_charge
Value of the track-charge (before calibration)
Definition: MuonObj.h:110
MCP::TrackCalibObj::year
const DataYear year
Definition: MuonObj.h:114
MCP::TrackCalibObj::calib_charge
int calib_charge
Value of the track-charge (after calibration)
Definition: MuonObj.h:112
MCP::TrackCalibObj::eta
const double eta
Value of the track-eta.
Definition: MuonObj.h:104
MCP::TrackCalibObj::type
const TrackType type
Flag telling the code whether this is CB/ME/ID.
Definition: MuonObj.h:96
MCP::TrackCalibObj::phi
const double phi
Value of the track-phi.
Definition: MuonObj.h:106
MCP::TrackCalibObj::AmgVector
const AmgVector(5) pars
Track perigee parameters.
Definition: MuonObj.h:119
charge
double charge(const T &p)
Definition: AtlasPID.h:494
MCP::TrackCalibObj::calib_pt
double calib_pt
Smeared track pt.
Definition: MuonObj.h:102
MCP::TrackCalibObj::mass
const double mass
Value of the track-mass.
Definition: MuonObj.h:108
MCP::TrackCalibObj::isData
const bool isData
Definition: MuonObj.h:116
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
MCP::TrackCalibObj::AmgSymMatrix
const AmgSymMatrix(5) covariance
Full track covariance matrix.
Definition: MuonObj.h:121
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32