ATLAS Offline Software
Loading...
Searching...
No Matches
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 MuonCalibToolAccessors &acc, columnar::OptObjectId< columnar::MuonTrackDef > track, TrackType t, int charge, DataYear year, bool isData)
 TrackCalibObj (const MuonCalibToolAccessors &acc, columnar::OptObjectId< columnar::MuonTrackDef > 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.
const AmgSymMatrix (5) covariance
 Full track covariance matrix.

Public Attributes

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

Detailed Description

Basic object to cache all relevant information from the track.

Definition at line 74 of file MuonObj.h.

Constructor & Destructor Documentation

◆ TrackCalibObj() [1/5]

MCP::TrackCalibObj::TrackCalibObj ( )
default

◆ TrackCalibObj() [2/5]

MCP::TrackCalibObj::TrackCalibObj ( const MuonCalibToolAccessors & acc,
columnar::OptObjectId< columnar::MuonTrackDef > track,
TrackType t,
int charge,
DataYear year,
bool isData )
inline

Definition at line 76 of file MuonObj.h.

78 : type{t},
79 is_valid{track.has_value()},
80 uncalib_pt{(track.has_value()) ? acc.trkMomentumAcc.pt(track.value(),ParticleConstants::muonMassInMeV) * MeVtoGeV : 0},
82 eta{(track.has_value()) ? acc.trkMomentumAcc.eta(track.value(),ParticleConstants::muonMassInMeV) : FLT_MAX},
83 phi{(track.has_value()) ? acc.trkMomentumAcc.phi(track.value(),ParticleConstants::muonMassInMeV) : FLT_MAX},
84 mass{(track.has_value()) ? ParticleConstants::muonMassInMeV : 0},
87 year{year},
89 pars{(track.has_value()) ? acc.trkDefiningParametersAcc(track.value())
90 : AmgVector(5)::Zero()},
91 covariance{(track.has_value())
92 ? acc.trkDefiningParametersCovAcc(track.value())
93 : AmgSymMatrix(5)::Zero()} {}
double charge(const T &p)
Definition AtlasPID.h:997
#define AmgVector(rows)
constexpr float MeVtoGeV
constexpr double muonMassInMeV
the mass of the muon (in MeV)
const bool is_valid
Flag telling whether the track particle exists at all.
Definition MuonObj.h:151
const int uncalib_charge
Value of the track-charge (before calibration)
Definition MuonObj.h:163
int calib_charge
Value of the track-charge (after calibration)
Definition MuonObj.h:165
const double eta
Value of the track-eta.
Definition MuonObj.h:157
const DataYear year
Definition MuonObj.h:167
const double phi
Value of the track-phi.
Definition MuonObj.h:159
const double mass
Value of the track-mass.
Definition MuonObj.h:161
const double uncalib_pt
Value of the track-pt pre-calibration.
Definition MuonObj.h:153
const bool isData
Definition MuonObj.h:169
double calib_pt
Smeared track pt.
Definition MuonObj.h:155
const TrackType type
Flag telling the code whether this is CB/ME/ID.
Definition MuonObj.h:149
const AmgSymMatrix(5) covariance
Full track covariance matrix.
Definition MuonObj.h:174

◆ TrackCalibObj() [3/5]

MCP::TrackCalibObj::TrackCalibObj ( const MuonCalibToolAccessors & acc,
columnar::OptObjectId< columnar::MuonTrackDef > track,
TrackType t,
int charge,
double eta,
double phi,
DataYear year,
bool isData )
inline

Definition at line 95 of file MuonObj.h.

97 : type{t},
98 is_valid{track.has_value()},
99 uncalib_pt{(track.has_value()) ? acc.trkMomentumAcc.pt(track.value(),ParticleConstants::muonMassInMeV) * MeVtoGeV : 0},
101 eta{eta},
102 phi{phi},
103 mass{(track.has_value()) ? ParticleConstants::muonMassInMeV : 0},
106 year{year},
107 isData{isData},
108 pars{(track.has_value()) ? acc.trkDefiningParametersAcc(track.value())
109 : AmgVector(5)()},
110 covariance{(track.has_value())
111 ? acc.trkDefiningParametersCovAcc(track.value())
112 : AmgSymMatrix(5)()} {}
#define AmgSymMatrix(dim)

◆ 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 114 of file MuonObj.h.

114 :
115 type{t},
116 is_valid{true},
119 eta{eta},
120 phi{phi},
121 mass{mass},
124 year{year},
125 isData{isData},
126 pars {pars},
127 covariance{cov}
128 {}

◆ TrackCalibObj() [5/5]

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

Definition at line 130 of file MuonObj.h.

130 :
131 type{t},
132 is_valid{true},
135 eta{eta},
136 phi{phi},
137 mass{-999},
138 uncalib_charge{-999},
139 calib_charge{-999},
140 year{year},
141 isData{isData},
142 pars (AmgVector(5)::Zero()),
143 covariance (AmgSymMatrix(5)::Zero())
144 {}

Member Function Documentation

◆ AmgSymMatrix()

const MCP::TrackCalibObj::AmgSymMatrix ( 5 )
inline

Full track covariance matrix.

Definition at line 174 of file MuonObj.h.

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

◆ AmgVector()

const MCP::TrackCalibObj::AmgVector ( 5 )
inline

Track perigee parameters.

Definition at line 172 of file MuonObj.h.

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

Member Data Documentation

◆ calib_charge

int MCP::TrackCalibObj::calib_charge {0}

Value of the track-charge (after calibration)

Definition at line 165 of file MuonObj.h.

165{0};

◆ calib_pt

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

Smeared track pt.

Definition at line 155 of file MuonObj.h.

155{0.};

◆ eta

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

Value of the track-eta.

Definition at line 157 of file MuonObj.h.

157{0.};

◆ is_valid

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

Flag telling whether the track particle exists at all.

Definition at line 151 of file MuonObj.h.

151{false};

◆ isData

const bool MCP::TrackCalibObj::isData {}

Definition at line 169 of file MuonObj.h.

169{};

◆ mass

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

Value of the track-mass.

Definition at line 161 of file MuonObj.h.

161{0.};

◆ phi

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

Value of the track-phi.

Definition at line 159 of file MuonObj.h.

159{0.};

◆ type

const TrackType MCP::TrackCalibObj::type {}

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

Definition at line 149 of file MuonObj.h.

149{};

◆ uncalib_charge

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

Value of the track-charge (before calibration)

Definition at line 163 of file MuonObj.h.

163{0};

◆ uncalib_pt

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

Value of the track-pt pre-calibration.

Definition at line 153 of file MuonObj.h.

153{0.};

◆ year

const DataYear MCP::TrackCalibObj::year {}

Definition at line 167 of file MuonObj.h.

167{};

The documentation for this struct was generated from the following file: