ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParametersHelper.h File Reference

Utility methods to access track/truth particles parmeters in a consitent way in this package. More...

#include "xAODTracking/TrackParticle.h"
#include "xAODTruth/TruthParticle.h"
#include <vector>
#include <cmath>
#include "VertexParametersHelper.h"
Include dependency graph for TrackParametersHelper.h:

Go to the source code of this file.

Namespaces

namespace  IDTPM
 Athena include(s).

Functions

template<class U>
float IDTPM::pT (const U &p)
 Accessor utility function for getting the value of pT.
template<class U>
float IDTPM::pTsig (const U &p)
 Accessor utility function for getting the value of signed pT.
template<class U>
float IDTPM::eta (const U &p)
 Accessor utility function for getting the value of eta.
float IDTPM::getTheta (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of theta.
float IDTPM::getTheta (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::theta (const U &p)
float IDTPM::getPhi (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of phi.
float IDTPM::getPhi (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::phi (const U &p)
float IDTPM::getZ0 (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of z0.
float IDTPM::getZ0 (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::z0 (const U &p)
template<class U>
float IDTPM::z0SinTheta (const U &p)
float IDTPM::getD0 (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of d0.
float IDTPM::getD0 (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::d0 (const U &p)
float IDTPM::getProdR (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of R.
float IDTPM::getProdR (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::prodR (const U &p)
float IDTPM::getProdZ (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of Z.
float IDTPM::getProdZ (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::prodZ (const U &p)
float IDTPM::getQoverP (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of qOverP.
float IDTPM::getQoverP (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::qOverP (const U &p)
template<class U>
float IDTPM::qOverPT (const U &p)
template<class U>
float IDTPM::eTot (const U &p)
 Accessor utility function for getting the value of Energy.
template<class U>
float IDTPM::eT (const U &p)
 Accessor utility function for getting the value of Tranverse energy.
float IDTPM::getChiSquared (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of chi^2.
float IDTPM::getChiSquared (const xAOD::TruthParticle &)
template<class U>
float IDTPM::chiSquared (const U &p)
float IDTPM::getNdof (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of #dof.
float IDTPM::getNdof (const xAOD::TruthParticle &)
template<class U>
float IDTPM::ndof (const U &p)
std::vector< unsigned int > IDTPM::getAuthor (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track author.
std::vector< unsigned int > IDTPM::getAuthor (const xAOD::TruthParticle &)
template<class U>
std::vector< unsigned int > IDTPM::author (const U &p)
uint8_t IDTPM::getHasValidTime (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track hasValidTime.
uint8_t IDTPM::getHasValidTime (const xAOD::TruthParticle &)
template<class U>
uint8_t IDTPM::hasValidTime (const U &p)
float IDTPM::getTime (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track time.
float IDTPM::getTime (const xAOD::TruthParticle &)
template<class U>
float IDTPM::time (const U &p)
float IDTPM::getCov (const xAOD::TrackParticle &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
 Accessor utility function for getting the track parameters covariance.
float IDTPM::getCov (const xAOD::TruthParticle &, Trk::ParamDefs, Trk::ParamDefs)
template<class U>
float IDTPM::cov (const U &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
float IDTPM::getError (const xAOD::TrackParticle &p, Trk::ParamDefs par)
 Accessor utility function for getting the track parameters error.
float IDTPM::getError (const xAOD::TruthParticle &, Trk::ParamDefs)
template<class U>
float IDTPM::error (const U &p, Trk::ParamDefs par)
std::vector< float > IDTPM::getCovVec (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track parameters covariance vector.
std::vector< float > IDTPM::getCovVec (const xAOD::TruthParticle &)
template<class U>
std::vector< float > IDTPM::covVec (const U &p)
float IDTPM::getQOverPTError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the QOverPt error.
float IDTPM::getQOverPTError (const xAOD::TruthParticle &)
template<class U>
float IDTPM::qOverPTError (const U &p)
float IDTPM::getPTError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the Pt error.
float IDTPM::getPTError (const xAOD::TruthParticle &)
template<class U>
float IDTPM::pTError (const U &p)
float IDTPM::getEtaError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the Eta error.
float IDTPM::getEtaError (const xAOD::TruthParticle &)
template<class U>
float IDTPM::etaError (const U &p)
float IDTPM::getZ0SinThetaError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the z0SinTheta error.
float IDTPM::getZ0SinThetaError (const xAOD::TruthParticle &)
template<class U>
float IDTPM::z0SinThetaError (const U &p)
template<class U1, class U2 = U1>
float IDTPM::deltaPhi (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaPhi betwen two tracks.
template<class U1, class U2 = U1>
float IDTPM::deltaEta (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaEta betwen two tracks.
template<class U1, class U2 = U1>
float IDTPM::deltaR (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaR betwen two tracks.
float IDTPM::getIsHadron (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of isHadron.
float IDTPM::getIsHadron (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::isHadron (const U &p)
float IDTPM::getIsPion (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of isPion.
float IDTPM::getIsPion (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::isPion (const U &p)
int IDTPM::getTruthType (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of truthType.
int IDTPM::getTruthType (const xAOD::TruthParticle &p)
template<class U>
int IDTPM::truthType (const U &p)
int IDTPM::getTruthOrigin (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of truthOrigin.
int IDTPM::getTruthOrigin (const xAOD::TruthParticle &p)
template<class U>
int IDTPM::truthOrigin (const U &p)
float IDTPM::getNInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelHits.
float IDTPM::getNInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelHits (const U &p)
float IDTPM::getNInnerMostPixelEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelEndcapHits.
float IDTPM::getNInnerMostPixelEndcapHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelEndcapHits (const U &p)
float IDTPM::getNNextToInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nNextToInnerMostPixelHits.
float IDTPM::getNNextToInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nNextToInnerMostPixelHits (const U &p)
float IDTPM::getNNextToInnerMostPixelEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nNextToInnerMostPixelEndcapHits.
float IDTPM::getNNextToInnerMostPixelEndcapHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nNextToInnerMostPixelEndcapHits (const U &p)
float IDTPM::getNInnerMostPixelSharedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelSharedHits.
float IDTPM::getNInnerMostPixelSharedHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelSharedHits (const U &p)
float IDTPM::getNInnerMostPixelSharedEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelSharedEndcapHits.
float IDTPM::getNInnerMostPixelSharedEndcapHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelSharedEndcapHits (const U &p)
float IDTPM::getNPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nPixelHits.
float IDTPM::getNPixelHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelHits (const U &p)
float IDTPM::getNPixelHoles (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nPixelHoles.
float IDTPM::getNPixelHoles (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelHoles (const U &p)
float IDTPM::getNPixelSharedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nPixelSharedHits.
float IDTPM::getNPixelSharedHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelSharedHits (const U &p)
float IDTPM::getPixeldEdx (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of pixeldEdx.
float IDTPM::getPixeldEdx (const xAOD::TruthParticle &)
template<class U>
float IDTPM::pixeldEdx (const U &p)
float IDTPM::getNSCTHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSCTHits.
float IDTPM::getNSCTHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nSCTHits (const U &p)
float IDTPM::getNSCTHoles (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSCTHoles.
float IDTPM::getNSCTHoles (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nSCTHoles (const U &p)
float IDTPM::getNSCTSharedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSCTSharedHits.
float IDTPM::getNSCTSharedHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nSCTSharedHits (const U &p)
float IDTPM::getNSiHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSiHits.
float IDTPM::getNSiHits (const xAOD::TruthParticle &p)
template<class U>
float IDTPM::nSiHits (const U &p)
template<class U>
float IDTPM::nSiHoles (const U &p)
 Accessor utility function for getting the value of nSiHoles.
float IDTPM::getNTRTHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHits.
float IDTPM::getNTRTHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nTRTHits (const U &p)
float IDTPM::getNTRTHitsXe (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHitsXe.
float IDTPM::getNTRTHitsXe (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nTRTHitsXe (const U &p)
float IDTPM::getNTRTHitsAr (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHitsAr.
float IDTPM::getNTRTHitsAr (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nTRTHitsAr (const U &p)
float IDTPM::getNTRTHighThresholdHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHighThresholdHits.
float IDTPM::getNTRTHighThresholdHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nTRTHighThresholdHits (const U &p)
float IDTPM::getNTRTHighThresholdHitsXe (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHighThresholdHitsXe.
float IDTPM::getNTRTHighThresholdHitsXe (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nTRTHighThresholdHitsXe (const U &p)
float IDTPM::getNTRTHighThresholdHitsAr (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHighThresholdHitsAr.
float IDTPM::getNTRTHighThresholdHitsAr (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nTRTHighThresholdHitsAr (const U &p)
float IDTPM::getNInnerMostPixelOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelOutliers.
float IDTPM::getNInnerMostPixelOutliers (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelOutliers (const U &p)
float IDTPM::getNInnerMostPixelEndcapOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelEndcapOutliers.
float IDTPM::getNInnerMostPixelEndcapOutliers (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelEndcapOutliers (const U &p)
float IDTPM::getNInnerMostPixelSplitHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelSplitHits.
float IDTPM::getNInnerMostPixelSplitHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelSplitHits (const U &p)
float IDTPM::getNInnerMostPixelSplitEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelSplitEndcapHits.
float IDTPM::getNInnerMostPixelSplitEndcapHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nInnerMostPixelSplitEndcapHits (const U &p)
float IDTPM::getNExpectedInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NExpectedInnerMostPixelHits.
float IDTPM::getNExpectedInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nExpectedInnerMostPixelHits (const U &p)
float IDTPM::getNExpectedNextToInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NExpectedNextToInnerMostPixelHits.
float IDTPM::getNExpectedNextToInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nExpectedNextToInnerMostPixelHits (const U &p)
float IDTPM::getNPixelOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelOutliers.
float IDTPM::getNPixelOutliers (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelOutliers (const U &p)
float IDTPM::getNPixelContribLayers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelContribLayers.
float IDTPM::getNPixelContribLayers (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelContribLayers (const U &p)
float IDTPM::getNPixelSplitHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelSplitHits.
float IDTPM::getNPixelSplitHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelSplitHits (const U &p)
float IDTPM::getNPixelGangedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelGangedHits.
float IDTPM::getNPixelGangedHits (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelGangedHits (const U &p)
float IDTPM::getNPixelGangedHitsFlaggedFakes (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelGangedHitsFlaggedFakes.
float IDTPM::getNPixelGangedHitsFlaggedFakes (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelGangedHitsFlaggedFakes (const U &p)
float IDTPM::getNPixelDeadSensors (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelDeadSensors.
float IDTPM::getNPixelDeadSensors (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nPixelDeadSensors (const U &p)
float IDTPM::getNSCTOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NSCTOutliers.
float IDTPM::getNSCTOutliers (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nSCTOutliers (const U &p)
float IDTPM::getNSCTDoubleHoles (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NSCTDoubleHoles.
float IDTPM::getNSCTDoubleHoles (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nSCTDoubleHoles (const U &p)
float IDTPM::getNSCTDeadSensors (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NSCTDeadSensors.
float IDTPM::getNSCTDeadSensors (const xAOD::TruthParticle &)
template<class U>
float IDTPM::nSCTDeadSensors (const U &p)

Detailed Description

Utility methods to access track/truth particles parmeters in a consitent way in this package.

Author
Marco Aparo marco.nosp@m..apa.nosp@m.ro@ce.nosp@m.rn.c.nosp@m.h
Date
25 September 2023

Definition in file TrackParametersHelper.h.