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 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. 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 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},
88  isData{isData},
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()} {}

◆ 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)()} {}

◆ 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 ( )
inline

Full track covariance matrix.

Definition at line 174 of file MuonObj.h.

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

◆ AmgVector()

const MCP::TrackCalibObj::AmgVector ( )
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.

◆ calib_pt

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

Smeared track pt.

Definition at line 155 of file MuonObj.h.

◆ eta

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

Value of the track-eta.

Definition at line 157 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 151 of file MuonObj.h.

◆ isData

const bool MCP::TrackCalibObj::isData {}

Definition at line 169 of file MuonObj.h.

◆ mass

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

Value of the track-mass.

Definition at line 161 of file MuonObj.h.

◆ phi

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

Value of the track-phi.

Definition at line 159 of file MuonObj.h.

◆ type

const TrackType MCP::TrackCalibObj::type {}

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

Definition at line 149 of file MuonObj.h.

◆ uncalib_charge

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

Value of the track-charge (before calibration)

Definition at line 163 of file MuonObj.h.

◆ uncalib_pt

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

Value of the track-pt pre-calibration.

Definition at line 153 of file MuonObj.h.

◆ year

const DataYear MCP::TrackCalibObj::year {}

Definition at line 167 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:151
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:153
ParticleConstants::PDG2011::muonMassInMeV
constexpr double muonMassInMeV
the mass of the muon (in MeV)
Definition: ParticleConstants.h:29
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:200
test_pyathena.pt
pt
Definition: test_pyathena.py:11
CP::MeVtoGeV
constexpr float MeVtoGeV
Definition: IsolationCloseByCorrectionTool.cxx:38
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:163
MCP::TrackCalibObj::year
const DataYear year
Definition: MuonObj.h:167
MCP::TrackCalibObj::calib_charge
int calib_charge
Value of the track-charge (after calibration)
Definition: MuonObj.h:165
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
MCP::TrackCalibObj::eta
const double eta
Value of the track-eta.
Definition: MuonObj.h:157
MCP::TrackCalibObj::type
const TrackType type
Flag telling the code whether this is CB/ME/ID.
Definition: MuonObj.h:149
MCP::TrackCalibObj::phi
const double phi
Value of the track-phi.
Definition: MuonObj.h:159
MCP::TrackCalibObj::AmgVector
const AmgVector(5) pars
Track perigee parameters.
Definition: MuonObj.h:172
charge
double charge(const T &p)
Definition: AtlasPID.h:997
MCP::TrackCalibObj::calib_pt
double calib_pt
Smeared track pt.
Definition: MuonObj.h:155
MCP::TrackCalibObj::mass
const double mass
Value of the track-mass.
Definition: MuonObj.h:161
MCP::TrackCalibObj::isData
const bool isData
Definition: MuonObj.h:169
xAOD::track
@ track
Definition: TrackingPrimitives.h:513
MCP::TrackCalibObj::AmgSymMatrix
const AmgSymMatrix(5) covariance
Full track covariance matrix.
Definition: MuonObj.h:174
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32