ATLAS Offline Software
Loading...
Searching...
No Matches
IDTPM Namespace Reference

Athena include(s). More...

Classes

class  DeltaRMatchingTool_trk
class  DeltaRMatchingTool_trkTruth
class  DeltaRMatchingTool_truthTrk
class  DeltaRMatchingToolBase
class  DuplicateRatePlots
class  EfficiencyPlots
class  EFTrackMatchingTool
struct  exitPoint_t
class  FakeRatePlots
class  HitsOnTracksPlots
class  IPlotsDefReadTool
class  ITrackMatchingLookup
class  ITrackMatchingTool
class  ITrackSelectionTool
class  IVertexSelectionTool
class  JsonPlotsDefReadTool
class  NtracksPlots
class  OfflineElectronDecoratorAlg
class  OfflineElectronPlots
class  OfflineJetDecoratorAlg
class  OfflineMuonDecoratorAlg
class  OfflineTauDecoratorAlg
class  OfflineTrackQualitySelectionTool
 Uses InDetTrackSelection tool and working points defined there for tracks quality selection In future it is possible that the selection cuts & logic will be moved here. More...
class  PlotMgr
class  ResolutionPlots
class  RoiSelectionTool
class  SinglePlotDefinition
class  StableDeltaRMatchingTool
class  StableDeltaRMatchingTool_trk
class  StableDeltaRMatchingTool_trkTruth
class  StableDeltaRMatchingTool_truthTrk
class  StableMatchingBase
class  SummaryPlots
class  TrackAnalysisCollections
class  TrackAnalysisInfoWriteTool
class  TrackAnalysisPlotsMgr
class  TrackMatchingLookup_trk
class  TrackMatchingLookup_trkTruth
class  TrackMatchingLookup_truthTrk
class  TrackMatchingLookupBase
class  TrackObjectSelectionTool
class  TrackParametersPlots
class  TrackQualitySelectionTool
class  TrackRoiSelectionTool
class  TrackTruthMatchingTool
class  TruthDecoratorAlg
class  TruthQualitySelectionTool
class  TruthTrackMatchingTool
class  VertexParametersPlots
class  VertexQualitySelectionTool
class  VertexRoiSelectionTool

Typedefs

typedef TrigCompositeUtils::LinkInfo< TrigRoiDescriptorCollectionroiCollection_t
template<class ContainerType, class VariableType>
using WriteKeyAccessorPair
 Useful declarations.
template<class ContainerType, class VariableType>
using WriteAccessorRefPair
template<class ContainerType, class VariableType>
using OptionalDecoration
template<typename coll_t>
using EL_t = ElementLink< coll_t >
 useful typedefs
template<typename coll_t>
using VecEL_t = std::vector< EL_t< coll_t > >
template<typename coll_t>
using Vec_t = std::vector< typename coll_t::const_value_type >
using VecF_t = std::vector< float >
template<typename Tcoll_t, typename Rcoll_t>
using MatchInfo_t = std::tuple< VecEL_t<Tcoll_t>, VecEL_t<Rcoll_t>, VecF_t >

Enumerations

enum  VposDefs : int { VposX =0 , VposY =1 , VposZ =2 , NVpos =3 }
 enum for vertex position More...

Functions

const xAOD::ElectrongetLinkedElectron (const xAOD::TrackParticle &track, const std::string &quality)
 getLinkedElectron
const xAOD::MuongetLinkedMuon (const xAOD::TrackParticle &track, const std::string &quality)
 getLinkedMuon
const xAOD::TauJetgetLinkedTau (const xAOD::TrackParticle &track, const int requiredNtracks, const std::string &type, const std::string &quality)
 getLinkedTau
const xAOD::JetgetLinkedJet (const xAOD::TrackParticle &track, const std::string &quality)
 getLinkedJet
float getD0TrackInJet (const xAOD::TrackParticle &track, const std::string &quality)
 recompute d0 projecting in jet direction w.r.t. origin
bool isUnlinkedTruth (const xAOD::TrackParticle &track)
 isUnlinkedTruth
float getTruthMatchProb (const xAOD::TrackParticle &track)
 getTruthMatchProb
const xAOD::TruthParticlegetLinkedTruth (const xAOD::TrackParticle &track, const float truthProbCut)
 getLinkedTruth
template<typename PARTICLE>
unsigned int getEtaBin (const PARTICLE &p, const std::vector< float > &etaBins)
template unsigned int getEtaBin< xAOD::TruthParticle > (const xAOD::TruthParticle &truth, const std::vector< float > &etaBins)
template unsigned int getEtaBin< xAOD::TrackParticle > (const xAOD::TrackParticle &track, const std::vector< float > &etaBins)
bool getVertexTracksAndWeights (const xAOD::Vertex &vtx, std::vector< const xAOD::TrackParticle * > &vtxTracks, std::vector< float > &vtxTrackWeights, const std::vector< const xAOD::TrackParticle * > &selTracks, bool useSelected)
 getVertexTracksAndWeights
template<typename container_t>
bool isUnlinkedObject (const xAOD::TrackParticle &track, const std::string &decoName)
 Templated method to check if a track is not linked to an object.
template<typename container_t>
container_t::const_value_type getLinkedObject (const xAOD::TrackParticle &track, const std::string &decoName)
 Templated method to retrieve object linked to a track.
const xAOD::JetgetLinkedJet (const xAOD::TruthParticle &, const std::string &="")
float getD0TrackInJet (const xAOD::TruthParticle &, const std::string &="")
bool isUnlinkedTruth (const xAOD::TruthParticle &)
float getTruthMatchProb (const xAOD::TruthParticle &)
const xAOD::TruthParticlegetLinkedTruth (const xAOD::TruthParticle &, const float)
template<typename PARTICLE>
bool nHitsSelVec (const PARTICLE &p, const std::vector< unsigned int > &minHits, const std::vector< float > &etaBins)
template bool nHitsSelVec< xAOD::TruthParticle > (const xAOD::TruthParticle &truth, const std::vector< unsigned int > &minHits, const std::vector< float > &etaBins)
template bool nHitsSelVec< xAOD::TrackParticle > (const xAOD::TrackParticle &track, const std::vector< unsigned int > &minHits, const std::vector< float > &etaBins)
bool minPtSelVec (const xAOD::TrackParticle &track, const std::vector< float > &minPt, const std::vector< float > &etaBins)
bool minPtSelVec (const xAOD::TruthParticle &, const std::vector< float > &, const std::vector< float > &)
bool maxD0SelVec (const xAOD::TrackParticle &track, const std::vector< float > &maxD0, const std::vector< float > &etaBins)
bool maxD0SelVec (const xAOD::TruthParticle &, const std::vector< float > &, const std::vector< float > &)
bool maxZ0SelVec (const xAOD::TrackParticle &track, const std::vector< float > &maxZ0, const std::vector< float > &etaBins)
bool maxZ0SelVec (const xAOD::TruthParticle &, const std::vector< float > &, const std::vector< float > &)
bool getVertexTracksAndWeights (const xAOD::TruthVertex &, std::vector< const xAOD::TruthParticle * > &, std::vector< float > &, const std::vector< const xAOD::TruthParticle * > &={}, bool=false)
template<class T_Parent, class T_Cont, class T>
void createDecoratorKeysAndAccessor (T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< WriteKeyAccessorPair< T_Cont, T > > &decor_out)
 create a pair composed of a WriteDecorHandleKey to create a decorator handle and an accessor to check the availablilty of a decoration
template<class T_Parent, class T_Cont>
void createDecoratorKeys (T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< SG::WriteDecorHandleKey< T_Cont > > &decor_out)
 like createDecoratorKeysAndAccessor but without the accessor to check the availablilty of a decoration
template<class T_Cont, class T>
bool decorationsAllExist (const T_Cont &container, const std::vector< WriteKeyAccessorPair< T_Cont, T > > &keys, bool verbose=false)
 Like above - FIXME: maybe not needed.
template<class T_Cont, class T>
std::vector< OptionalDecoration< T_Cont, T > > createDecoratorsIfNeeded (const T_Cont &container, const std::vector< WriteKeyAccessorPair< T_Cont, T > > &keys, const EventContext &ctx, bool verbose=false)
 create/book the decorations if they do not exist already
template<class T_Cont, class T>
std::vector< SG::WriteDecorHandle< T_Cont, T > > createDecorators (const std::vector< SG::WriteDecorHandleKey< T_Cont > > &keys, const EventContext &ctx)
 similar to createDecoratorsIfNeeded, but without the checking if decorations already exist
template<class T_Cont, class T_Cont_Elm, class T>
void decorateOrWarnIfUnequal (const T_Cont_Elm &particle, WriteAccessorRefPair< T_Cont, T > &decorator, const T &value)
 Fill the decoration if it deas not exist or it has a different value.
template<class T_Cont, class T_Cont_Elm, class T>
void decorateOrRejectQuietly (const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
 Safe method to fill the decoration if decor flag is true.
template<class T_Cont, class T_Cont_Elm, class T>
void decorate (const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
 unsafe fill decoration method for convenience
template<class U>
float pT (const U &p)
 Accessor utility function for getting the value of pT.
template<class U>
float pTsig (const U &p)
 Accessor utility function for getting the value of signed pT.
template<class U>
float eta (const U &p)
 Accessor utility function for getting the value of eta.
float getTheta (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of theta.
float getTheta (const xAOD::TruthParticle &p)
template<class U>
float theta (const U &p)
float getPhi (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of phi.
float getPhi (const xAOD::TruthParticle &p)
template<class U>
float phi (const U &p)
float getZ0 (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of z0.
float getZ0 (const xAOD::TruthParticle &p)
template<class U>
float z0 (const U &p)
template<class U>
float z0SinTheta (const U &p)
float getD0 (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of d0.
float getD0 (const xAOD::TruthParticle &p)
template<class U>
float d0 (const U &p)
float getProdR (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of R.
float getProdR (const xAOD::TruthParticle &p)
template<class U>
float prodR (const U &p)
float getProdZ (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of Z.
float getProdZ (const xAOD::TruthParticle &p)
template<class U>
float prodZ (const U &p)
float getQoverP (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of qOverP.
float getQoverP (const xAOD::TruthParticle &p)
template<class U>
float qOverP (const U &p)
template<class U>
float qOverPT (const U &p)
template<class U>
float eTot (const U &p)
 Accessor utility function for getting the value of Energy.
template<class U>
float eT (const U &p)
 Accessor utility function for getting the value of Tranverse energy.
float getChiSquared (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of chi^2.
float getChiSquared (const xAOD::TruthParticle &)
template<class U>
float chiSquared (const U &p)
float getNdof (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of #dof.
float getNdof (const xAOD::TruthParticle &)
template<class U>
float ndof (const U &p)
std::vector< unsigned int > getAuthor (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track author.
std::vector< unsigned int > getAuthor (const xAOD::TruthParticle &)
template<class U>
std::vector< unsigned int > author (const U &p)
uint8_t getHasValidTime (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track hasValidTime.
uint8_t getHasValidTime (const xAOD::TruthParticle &)
template<class U>
uint8_t hasValidTime (const U &p)
float getTime (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track time.
float getTime (const xAOD::TruthParticle &)
template<class U>
float time (const U &p)
float getCov (const xAOD::TrackParticle &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
 Accessor utility function for getting the track parameters covariance.
float getCov (const xAOD::TruthParticle &, Trk::ParamDefs, Trk::ParamDefs)
template<class U>
float cov (const U &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
float getError (const xAOD::TrackParticle &p, Trk::ParamDefs par)
 Accessor utility function for getting the track parameters error.
float getError (const xAOD::TruthParticle &, Trk::ParamDefs)
template<class U>
float error (const U &p, Trk::ParamDefs par)
std::vector< float > getCovVec (const xAOD::TrackParticle &p)
 Accessor utility function for getting the track parameters covariance vector.
std::vector< float > getCovVec (const xAOD::TruthParticle &)
template<class U>
std::vector< float > covVec (const U &p)
float getQOverPTError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the QOverPt error.
float getQOverPTError (const xAOD::TruthParticle &)
template<class U>
float qOverPTError (const U &p)
float getPTError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the Pt error.
float getPTError (const xAOD::TruthParticle &)
template<class U>
float pTError (const U &p)
float getEtaError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the Eta error.
float getEtaError (const xAOD::TruthParticle &)
template<class U>
float etaError (const U &p)
float getZ0SinThetaError (const xAOD::TrackParticle &p)
 Accessor utility function for getting the z0SinTheta error.
float getZ0SinThetaError (const xAOD::TruthParticle &)
template<class U>
float z0SinThetaError (const U &p)
template<class U1, class U2 = U1>
float deltaPhi (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaPhi betwen two tracks.
template<class U1, class U2 = U1>
float deltaEta (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaEta betwen two tracks.
template<class U1, class U2 = U1>
float deltaR (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaR betwen two tracks.
float getIsHadron (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of isHadron.
float getIsHadron (const xAOD::TruthParticle &p)
template<class U>
float isHadron (const U &p)
float getIsPion (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of isPion.
float getIsPion (const xAOD::TruthParticle &p)
template<class U>
float isPion (const U &p)
int getTruthType (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of truthType.
int getTruthType (const xAOD::TruthParticle &p)
template<class U>
int truthType (const U &p)
int getTruthOrigin (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of truthOrigin.
int getTruthOrigin (const xAOD::TruthParticle &p)
template<class U>
int truthOrigin (const U &p)
float getNInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelHits.
float getNInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelHits (const U &p)
float getNInnerMostPixelEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelEndcapHits.
float getNInnerMostPixelEndcapHits (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelEndcapHits (const U &p)
float getNNextToInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nNextToInnerMostPixelHits.
float getNNextToInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float nNextToInnerMostPixelHits (const U &p)
float getNNextToInnerMostPixelEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nNextToInnerMostPixelEndcapHits.
float getNNextToInnerMostPixelEndcapHits (const xAOD::TruthParticle &)
template<class U>
float nNextToInnerMostPixelEndcapHits (const U &p)
float getNInnerMostPixelSharedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelSharedHits.
float getNInnerMostPixelSharedHits (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelSharedHits (const U &p)
float getNInnerMostPixelSharedEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nInnerMostPixelSharedEndcapHits.
float getNInnerMostPixelSharedEndcapHits (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelSharedEndcapHits (const U &p)
float getNPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nPixelHits.
float getNPixelHits (const xAOD::TruthParticle &)
template<class U>
float nPixelHits (const U &p)
float getNPixelHoles (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nPixelHoles.
float getNPixelHoles (const xAOD::TruthParticle &)
template<class U>
float nPixelHoles (const U &p)
float getNPixelSharedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nPixelSharedHits.
float getNPixelSharedHits (const xAOD::TruthParticle &)
template<class U>
float nPixelSharedHits (const U &p)
float getPixeldEdx (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of pixeldEdx.
float getPixeldEdx (const xAOD::TruthParticle &)
template<class U>
float pixeldEdx (const U &p)
float getNSCTHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSCTHits.
float getNSCTHits (const xAOD::TruthParticle &)
template<class U>
float nSCTHits (const U &p)
float getNSCTHoles (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSCTHoles.
float getNSCTHoles (const xAOD::TruthParticle &)
template<class U>
float nSCTHoles (const U &p)
float getNSCTSharedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSCTSharedHits.
float getNSCTSharedHits (const xAOD::TruthParticle &)
template<class U>
float nSCTSharedHits (const U &p)
float getNSiHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nSiHits.
float getNSiHits (const xAOD::TruthParticle &p)
template<class U>
float nSiHits (const U &p)
template<class U>
float nSiHoles (const U &p)
 Accessor utility function for getting the value of nSiHoles.
float getNTRTHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHits.
float getNTRTHits (const xAOD::TruthParticle &)
template<class U>
float nTRTHits (const U &p)
float getNTRTHitsXe (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHitsXe.
float getNTRTHitsXe (const xAOD::TruthParticle &)
template<class U>
float nTRTHitsXe (const U &p)
float getNTRTHitsAr (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHitsAr.
float getNTRTHitsAr (const xAOD::TruthParticle &)
template<class U>
float nTRTHitsAr (const U &p)
float getNTRTHighThresholdHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHighThresholdHits.
float getNTRTHighThresholdHits (const xAOD::TruthParticle &)
template<class U>
float nTRTHighThresholdHits (const U &p)
float getNTRTHighThresholdHitsXe (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHighThresholdHitsXe.
float getNTRTHighThresholdHitsXe (const xAOD::TruthParticle &)
template<class U>
float nTRTHighThresholdHitsXe (const U &p)
float getNTRTHighThresholdHitsAr (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHighThresholdHitsAr.
float getNTRTHighThresholdHitsAr (const xAOD::TruthParticle &)
template<class U>
float nTRTHighThresholdHitsAr (const U &p)
float getNInnerMostPixelOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelOutliers.
float getNInnerMostPixelOutliers (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelOutliers (const U &p)
float getNInnerMostPixelEndcapOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelEndcapOutliers.
float getNInnerMostPixelEndcapOutliers (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelEndcapOutliers (const U &p)
float getNInnerMostPixelSplitHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelSplitHits.
float getNInnerMostPixelSplitHits (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelSplitHits (const U &p)
float getNInnerMostPixelSplitEndcapHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NInnerMostPixelSplitEndcapHits.
float getNInnerMostPixelSplitEndcapHits (const xAOD::TruthParticle &)
template<class U>
float nInnerMostPixelSplitEndcapHits (const U &p)
float getNExpectedInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NExpectedInnerMostPixelHits.
float getNExpectedInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float nExpectedInnerMostPixelHits (const U &p)
float getNExpectedNextToInnerMostPixelHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NExpectedNextToInnerMostPixelHits.
float getNExpectedNextToInnerMostPixelHits (const xAOD::TruthParticle &)
template<class U>
float nExpectedNextToInnerMostPixelHits (const U &p)
float getNPixelOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelOutliers.
float getNPixelOutliers (const xAOD::TruthParticle &)
template<class U>
float nPixelOutliers (const U &p)
float getNPixelContribLayers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelContribLayers.
float getNPixelContribLayers (const xAOD::TruthParticle &)
template<class U>
float nPixelContribLayers (const U &p)
float getNPixelSplitHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelSplitHits.
float getNPixelSplitHits (const xAOD::TruthParticle &)
template<class U>
float nPixelSplitHits (const U &p)
float getNPixelGangedHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelGangedHits.
float getNPixelGangedHits (const xAOD::TruthParticle &)
template<class U>
float nPixelGangedHits (const U &p)
float getNPixelGangedHitsFlaggedFakes (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelGangedHitsFlaggedFakes.
float getNPixelGangedHitsFlaggedFakes (const xAOD::TruthParticle &)
template<class U>
float nPixelGangedHitsFlaggedFakes (const U &p)
float getNPixelDeadSensors (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NPixelDeadSensors.
float getNPixelDeadSensors (const xAOD::TruthParticle &)
template<class U>
float nPixelDeadSensors (const U &p)
float getNSCTOutliers (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NSCTOutliers.
float getNSCTOutliers (const xAOD::TruthParticle &)
template<class U>
float nSCTOutliers (const U &p)
float getNSCTDoubleHoles (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NSCTDoubleHoles.
float getNSCTDoubleHoles (const xAOD::TruthParticle &)
template<class U>
float nSCTDoubleHoles (const U &p)
float getNSCTDeadSensors (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of NSCTDeadSensors.
float getNSCTDeadSensors (const xAOD::TruthParticle &)
template<class U>
float nSCTDeadSensors (const U &p)
template<class V>
float posX (const V &v)
 Accessor utility function for getting the value of vertex position x.
template<class V>
float posY (const V &v)
 Accessor utility function for getting the value of vertex position y.
template<class V>
float posZ (const V &v)
 Accessor utility function for getting the value of vertex position z.
float getChiSquared (const xAOD::Vertex &v)
 Accessor utility function for getting the value of chi^2.
float getChiSquared (const xAOD::TruthVertex &)
float getNdof (const xAOD::Vertex &v)
 Accessor utility function for getting the value of #dof.
float getNdof (const xAOD::TruthVertex &)
uint8_t getHasValidTime (const xAOD::Vertex &v)
 Accessor utility function for getting vertex hasValidTime.
uint8_t getHasValidTime (const xAOD::TruthVertex &)
float getTime (const xAOD::Vertex &v)
 Accessor utility function for getting the vertex time.
float getTime (const xAOD::TruthVertex &v)
int getVertexType (const xAOD::Vertex &v)
 Accessor utility function for getting the vertex type.
int getVertexType (const xAOD::TruthVertex &)
template<class V>
int vertexType (const V &v)
float getCov (const xAOD::Vertex &v, VposDefs par1, VposDefs par2)
 Accessor utility function for getting the vertex position covariance.
float getCov (const xAOD::TruthVertex &, VposDefs, VposDefs)
template<class V>
float cov (const V &v, VposDefs par1, VposDefs par2)
float getError (const xAOD::Vertex &v, VposDefs par)
 Accessor utility function for getting the vertex position error.
float getError (const xAOD::TruthVertex &, VposDefs)
template<class V>
float error (const V &v, VposDefs par)
float getTimeErr (const xAOD::Vertex &v)
 Accessor utility function for getting the vertex time resolution.
float getTimeErr (const xAOD::TruthVertex &)
template<class V>
float timeErr (const V &v)

Detailed Description

Athena include(s).

xAOD includes

local includes

Athena includes.

Athena include(s)

STL include(s)

Local include(s)

STD includes

STL include(s) xAOD includes

EDM includes STL includes

Local includes

xAOD includes STL includes Local includes

STL includes

local include(s) STL include(s)

EDM includes local includes STD includes

EDM includes STL includes Local includes

local includes STD includes

Local include(s) EDM includes

STD includes local includes

Local include(s) STD includes

Typedef Documentation

◆ EL_t

template<typename coll_t>
using IDTPM::EL_t = ElementLink< coll_t >

useful typedefs

Definition at line 34 of file TrackAnalysisInfoWriteTool.h.

◆ MatchInfo_t

template<typename Tcoll_t, typename Rcoll_t>
using IDTPM::MatchInfo_t = std::tuple< VecEL_t<Tcoll_t>, VecEL_t<Rcoll_t>, VecF_t >

Definition at line 45 of file TrackAnalysisInfoWriteTool.h.

◆ OptionalDecoration

template<class ContainerType, class VariableType>
using IDTPM::OptionalDecoration
Initial value:
std::pair< SG::WriteDecorHandle<ContainerType, VariableType>, bool >

Definition at line 46 of file SafeDecorator.h.

◆ roiCollection_t

◆ Vec_t

template<typename coll_t>
using IDTPM::Vec_t = std::vector< typename coll_t::const_value_type >

Definition at line 40 of file TrackAnalysisInfoWriteTool.h.

◆ VecEL_t

template<typename coll_t>
using IDTPM::VecEL_t = std::vector< EL_t< coll_t > >

Definition at line 37 of file TrackAnalysisInfoWriteTool.h.

◆ VecF_t

using IDTPM::VecF_t = std::vector< float >

Definition at line 42 of file TrackAnalysisInfoWriteTool.h.

◆ WriteAccessorRefPair

template<class ContainerType, class VariableType>
using IDTPM::WriteAccessorRefPair
Initial value:
std::pair< SG::WriteDecorHandle<ContainerType, VariableType>,
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:569

Definition at line 41 of file SafeDecorator.h.

◆ WriteKeyAccessorPair

template<class ContainerType, class VariableType>
using IDTPM::WriteKeyAccessorPair
Initial value:
std::pair< SG::WriteDecorHandleKey<ContainerType>,

Useful declarations.

Definition at line 36 of file SafeDecorator.h.

Enumeration Type Documentation

◆ VposDefs

enum IDTPM::VposDefs : int

enum for vertex position

Enumerator
VposX 
VposY 
VposZ 
NVpos 

Definition at line 72 of file VertexParametersHelper.h.

Function Documentation

◆ author()

template<class U>
std::vector< unsigned int > IDTPM::author ( const U & p)
inline

Definition at line 147 of file TrackParametersHelper.h.

147{ return getAuthor(p); }
std::vector< unsigned int > getAuthor(const xAOD::TrackParticle &p)
Accessor utility function for getting the track author.

◆ chiSquared()

template<class U>
float IDTPM::chiSquared ( const U & p)
inline

Definition at line 128 of file TrackParametersHelper.h.

128{ return getChiSquared(p); }
float getChiSquared(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of chi^2.

◆ cov() [1/2]

template<class U>
float IDTPM::cov ( const U & p,
Trk::ParamDefs par1,
Trk::ParamDefs par2 )
inline

Definition at line 166 of file TrackParametersHelper.h.

166 {
167 return getCov( p, par1, par2 ); }
float getCov(const xAOD::TrackParticle &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
Accessor utility function for getting the track parameters covariance.

◆ cov() [2/2]

template<class V>
float IDTPM::cov ( const V & v,
VposDefs par1,
VposDefs par2 )
inline

Definition at line 80 of file VertexParametersHelper.h.

80{ return getCov( v, par1, par2 ); }

◆ covVec()

template<class U>
std::vector< float > IDTPM::covVec ( const U & p)
inline

Definition at line 181 of file TrackParametersHelper.h.

181{ return getCovVec( p ); }
std::vector< float > getCovVec(const xAOD::TrackParticle &p)
Accessor utility function for getting the track parameters covariance vector.

◆ createDecoratorKeys()

template<class T_Parent, class T_Cont>
void IDTPM::createDecoratorKeys ( T_Parent & parent,
const SG::ReadHandleKey< T_Cont > & container_key,
const std::string & prefix,
const std::vector< std::string > & decor_names,
std::vector< SG::WriteDecorHandleKey< T_Cont > > & decor_out )

like createDecoratorKeysAndAccessor but without the accessor to check the availablilty of a decoration

Definition at line 75 of file SafeDecorator.h.

81 {
82 decor_out.clear();
83 decor_out.reserve( decor_names.size() );
84 for (const std::string &a_decor_name : decor_names) {
85 assert( !a_decor_name.empty() );
86 decor_out.emplace_back( container_key.key()+"."+prefix+a_decor_name );
87 // need to declare handles, otherwise the scheduler would not
88 // pick up the data dependencies introduced by the decorations
89 parent.declare( decor_out.back() );
90 decor_out.back().setOwner(&parent);
91 decor_out.back().initialize().ignore();
92 }
93 }
const std::string & key() const
Return the StoreGate ID for the referenced object.

◆ createDecoratorKeysAndAccessor()

template<class T_Parent, class T_Cont, class T>
void IDTPM::createDecoratorKeysAndAccessor ( T_Parent & parent,
const SG::ReadHandleKey< T_Cont > & container_key,
const std::string & prefix,
const std::vector< std::string > & decor_names,
std::vector< WriteKeyAccessorPair< T_Cont, T > > & decor_out )

create a pair composed of a WriteDecorHandleKey to create a decorator handle and an accessor to check the availablilty of a decoration

Definition at line 52 of file SafeDecorator.h.

58 {
59 decor_out.clear();
60 decor_out.reserve( decor_names.size() );
61 for( const std::string& a_decor_name: decor_names ) {
62 decor_out.emplace_back(
63 SG::WriteDecorHandleKey< T_Cont >( container_key.key()+"."+prefix+a_decor_name ),
64 SG::AuxElement::ConstAccessor<T>( prefix+a_decor_name )
65 );
66 parent.declare( decor_out.back().first );
67 decor_out.back().first.setOwner( &parent );
68 decor_out.back().first.initialize().ignore();
69 }
70 }
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.

◆ createDecorators()

template<class T_Cont, class T>
std::vector< SG::WriteDecorHandle< T_Cont, T > > IDTPM::createDecorators ( const std::vector< SG::WriteDecorHandleKey< T_Cont > > & keys,
const EventContext & ctx )

similar to createDecoratorsIfNeeded, but without the checking if decorations already exist

Definition at line 183 of file SafeDecorator.h.

186 {
187 std::vector< SG::WriteDecorHandle< T_Cont, T > > out;
188 out.reserve( keys.size() );
189 for( const SG::WriteDecorHandleKey< T_Cont >& a_key : keys ) {
190 out.emplace_back( a_key, ctx );
191 if( not out.back().isValid() ) {
192 std::stringstream msg;
193 msg << "Failed to create decorator handle " << a_key.key();
194 throw std::runtime_error( msg.str() );
195 }
196 } // close SG::WriteDecorHandleKey loop
197 return out;
198 }
MsgStream & msg
Definition testRead.cxx:32

◆ createDecoratorsIfNeeded()

template<class T_Cont, class T>
std::vector< OptionalDecoration< T_Cont, T > > IDTPM::createDecoratorsIfNeeded ( const T_Cont & container,
const std::vector< WriteKeyAccessorPair< T_Cont, T > > & keys,
const EventContext & ctx,
bool verbose = false )

create/book the decorations if they do not exist already

Definition at line 138 of file SafeDecorator.h.

143 {
144 std::vector< OptionalDecoration< T_Cont, T > > out;
145 bool all_available = true;
146 if( !container.empty() ) {
147 std::vector<bool> decorate;
148 decorate.reserve( keys.size() );
149 for( const WriteKeyAccessorPair< T_Cont, T >& a_key : keys ) {
150 decorate.push_back( !a_key.second.isAvailable( *container[0] ) );
151 all_available &= !decorate.back();
152 if( verbose && !decorate.back() ) {
153 std::cout << "WARNING IDTPM::createDecoratorsIfNeeded: Decoration "
154 << a_key.first.key() << " already exists; reject update."
155 << std::endl;
156 } // close if( verbose && !decorate.back() )
157 } // close WriteKeyAccessorPair loop
158
159 if( !all_available ) {
160 std::size_t idx = 0;
161 out.reserve( keys.size() );
162 for( const WriteKeyAccessorPair< T_Cont, T >& a_key : keys ) {
163 assert( idx < decorate.size() );
164 out.emplace_back(
165 SG::WriteDecorHandle< T_Cont,T >( a_key.first, ctx ),
166 decorate[idx++]
167 );
168 if( not out.back().first.isPresent() ) {
169 std::stringstream msg;
170 msg << "Container " << a_key.first.key()
171 << " to be decorated does not exist.";
172 throw std::runtime_error( msg.str() );
173 } // close if( not out.back().first.isPresent() )
174 } // close WriteKeyAccessorPair loop
175 } // close if( !all_available )
176 } // close if( !container.empty() )
177 return out;
178 }
bool verbose
Definition hcg.cxx:73
std::pair< SG::WriteDecorHandleKey< ContainerType >, SG::AuxElement::ConstAccessor< VariableType > > WriteKeyAccessorPair
Useful declarations.
void decorate(const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
unsafe fill decoration method for convenience

◆ d0()

template<class U>
float IDTPM::d0 ( const U & p)
inline

Definition at line 84 of file TrackParametersHelper.h.

84{ return getD0( p ); }
float getD0(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of d0.

◆ decorate()

template<class T_Cont, class T_Cont_Elm, class T>
void IDTPM::decorate ( const T_Cont_Elm & particle,
OptionalDecoration< T_Cont, T > & decorator,
const T & value )

unsafe fill decoration method for convenience

Definition at line 233 of file SafeDecorator.h.

237 {
238 decorator.first( particle ) = value;
239 }

◆ decorateOrRejectQuietly()

template<class T_Cont, class T_Cont_Elm, class T>
void IDTPM::decorateOrRejectQuietly ( const T_Cont_Elm & particle,
OptionalDecoration< T_Cont, T > & decorator,
const T & value )

Safe method to fill the decoration if decor flag is true.

Definition at line 221 of file SafeDecorator.h.

225 {
226 if( decorator.second ) {
227 decorator.first( particle ) = value;
228 }
229 }

◆ decorateOrWarnIfUnequal()

template<class T_Cont, class T_Cont_Elm, class T>
void IDTPM::decorateOrWarnIfUnequal ( const T_Cont_Elm & particle,
WriteAccessorRefPair< T_Cont, T > & decorator,
const T & value )

Fill the decoration if it deas not exist or it has a different value.

Definition at line 202 of file SafeDecorator.h.

206 {
207 if( !decorator.second.isAvailable( particle ) ) {
208 const T existing = decorator.second( particle );
209 if( not CxxUtils::fpcompare::equal( existing, value ) ) {
210 std::cout << "WARNING IDTPM::safeDecorator: " << decorator.first.decorKey()
211 << " Already exists on this object with a different value."
212 << std::endl;
213 }
214 } else {
215 decorator.first( particle ) = value;
216 }
217 }
bool equal(double a, double b)
Compare two FP numbers, working around x87 precision issues.
Definition fpcompare.h:114

◆ decorationsAllExist()

template<class T_Cont, class T>
bool IDTPM::decorationsAllExist ( const T_Cont & container,
const std::vector< WriteKeyAccessorPair< T_Cont, T > > & keys,
bool verbose = false )

Like above - FIXME: maybe not needed.

check if all the required decorations exist

Definition at line 113 of file SafeDecorator.h.

117 {
118 bool all_available = true;
119 if( !container.empty() ) {
120 std::vector<bool> decorate;
121 decorate.reserve( keys.size() );
122 for( const WriteKeyAccessorPair< T_Cont, T >& a_key : keys ) {
123 decorate.push_back( !a_key.second.isAvailable( *container[0] ) );
124 all_available &= !decorate.back();
125 if( verbose && !decorate.back() ) {
126 std::cout << "WARNING IDTPM::decorationsAllExist: Decoration "
127 << a_key.first.key() << " already exists; reject update."
128 << std::endl;
129 } // close if( verbose && !decorate.back() )
130 } // close WriteKeyAccessorPair loop
131 } // close if( !container.empty() )
132 return all_available;
133 }

◆ deltaEta()

template<class U1, class U2 = U1>
float IDTPM::deltaEta ( const U1 & p1,
const U2 & p2 )
inline

Accessor utility function for getting the DeltaEta betwen two tracks.

Definition at line 244 of file TrackParametersHelper.h.

244 {
245 return ( eta(p1) - eta(p2) );
246 }
Scalar eta() const
pseudorapidity method

◆ deltaPhi()

template<class U1, class U2 = U1>
float IDTPM::deltaPhi ( const U1 & p1,
const U2 & p2 )
inline

Accessor utility function for getting the DeltaPhi betwen two tracks.

Definition at line 238 of file TrackParametersHelper.h.

238 {
239 return p1.p4().DeltaPhi( p2.p4() );
240 }

◆ deltaR()

template<class U1, class U2 = U1>
float IDTPM::deltaR ( const U1 & p1,
const U2 & p2 )
inline

Accessor utility function for getting the DeltaR betwen two tracks.

Definition at line 250 of file TrackParametersHelper.h.

250 {
251 return p1.p4().DeltaR( p2.p4() );
252 }

◆ error() [1/2]

template<class U>
float IDTPM::error ( const U & p,
Trk::ParamDefs par )
inline

Definition at line 174 of file TrackParametersHelper.h.

174{ return getError( p, par ); }
float getError(const xAOD::TrackParticle &p, Trk::ParamDefs par)
Accessor utility function for getting the track parameters error.

◆ error() [2/2]

template<class V>
float IDTPM::error ( const V & v,
VposDefs par )
inline

Definition at line 87 of file VertexParametersHelper.h.

87{ return getError( v, par ); }

◆ eT()

template<class U>
float IDTPM::eT ( const U & p)
inline

Accessor utility function for getting the value of Tranverse energy.

Definition at line 122 of file TrackParametersHelper.h.

122{ return p.p4().Et(); }

◆ eta()

template<class U>
float IDTPM::eta ( const U & p)
inline

Accessor utility function for getting the value of eta.

Definition at line 43 of file TrackParametersHelper.h.

43{ return p.eta(); }

◆ etaError()

template<class U>
float IDTPM::etaError ( const U & p)
inline

Definition at line 222 of file TrackParametersHelper.h.

222{ return getEtaError(p); }
float getEtaError(const xAOD::TrackParticle &p)
Accessor utility function for getting the Eta error.

◆ eTot()

template<class U>
float IDTPM::eTot ( const U & p)
inline

Accessor utility function for getting the value of Energy.

Definition at line 118 of file TrackParametersHelper.h.

118{ return p.e(); }

◆ getAuthor() [1/2]

std::vector< unsigned int > IDTPM::getAuthor ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the track author.

Definition at line 137 of file TrackParametersHelper.h.

137 {
138 std::vector< unsigned int > authorVec;
139 std::bitset< xAOD::TrackPatternRecoInfo::NumberOfTrackRecoInfo > patternInfo = p.patternRecoInfo();
140 for( unsigned int i = 0 ; i < xAOD::TrackPatternRecoInfo::NumberOfTrackRecoInfo ; i++ ) {
141 if( patternInfo.test(i) ) authorVec.push_back(i);
142 }
143 return authorVec;
144 }
@ NumberOfTrackRecoInfo
maximum number of enums

◆ getAuthor() [2/2]

std::vector< unsigned int > IDTPM::getAuthor ( const xAOD::TruthParticle & )
inline

Definition at line 145 of file TrackParametersHelper.h.

145{ return {}; }

◆ getChiSquared() [1/4]

float IDTPM::getChiSquared ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of chi^2.

Definition at line 125 of file TrackParametersHelper.h.

125{ return p.chiSquared(); }

◆ getChiSquared() [2/4]

float IDTPM::getChiSquared ( const xAOD::TruthParticle & )
inline

Definition at line 126 of file TrackParametersHelper.h.

126{ return -9999; }

◆ getChiSquared() [3/4]

float IDTPM::getChiSquared ( const xAOD::TruthVertex & )
inline

Definition at line 41 of file VertexParametersHelper.h.

41{ return -9999; }

◆ getChiSquared() [4/4]

float IDTPM::getChiSquared ( const xAOD::Vertex & v)
inline

Accessor utility function for getting the value of chi^2.

Definition at line 40 of file VertexParametersHelper.h.

40{ return v.chiSquared(); }

◆ getCov() [1/4]

float IDTPM::getCov ( const xAOD::TrackParticle & p,
Trk::ParamDefs par1,
Trk::ParamDefs par2 )
inline

Accessor utility function for getting the track parameters covariance.

Definition at line 162 of file TrackParametersHelper.h.

162 {
163 return p.definingParametersCovMatrix()( par1, par2 ); }

◆ getCov() [2/4]

float IDTPM::getCov ( const xAOD::TruthParticle & ,
Trk::ParamDefs ,
Trk::ParamDefs  )
inline

Definition at line 164 of file TrackParametersHelper.h.

164{ return 0.; }

◆ getCov() [3/4]

float IDTPM::getCov ( const xAOD::TruthVertex & ,
VposDefs ,
VposDefs  )
inline

Definition at line 78 of file VertexParametersHelper.h.

78{ return 0.; }

◆ getCov() [4/4]

float IDTPM::getCov ( const xAOD::Vertex & v,
VposDefs par1,
VposDefs par2 )
inline

Accessor utility function for getting the vertex position covariance.

Definition at line 75 of file VertexParametersHelper.h.

75 {
76 return v.covariancePosition()( par1, par2 );
77 }

◆ getCovVec() [1/2]

std::vector< float > IDTPM::getCovVec ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the track parameters covariance vector.

Definition at line 177 of file TrackParametersHelper.h.

177 {
178 return p.definingParametersCovMatrixVec(); }

◆ getCovVec() [2/2]

std::vector< float > IDTPM::getCovVec ( const xAOD::TruthParticle & )
inline

Definition at line 179 of file TrackParametersHelper.h.

179{ return {}; }

◆ getD0() [1/2]

float IDTPM::getD0 ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of d0.

Definition at line 78 of file TrackParametersHelper.h.

78{ return p.d0(); }

◆ getD0() [2/2]

float IDTPM::getD0 ( const xAOD::TruthParticle & p)
inline

Definition at line 79 of file TrackParametersHelper.h.

79 {
80 static thread_local SG::ConstAccessor<float> d0Acc("d0");
81 return (d0Acc.isAvailable(p)) ? d0Acc(p) : -9999.;
82 }
Helper class to provide constant type-safe access to aux data.

◆ getD0TrackInJet() [1/2]

float IDTPM::getD0TrackInJet ( const xAOD::TrackParticle & track,
const std::string & quality )

recompute d0 projecting in jet direction w.r.t. origin

Definition at line 53 of file OfflineObjectDecorHelper.cxx.

54 {
55 const xAOD::Jet* jet = getLinkedJet( track, quality );
56 if( not jet ) return -999.;
57
58 //Amg::Vector3D nullPos( 0, 0, 0 );
59 Amg::Vector3D jetDirection( jet->px(), jet->py(), jet->pz() );
60 Amg::Vector3D unit = jetDirection.unit();
61
62 float vs = std::sin( std::atan2( unit.y(), unit.x() ) - track.phi() ) * track.d0();
63 float signD0 = vs>=0. ? 1. : -1.;
64 return signD0 * std::fabs( track.d0() );
65 }
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Eigen::Matrix< double, 3, 1 > Vector3D
const xAOD::Jet * getLinkedJet(const xAOD::TrackParticle &track, const std::string &quality)
getLinkedJet
Jet_v1 Jet
Definition of the current "jet version".

◆ getD0TrackInJet() [2/2]

float IDTPM::getD0TrackInJet ( const xAOD::TruthParticle & ,
const std::string & = "" )
inline

Definition at line 87 of file OfflineObjectDecorHelper.h.

88 { return -999.; }; // dummy - to avoid compilation errors

◆ getError() [1/4]

float IDTPM::getError ( const xAOD::TrackParticle & p,
Trk::ParamDefs par )
inline

Accessor utility function for getting the track parameters error.

Definition at line 170 of file TrackParametersHelper.h.

170 {
171 return ( cov(p, par, par) < 0 ) ? 0. : std::sqrt( cov(p, par, par) ); }
float cov(const U &p, Trk::ParamDefs par1, Trk::ParamDefs par2)

◆ getError() [2/4]

float IDTPM::getError ( const xAOD::TruthParticle & ,
Trk::ParamDefs  )
inline

Definition at line 172 of file TrackParametersHelper.h.

172{ return 0.; }

◆ getError() [3/4]

float IDTPM::getError ( const xAOD::TruthVertex & ,
VposDefs  )
inline

Definition at line 85 of file VertexParametersHelper.h.

85{ return 0.; }

◆ getError() [4/4]

float IDTPM::getError ( const xAOD::Vertex & v,
VposDefs par )
inline

Accessor utility function for getting the vertex position error.

Definition at line 83 of file VertexParametersHelper.h.

83 {
84 return ( cov(v, par, par) < 0 ) ? 0. : std::sqrt( cov(v, par, par) ); }

◆ getEtaBin()

template<typename PARTICLE>
unsigned int IDTPM::getEtaBin ( const PARTICLE & p,
const std::vector< float > & etaBins )

Definition at line 96 of file OfflineObjectDecorHelper.cxx.

96 {
97 float absEta = std::abs(p.eta());
98 absEta = std::clamp(absEta, etaBins.front(), etaBins.back());
99 const auto pVal = std::lower_bound(etaBins.begin(), etaBins.end(), absEta);
100 const unsigned int bin = std::distance(etaBins.begin(), pVal) - 1;
101 return bin;
102 }

◆ getEtaBin< xAOD::TrackParticle >()

template unsigned int IDTPM::getEtaBin< xAOD::TrackParticle > ( const xAOD::TrackParticle & track,
const std::vector< float > & etaBins )

◆ getEtaBin< xAOD::TruthParticle >()

template unsigned int IDTPM::getEtaBin< xAOD::TruthParticle > ( const xAOD::TruthParticle & truth,
const std::vector< float > & etaBins )

◆ getEtaError() [1/2]

float IDTPM::getEtaError ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the Eta error.

Definition at line 216 of file TrackParametersHelper.h.

216 {
217 float etaErr =
218 error(p, Trk::theta) / ( -2 * std::sin( theta(p) ) * std::cos( theta(p) ) );
219 return std::fabs( etaErr ); }
Scalar theta() const
theta method
@ theta
Definition ParamDefs.h:66

◆ getEtaError() [2/2]

float IDTPM::getEtaError ( const xAOD::TruthParticle & )
inline

Definition at line 220 of file TrackParametersHelper.h.

220{ return 0.; }

◆ getHasValidTime() [1/4]

uint8_t IDTPM::getHasValidTime ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the track hasValidTime.

Definition at line 150 of file TrackParametersHelper.h.

150{ return p.hasValidTime(); }

◆ getHasValidTime() [2/4]

uint8_t IDTPM::getHasValidTime ( const xAOD::TruthParticle & )
inline

Definition at line 151 of file TrackParametersHelper.h.

151{ return 0; }

◆ getHasValidTime() [3/4]

uint8_t IDTPM::getHasValidTime ( const xAOD::TruthVertex & )
inline

Definition at line 54 of file VertexParametersHelper.h.

54{ return 1; }

◆ getHasValidTime() [4/4]

uint8_t IDTPM::getHasValidTime ( const xAOD::Vertex & v)
inline

Accessor utility function for getting vertex hasValidTime.

Definition at line 50 of file VertexParametersHelper.h.

50 {
51 static thread_local SG::ConstAccessor< uint8_t > accHasValidTime( "hasValidTime" );
52 return accHasValidTime.isAvailable(v) ? accHasValidTime(v) : 0;
53 }

◆ getIsHadron() [1/2]

float IDTPM::getIsHadron ( const xAOD::TrackParticle & )
inline

Accessor utility function for getting the value of isHadron.

Definition at line 255 of file TrackParametersHelper.h.

255{ return 0; }

◆ getIsHadron() [2/2]

float IDTPM::getIsHadron ( const xAOD::TruthParticle & p)
inline

Definition at line 256 of file TrackParametersHelper.h.

256{ return p.isHadron();}

◆ getIsPion() [1/2]

float IDTPM::getIsPion ( const xAOD::TrackParticle & )
inline

Accessor utility function for getting the value of isPion.

Definition at line 261 of file TrackParametersHelper.h.

261{ return 0; }

◆ getIsPion() [2/2]

float IDTPM::getIsPion ( const xAOD::TruthParticle & p)
inline

Definition at line 262 of file TrackParametersHelper.h.

262{ return (p.pdgId() == 111 or p.pdgId() == 211);}

◆ getLinkedElectron()

const xAOD::Electron * IDTPM::getLinkedElectron ( const xAOD::TrackParticle & track,
const std::string & quality )

getLinkedElectron

Non-templated methods For offline electrons.

Definition at line 18 of file OfflineObjectDecorHelper.cxx.

19 {
20 std::string decoName = "LinkedElectron_" + quality;
21 return getLinkedObject< xAOD::ElectronContainer >( track, decoName );
22 }
container_t::const_value_type getLinkedObject(const xAOD::TrackParticle &track, const std::string &decoName)
Templated method to retrieve object linked to a track.

◆ getLinkedJet() [1/2]

const xAOD::Jet * IDTPM::getLinkedJet ( const xAOD::TrackParticle & track,
const std::string & quality )

getLinkedJet

For jets.

Definition at line 45 of file OfflineObjectDecorHelper.cxx.

46 {
47 std::string decoName = "LinkedJet_" + quality;
48 return getLinkedObject< xAOD::JetContainer >( track, decoName );
49 }

◆ getLinkedJet() [2/2]

const xAOD::Jet * IDTPM::getLinkedJet ( const xAOD::TruthParticle & ,
const std::string & = "" )
inline

Definition at line 84 of file OfflineObjectDecorHelper.h.

85 { return nullptr; }; // dummy - to avoid compilation errors

◆ getLinkedMuon()

const xAOD::Muon * IDTPM::getLinkedMuon ( const xAOD::TrackParticle & track,
const std::string & quality )

getLinkedMuon

For offline muons.

Definition at line 26 of file OfflineObjectDecorHelper.cxx.

27 {
28 std::string decoName = "LinkedMuon_" + quality;
29 return getLinkedObject< xAOD::MuonContainer >( track, decoName );
30 }

◆ getLinkedObject()

template<typename container_t>
container_t::const_value_type IDTPM::getLinkedObject ( const xAOD::TrackParticle & track,
const std::string & decoName )

Templated method to retrieve object linked to a track.

Definition at line 46 of file OfflineObjectDecorHelper.h.

49 {
50 using elementLink_t = ElementLink< container_t >;
51
52 if( isUnlinkedObject< container_t >( track, decoName ) ) return nullptr;
53
54 const SG::ConstAccessor< elementLink_t > acc( decoName );
55 elementLink_t eleLink = acc( track );
56
57 if( not eleLink.isValid() ) return nullptr;
58
59 return *eleLink;
60 }
bool isUnlinkedObject(const xAOD::TrackParticle &track, const std::string &decoName)
Templated method to check if a track is not linked to an object.

◆ getLinkedTau()

const xAOD::TauJet * IDTPM::getLinkedTau ( const xAOD::TrackParticle & track,
const int requiredNtracks,
const std::string & type,
const std::string & quality )

getLinkedTau

For offline hadronic taus.

Definition at line 34 of file OfflineObjectDecorHelper.cxx.

37 {
38 std::string decoName = "LinkedTau" + type +
39 std::to_string( requiredNtracks ) + "_" + quality;
40 return getLinkedObject< xAOD::TauJetContainer >( track, decoName );
41 }

◆ getLinkedTruth() [1/2]

const xAOD::TruthParticle * IDTPM::getLinkedTruth ( const xAOD::TrackParticle & track,
const float truthProbCut )

getLinkedTruth

Definition at line 85 of file OfflineObjectDecorHelper.cxx.

86 {
87 float prob = getTruthMatchProb( track );
88 if( std::isnan(prob) ) return nullptr;
89 if( prob <= truthProbCut ) return nullptr;
90
92 track, "truthParticleLink" );
93 }
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb

◆ getLinkedTruth() [2/2]

const xAOD::TruthParticle * IDTPM::getLinkedTruth ( const xAOD::TruthParticle & ,
const float  )
inline

Definition at line 99 of file OfflineObjectDecorHelper.h.

100 { return nullptr; }; // dummy - to avoid compilation errors

◆ getNdof() [1/4]

float IDTPM::getNdof ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of #dof.

Definition at line 131 of file TrackParametersHelper.h.

131{ return p.numberDoF(); }

◆ getNdof() [2/4]

float IDTPM::getNdof ( const xAOD::TruthParticle & )
inline

Definition at line 132 of file TrackParametersHelper.h.

132{ return -9999; }

◆ getNdof() [3/4]

float IDTPM::getNdof ( const xAOD::TruthVertex & )
inline

Definition at line 46 of file VertexParametersHelper.h.

46{ return -9999; }

◆ getNdof() [4/4]

float IDTPM::getNdof ( const xAOD::Vertex & v)
inline

Accessor utility function for getting the value of #dof.

Definition at line 45 of file VertexParametersHelper.h.

45{ return v.numberDoF(); }

◆ getNExpectedInnerMostPixelHits() [1/2]

float IDTPM::getNExpectedInnerMostPixelHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NExpectedInnerMostPixelHits.

Definition at line 551 of file TrackParametersHelper.h.

551 {
552 uint8_t iNExpectedInnerMostPixelHits(0);
553 return p.summaryValue( iNExpectedInnerMostPixelHits, xAOD::expectInnermostPixelLayerHit ) ?
554 float( iNExpectedInnerMostPixelHits ) : -9999.;
555 }
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?

◆ getNExpectedInnerMostPixelHits() [2/2]

float IDTPM::getNExpectedInnerMostPixelHits ( const xAOD::TruthParticle & )
inline

Definition at line 556 of file TrackParametersHelper.h.

556{ return -9999.; }

◆ getNExpectedNextToInnerMostPixelHits() [1/2]

float IDTPM::getNExpectedNextToInnerMostPixelHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NExpectedNextToInnerMostPixelHits.

Definition at line 563 of file TrackParametersHelper.h.

563 {
564 uint8_t iNExpectedNextToInnerMostPixelHits(0);
565 return p.summaryValue( iNExpectedNextToInnerMostPixelHits, xAOD::expectNextToInnermostPixelLayerHit ) ?
566 float( iNExpectedNextToInnerMostPixelHits ) : -9999.;
567 }
@ expectNextToInnermostPixelLayerHit
Do we expect a 1st-layer barrel hit for this track?

◆ getNExpectedNextToInnerMostPixelHits() [2/2]

float IDTPM::getNExpectedNextToInnerMostPixelHits ( const xAOD::TruthParticle & )
inline

Definition at line 568 of file TrackParametersHelper.h.

568{ return -9999.; }

◆ getNInnerMostPixelEndcapHits() [1/2]

float IDTPM::getNInnerMostPixelEndcapHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nInnerMostPixelEndcapHits.

Definition at line 297 of file TrackParametersHelper.h.

297 {
298 uint8_t iInnerMostPixelEndcapHits(0);
299 return p.summaryValue( iInnerMostPixelEndcapHits, xAOD::numberOfInnermostPixelLayerEndcapHits ) ?
300 float( iInnerMostPixelEndcapHits ) : -9999.;
301 }
@ numberOfInnermostPixelLayerEndcapHits
these are the hits in the 0th pixel layer endcap [unit8_t].

◆ getNInnerMostPixelEndcapHits() [2/2]

float IDTPM::getNInnerMostPixelEndcapHits ( const xAOD::TruthParticle & )
inline

Definition at line 302 of file TrackParametersHelper.h.

302{ return -9999.; }

◆ getNInnerMostPixelEndcapOutliers() [1/2]

float IDTPM::getNInnerMostPixelEndcapOutliers ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NInnerMostPixelEndcapOutliers.

Definition at line 515 of file TrackParametersHelper.h.

515 {
516 uint8_t iInnerMostPixelEndcapOutliers(0);
517 return p.summaryValue( iInnerMostPixelEndcapOutliers, xAOD::numberOfInnermostPixelLayerEndcapOutliers ) ?
518 float( iInnerMostPixelEndcapOutliers ) : -9999.;
519 }
@ numberOfInnermostPixelLayerEndcapOutliers
number of 0th layer endcap outliers

◆ getNInnerMostPixelEndcapOutliers() [2/2]

float IDTPM::getNInnerMostPixelEndcapOutliers ( const xAOD::TruthParticle & )
inline

Definition at line 520 of file TrackParametersHelper.h.

520{ return -9999.; }

◆ getNInnerMostPixelHits() [1/2]

float IDTPM::getNInnerMostPixelHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nInnerMostPixelHits.

Definition at line 287 of file TrackParametersHelper.h.

287 {
288 uint8_t iInnerMostPixelHits(0);
289 return p.summaryValue( iInnerMostPixelHits, xAOD::numberOfInnermostPixelLayerHits ) ?
290 float( iInnerMostPixelHits ) : -9999.;
291 }
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer

◆ getNInnerMostPixelHits() [2/2]

float IDTPM::getNInnerMostPixelHits ( const xAOD::TruthParticle & )
inline

Definition at line 292 of file TrackParametersHelper.h.

292{ return -9999.; }

◆ getNInnerMostPixelOutliers() [1/2]

float IDTPM::getNInnerMostPixelOutliers ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NInnerMostPixelOutliers.

Definition at line 503 of file TrackParametersHelper.h.

503 {
504 uint8_t iInnerMostPixelOutliers(0);
505 return p.summaryValue( iInnerMostPixelOutliers, xAOD::numberOfInnermostPixelLayerOutliers ) ?
506 float( iInnerMostPixelOutliers ) : -9999.;
507 }
@ numberOfInnermostPixelLayerOutliers
number of 0th layer barrel outliers

◆ getNInnerMostPixelOutliers() [2/2]

float IDTPM::getNInnerMostPixelOutliers ( const xAOD::TruthParticle & )
inline

Definition at line 508 of file TrackParametersHelper.h.

508{ return -9999.; }

◆ getNInnerMostPixelSharedEndcapHits() [1/2]

float IDTPM::getNInnerMostPixelSharedEndcapHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nInnerMostPixelSharedEndcapHits.

Definition at line 337 of file TrackParametersHelper.h.

337 {
338 uint8_t iInnerMostPixelSharedEndcapHits(0);
339 return p.summaryValue( iInnerMostPixelSharedEndcapHits, xAOD::numberOfInnermostPixelLayerSharedEndcapHits ) ?
340 float( iInnerMostPixelSharedEndcapHits ) : -9999.;
341 }
@ numberOfInnermostPixelLayerSharedEndcapHits
number of Pixel 0th layer endcap hits shared by several tracks.

◆ getNInnerMostPixelSharedEndcapHits() [2/2]

float IDTPM::getNInnerMostPixelSharedEndcapHits ( const xAOD::TruthParticle & )
inline

Definition at line 342 of file TrackParametersHelper.h.

342{ return -9999.; }

◆ getNInnerMostPixelSharedHits() [1/2]

float IDTPM::getNInnerMostPixelSharedHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nInnerMostPixelSharedHits.

Definition at line 327 of file TrackParametersHelper.h.

327 {
328 uint8_t iInnerMostPixelSharedHits(0);
329 return p.summaryValue( iInnerMostPixelSharedHits, xAOD::numberOfInnermostPixelLayerSharedHits ) ?
330 float( iInnerMostPixelSharedHits ) : -9999.;
331 }
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.

◆ getNInnerMostPixelSharedHits() [2/2]

float IDTPM::getNInnerMostPixelSharedHits ( const xAOD::TruthParticle & )
inline

Definition at line 332 of file TrackParametersHelper.h.

332{ return -9999.; }

◆ getNInnerMostPixelSplitEndcapHits() [1/2]

float IDTPM::getNInnerMostPixelSplitEndcapHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NInnerMostPixelSplitEndcapHits.

Definition at line 539 of file TrackParametersHelper.h.

539 {
540 uint8_t iInnerMostPixelSplitEndcapHits(0);
541 return p.summaryValue( iInnerMostPixelSplitEndcapHits, xAOD::numberOfInnermostPixelLayerSplitEndcapHits ) ?
542 float( iInnerMostPixelSplitEndcapHits ) : -9999.;
543 }
@ numberOfInnermostPixelLayerSplitEndcapHits
number of Pixel 0th layer endcap hits shared by several tracks.

◆ getNInnerMostPixelSplitEndcapHits() [2/2]

float IDTPM::getNInnerMostPixelSplitEndcapHits ( const xAOD::TruthParticle & )
inline

Definition at line 544 of file TrackParametersHelper.h.

544{ return -9999.; }

◆ getNInnerMostPixelSplitHits() [1/2]

float IDTPM::getNInnerMostPixelSplitHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NInnerMostPixelSplitHits.

Definition at line 527 of file TrackParametersHelper.h.

527 {
528 uint8_t iInnerMostPixelSplitHits(0);
529 return p.summaryValue( iInnerMostPixelSplitHits, xAOD::numberOfPixelSplitHits ) ?
530 float( iInnerMostPixelSplitHits ) : -9999.;
531 }
@ numberOfPixelSplitHits
number of Pixel all-layer hits split by cluster splitting [unit8_t].

◆ getNInnerMostPixelSplitHits() [2/2]

float IDTPM::getNInnerMostPixelSplitHits ( const xAOD::TruthParticle & )
inline

Definition at line 532 of file TrackParametersHelper.h.

532{ return -9999.; }

◆ getNNextToInnerMostPixelEndcapHits() [1/2]

float IDTPM::getNNextToInnerMostPixelEndcapHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nNextToInnerMostPixelEndcapHits.

Definition at line 317 of file TrackParametersHelper.h.

317 {
318 uint8_t iNextToInnerMostPixelEndcapHits(0);
319 return p.summaryValue( iNextToInnerMostPixelEndcapHits, xAOD::numberOfNextToInnermostPixelLayerEndcapHits ) ?
320 float( iNextToInnerMostPixelEndcapHits ) : -9999.;
321 }
@ numberOfNextToInnermostPixelLayerEndcapHits
these are the hits in the 0.5th and 1st pixel layer endcap rings [unit8_t].

◆ getNNextToInnerMostPixelEndcapHits() [2/2]

float IDTPM::getNNextToInnerMostPixelEndcapHits ( const xAOD::TruthParticle & )
inline

Definition at line 322 of file TrackParametersHelper.h.

322{ return -9999.; }

◆ getNNextToInnerMostPixelHits() [1/2]

float IDTPM::getNNextToInnerMostPixelHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nNextToInnerMostPixelHits.

Definition at line 307 of file TrackParametersHelper.h.

307 {
308 uint8_t iNextToInnerMostPixelHits(0);
309 return p.summaryValue( iNextToInnerMostPixelHits, xAOD::numberOfNextToInnermostPixelLayerHits ) ?
310 float( iNextToInnerMostPixelHits ) : -9999.;
311 }
@ numberOfNextToInnermostPixelLayerHits
these are the hits in the 1st pixel barrel layer

◆ getNNextToInnerMostPixelHits() [2/2]

float IDTPM::getNNextToInnerMostPixelHits ( const xAOD::TruthParticle & )
inline

Definition at line 312 of file TrackParametersHelper.h.

312{ return -9999.; }

◆ getNPixelContribLayers() [1/2]

float IDTPM::getNPixelContribLayers ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NPixelContribLayers.

Definition at line 587 of file TrackParametersHelper.h.

587 {
588 uint8_t iNPixelContribLayers(0);
589 return p.summaryValue( iNPixelContribLayers, xAOD::numberOfContribPixelLayers ) ?
590 float( iNPixelContribLayers ) : -9999.;
591 }
@ numberOfContribPixelLayers
number of contributing layers of the pixel detector [unit8_t].

◆ getNPixelContribLayers() [2/2]

float IDTPM::getNPixelContribLayers ( const xAOD::TruthParticle & )
inline

Definition at line 592 of file TrackParametersHelper.h.

592{ return -9999.; }

◆ getNPixelDeadSensors() [1/2]

float IDTPM::getNPixelDeadSensors ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NPixelDeadSensors.

Definition at line 635 of file TrackParametersHelper.h.

635 {
636 uint8_t iNPixelDeadSensors(0);
637 return p.summaryValue( iNPixelDeadSensors, xAOD::numberOfPixelDeadSensors ) ?
638 float( iNPixelDeadSensors ) : -9999.;
639 }
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].

◆ getNPixelDeadSensors() [2/2]

float IDTPM::getNPixelDeadSensors ( const xAOD::TruthParticle & )
inline

Definition at line 640 of file TrackParametersHelper.h.

640{ return -9999.; }

◆ getNPixelGangedHits() [1/2]

float IDTPM::getNPixelGangedHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NPixelGangedHits.

Definition at line 611 of file TrackParametersHelper.h.

611 {
612 uint8_t iNPixelGangedHits(0);
613 return p.summaryValue( iNPixelGangedHits, xAOD::numberOfGangedPixels ) ?
614 float( iNPixelGangedHits ) : -9999.;
615 }
@ numberOfGangedPixels
number of pixels which have a ganged ambiguity [unit8_t].

◆ getNPixelGangedHits() [2/2]

float IDTPM::getNPixelGangedHits ( const xAOD::TruthParticle & )
inline

Definition at line 616 of file TrackParametersHelper.h.

616{ return -9999.; }

◆ getNPixelGangedHitsFlaggedFakes() [1/2]

float IDTPM::getNPixelGangedHitsFlaggedFakes ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NPixelGangedHitsFlaggedFakes.

Definition at line 623 of file TrackParametersHelper.h.

623 {
624 uint8_t iNPixelGangedHitsFlaggedFakes(0);
625 return p.summaryValue( iNPixelGangedHitsFlaggedFakes, xAOD::numberOfGangedFlaggedFakes ) ?
626 float( iNPixelGangedHitsFlaggedFakes ) : -9999.;
627 }
@ numberOfGangedFlaggedFakes
number of Ganged Pixels flagged as fakes [unit8_t].

◆ getNPixelGangedHitsFlaggedFakes() [2/2]

float IDTPM::getNPixelGangedHitsFlaggedFakes ( const xAOD::TruthParticle & )
inline

Definition at line 628 of file TrackParametersHelper.h.

628{ return -9999.; }

◆ getNPixelHits() [1/2]

float IDTPM::getNPixelHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nPixelHits.

Definition at line 347 of file TrackParametersHelper.h.

347 {
348 uint8_t iPixelHits(0);
349 return p.summaryValue( iPixelHits, xAOD::numberOfPixelHits ) ?
350 float( iPixelHits ) : -9999.;
351 }
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].

◆ getNPixelHits() [2/2]

float IDTPM::getNPixelHits ( const xAOD::TruthParticle & )
inline

Definition at line 352 of file TrackParametersHelper.h.

352{ return -9999.; }

◆ getNPixelHoles() [1/2]

float IDTPM::getNPixelHoles ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nPixelHoles.

Definition at line 357 of file TrackParametersHelper.h.

357 {
358 uint8_t iPixHoles(0);
359 return p.summaryValue( iPixHoles, xAOD::numberOfPixelHoles ) ?
360 float( iPixHoles ) : -9999.;
361 }
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].

◆ getNPixelHoles() [2/2]

float IDTPM::getNPixelHoles ( const xAOD::TruthParticle & )
inline

Definition at line 362 of file TrackParametersHelper.h.

362{ return -9999.; }

◆ getNPixelOutliers() [1/2]

float IDTPM::getNPixelOutliers ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NPixelOutliers.

Definition at line 575 of file TrackParametersHelper.h.

575 {
576 uint8_t iNPixelOutliers(0);
577 return p.summaryValue( iNPixelOutliers, xAOD::numberOfPixelOutliers ) ?
578 float( iNPixelOutliers ) : -9999.;
579 }
@ numberOfPixelOutliers
these are the pixel outliers, including the b-layer [unit8_t].

◆ getNPixelOutliers() [2/2]

float IDTPM::getNPixelOutliers ( const xAOD::TruthParticle & )
inline

Definition at line 580 of file TrackParametersHelper.h.

580{ return -9999.; }

◆ getNPixelSharedHits() [1/2]

float IDTPM::getNPixelSharedHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nPixelSharedHits.

Definition at line 367 of file TrackParametersHelper.h.

367 {
368 uint8_t iPixelShared(0);
369 return p.summaryValue( iPixelShared, xAOD::numberOfPixelSharedHits ) ?
370 float( iPixelShared ) : -9999.;
371 }
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].

◆ getNPixelSharedHits() [2/2]

float IDTPM::getNPixelSharedHits ( const xAOD::TruthParticle & )
inline

Definition at line 372 of file TrackParametersHelper.h.

372{ return -9999.; }

◆ getNPixelSplitHits() [1/2]

float IDTPM::getNPixelSplitHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NPixelSplitHits.

Definition at line 599 of file TrackParametersHelper.h.

599 {
600 uint8_t iNPixelSplitHits(0);
601 return p.summaryValue( iNPixelSplitHits, xAOD::numberOfPixelSplitHits ) ?
602 float( iNPixelSplitHits ) : -9999.;
603 }

◆ getNPixelSplitHits() [2/2]

float IDTPM::getNPixelSplitHits ( const xAOD::TruthParticle & )
inline

Definition at line 604 of file TrackParametersHelper.h.

604{ return -9999.; }

◆ getNSCTDeadSensors() [1/2]

float IDTPM::getNSCTDeadSensors ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NSCTDeadSensors.

Definition at line 671 of file TrackParametersHelper.h.

671 {
672 uint8_t iNSCTDeadSensors(0);
673 return p.summaryValue( iNSCTDeadSensors, xAOD::numberOfSCTDeadSensors ) ?
674 float( iNSCTDeadSensors ) : -9999.;
675 }
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].

◆ getNSCTDeadSensors() [2/2]

float IDTPM::getNSCTDeadSensors ( const xAOD::TruthParticle & )
inline

Definition at line 676 of file TrackParametersHelper.h.

676{ return -9999.; }

◆ getNSCTDoubleHoles() [1/2]

float IDTPM::getNSCTDoubleHoles ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NSCTDoubleHoles.

Definition at line 659 of file TrackParametersHelper.h.

659 {
660 uint8_t iNSCTDoubleHoles(0);
661 return p.summaryValue( iNSCTDoubleHoles, xAOD::numberOfSCTDoubleHoles ) ?
662 float( iNSCTDoubleHoles ) : -9999.;
663 }
@ numberOfSCTDoubleHoles
number of Holes in both sides of a SCT module [unit8_t].

◆ getNSCTDoubleHoles() [2/2]

float IDTPM::getNSCTDoubleHoles ( const xAOD::TruthParticle & )
inline

Definition at line 664 of file TrackParametersHelper.h.

664{ return -9999.; }

◆ getNSCTHits() [1/2]

float IDTPM::getNSCTHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nSCTHits.

Definition at line 386 of file TrackParametersHelper.h.

386 {
387 uint8_t iSctHits(0);
388 return p.summaryValue( iSctHits, xAOD::numberOfSCTHits ) ?
389 float( iSctHits ) : -9999.;
390 }
@ numberOfSCTHits
number of hits in SCT [unit8_t].

◆ getNSCTHits() [2/2]

float IDTPM::getNSCTHits ( const xAOD::TruthParticle & )
inline

Definition at line 391 of file TrackParametersHelper.h.

391{ return -9999.; }

◆ getNSCTHoles() [1/2]

float IDTPM::getNSCTHoles ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nSCTHoles.

Definition at line 396 of file TrackParametersHelper.h.

396 {
397 uint8_t iSctHoles(0);
398 return p.summaryValue( iSctHoles, xAOD::numberOfSCTHoles ) ?
399 float( iSctHoles ) : -9999.;
400 }
@ numberOfSCTHoles
number of SCT holes [unit8_t].

◆ getNSCTHoles() [2/2]

float IDTPM::getNSCTHoles ( const xAOD::TruthParticle & )
inline

Definition at line 401 of file TrackParametersHelper.h.

401{ return -9999.; }

◆ getNSCTOutliers() [1/2]

float IDTPM::getNSCTOutliers ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of NSCTOutliers.

Definition at line 647 of file TrackParametersHelper.h.

647 {
648 uint8_t iNSCTOutliers(0);
649 return p.summaryValue( iNSCTOutliers, xAOD::numberOfSCTOutliers ) ?
650 float( iNSCTOutliers ) : -9999.;
651 }
@ numberOfSCTOutliers
number of SCT outliers [unit8_t].

◆ getNSCTOutliers() [2/2]

float IDTPM::getNSCTOutliers ( const xAOD::TruthParticle & )
inline

Definition at line 652 of file TrackParametersHelper.h.

652{ return -9999.; }

◆ getNSCTSharedHits() [1/2]

float IDTPM::getNSCTSharedHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nSCTSharedHits.

Definition at line 406 of file TrackParametersHelper.h.

406 {
407 uint8_t iSCTShared(0);
408 return p.summaryValue( iSCTShared, xAOD::numberOfSCTSharedHits ) ?
409 float( iSCTShared ) : -9999.;
410 }
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].

◆ getNSCTSharedHits() [2/2]

float IDTPM::getNSCTSharedHits ( const xAOD::TruthParticle & )
inline

Definition at line 411 of file TrackParametersHelper.h.

411{ return -9999.; }

◆ getNSiHits() [1/2]

float IDTPM::getNSiHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nSiHits.

Definition at line 416 of file TrackParametersHelper.h.

416 {
417 if( nPixelHits(p)<0 or nSCTHits(p)<0 ) return -9999.;
418 float pnPixelHits = ( nPixelHits(p) >= 0 ) ? nPixelHits(p) : 0.;
419 float pnSCTHits = ( nSCTHits(p) >= 0 ) ? nSCTHits(p) : 0.;
420 return ( pnPixelHits + pnSCTHits );
421 }
float nSCTHits(const U &p)
float nPixelHits(const U &p)

◆ getNSiHits() [2/2]

float IDTPM::getNSiHits ( const xAOD::TruthParticle & p)
inline

Definition at line 422 of file TrackParametersHelper.h.

422 {
423 static thread_local SG::ConstAccessor<float> prodNSiHits( "nSilHits" );
424 return prodNSiHits.isAvailable(p) ? prodNSiHits(p) : -9999.;
425 }

◆ getNTRTHighThresholdHits() [1/2]

float IDTPM::getNTRTHighThresholdHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nTRTHighThresholdHits.

Definition at line 470 of file TrackParametersHelper.h.

470 {
471 uint8_t iTrtHighThresholdHits(0);
472 return p.summaryValue( iTrtHighThresholdHits, xAOD::numberOfTRTHighThresholdHitsTotal ) ?
473 float( iTrtHighThresholdHits ) : -9999.;
474 }
@ numberOfTRTHighThresholdHitsTotal
total number of TRT hits which pass the high threshold [unit8_t].

◆ getNTRTHighThresholdHits() [2/2]

float IDTPM::getNTRTHighThresholdHits ( const xAOD::TruthParticle & )
inline

Definition at line 475 of file TrackParametersHelper.h.

475{ return -9999.; }

◆ getNTRTHighThresholdHitsAr() [1/2]

float IDTPM::getNTRTHighThresholdHitsAr ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nTRTHighThresholdHitsAr.

Definition at line 490 of file TrackParametersHelper.h.

490 {
491 if( nTRTHighThresholdHits(p)<0 or nTRTHighThresholdHitsXe(p)<0 ) return -9999.;
492 float pnTRTHighThresholdHits = ( nTRTHighThresholdHits(p) >= 0 ) ? nTRTHighThresholdHits(p) : 0.;
493 float pnTRTHighThresholdHitsXe = ( nTRTHighThresholdHitsXe(p) >= 0 ) ? nTRTHighThresholdHitsXe(p) : 0.;
494 return ( pnTRTHighThresholdHits - pnTRTHighThresholdHitsXe );
495 }
float nTRTHighThresholdHits(const U &p)
float nTRTHighThresholdHitsXe(const U &p)

◆ getNTRTHighThresholdHitsAr() [2/2]

float IDTPM::getNTRTHighThresholdHitsAr ( const xAOD::TruthParticle & )
inline

Definition at line 496 of file TrackParametersHelper.h.

496{ return -9999.; }

◆ getNTRTHighThresholdHitsXe() [1/2]

float IDTPM::getNTRTHighThresholdHitsXe ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nTRTHighThresholdHitsXe.

Definition at line 480 of file TrackParametersHelper.h.

480 {
481 uint8_t iTrtHighThresholdHitsXe(0);
482 return p.summaryValue( iTrtHighThresholdHitsXe, xAOD::numberOfTRTHighThresholdHits ) ?
483 float( iTrtHighThresholdHitsXe ) : -9999.;
484 }
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].

◆ getNTRTHighThresholdHitsXe() [2/2]

float IDTPM::getNTRTHighThresholdHitsXe ( const xAOD::TruthParticle & )
inline

Definition at line 485 of file TrackParametersHelper.h.

485{ return -9999.; }

◆ getNTRTHits() [1/2]

float IDTPM::getNTRTHits ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nTRTHits.

Definition at line 439 of file TrackParametersHelper.h.

439 {
440 uint8_t iTrtHits(0);
441 return p.summaryValue( iTrtHits, xAOD::numberOfTRTHits ) ?
442 float( iTrtHits ) : -9999.;
443 }
@ numberOfTRTHits
number of TRT hits [unit8_t].

◆ getNTRTHits() [2/2]

float IDTPM::getNTRTHits ( const xAOD::TruthParticle & )
inline

Definition at line 444 of file TrackParametersHelper.h.

444{ return -9999.; }

◆ getNTRTHitsAr() [1/2]

float IDTPM::getNTRTHitsAr ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nTRTHitsAr.

Definition at line 459 of file TrackParametersHelper.h.

459 {
460 if( nTRTHits(p)<0 or nTRTHitsXe(p)<0 ) return -9999.;
461 float pnTRTHits = ( nTRTHits(p) >= 0 ) ? nTRTHits(p) : 0.;
462 float pnTRTHitsXe = ( nTRTHitsXe(p) >= 0 ) ? nTRTHitsXe(p) : 0.;
463 return ( pnTRTHits - pnTRTHitsXe );
464 }
float nTRTHits(const U &p)
float nTRTHitsXe(const U &p)

◆ getNTRTHitsAr() [2/2]

float IDTPM::getNTRTHitsAr ( const xAOD::TruthParticle & )
inline

Definition at line 465 of file TrackParametersHelper.h.

465{ return -9999.; }

◆ getNTRTHitsXe() [1/2]

float IDTPM::getNTRTHitsXe ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of nTRTHitsXe.

Definition at line 449 of file TrackParametersHelper.h.

449 {
450 uint8_t iTrtHitsXe(0);
451 return p.summaryValue( iTrtHitsXe, xAOD::numberOfTRTXenonHits ) ?
452 float( iTrtHitsXe ) : -9999.;
453 }
@ numberOfTRTXenonHits
number of TRT hits on track in straws with xenon [unit8_t].

◆ getNTRTHitsXe() [2/2]

float IDTPM::getNTRTHitsXe ( const xAOD::TruthParticle & )
inline

Definition at line 454 of file TrackParametersHelper.h.

454{ return -9999.; }

◆ getPhi() [1/2]

float IDTPM::getPhi ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of phi.

Definition at line 55 of file TrackParametersHelper.h.

55{ return p.phi0(); }

◆ getPhi() [2/2]

float IDTPM::getPhi ( const xAOD::TruthParticle & p)
inline

Definition at line 56 of file TrackParametersHelper.h.

56 {
57 static thread_local SG::ConstAccessor<float> phiAcc("phi");
58 return (phiAcc.isAvailable(p)) ? phiAcc(p) : -9999.;
59 }

◆ getPixeldEdx() [1/2]

float IDTPM::getPixeldEdx ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of pixeldEdx.

Definition at line 377 of file TrackParametersHelper.h.

377 {
378 float iPixeldEdx(0);
379 return p.summaryValue( iPixeldEdx, xAOD::pixeldEdx ) ? iPixeldEdx : -9999.;
380 }
@ pixeldEdx
the dE/dx estimate, calculated using the pixel clusters [?

◆ getPixeldEdx() [2/2]

float IDTPM::getPixeldEdx ( const xAOD::TruthParticle & )
inline

Definition at line 381 of file TrackParametersHelper.h.

381{ return -9999.; }

◆ getProdR() [1/2]

float IDTPM::getProdR ( const xAOD::TrackParticle & )
inline

Accessor utility function for getting the value of R.

Definition at line 87 of file TrackParametersHelper.h.

87{ return -9999.; }

◆ getProdR() [2/2]

float IDTPM::getProdR ( const xAOD::TruthParticle & p)
inline

Definition at line 88 of file TrackParametersHelper.h.

88 {
89 static thread_local SG::ConstAccessor<float> prodRAcc("prodR");
90 return (prodRAcc.isAvailable(p)) ? prodRAcc(p) : -9999.;
91 }

◆ getProdZ() [1/2]

float IDTPM::getProdZ ( const xAOD::TrackParticle & )
inline

Accessor utility function for getting the value of Z.

Definition at line 96 of file TrackParametersHelper.h.

96{ return -9999.; }

◆ getProdZ() [2/2]

float IDTPM::getProdZ ( const xAOD::TruthParticle & p)
inline

Definition at line 97 of file TrackParametersHelper.h.

97 {
98 static thread_local SG::ConstAccessor<float> prodZAcc("prodZ");
99 return (prodZAcc.isAvailable(p)) ? prodZAcc(p) : -9999.;
100 }

◆ getPTError() [1/2]

float IDTPM::getPTError ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the Pt error.

Definition at line 198 of file TrackParametersHelper.h.

198 {
199 std::vector< float > covs = covVec(p);
200 if( covs.size() < 15 ) {
201 throw std::runtime_error(
202 "TrackParticle without covariance matrix for defining parameters or the covariance matrix is wrong dimensionality.");
203 return 0.;
204 }
205 if( qOverP(p) <= 0. ) return 0.;
206 float diff_qp = - pT(p) / std::fabs( qOverP(p) );
207 float diff_theta = theta(p) == 0. ? 0. : pT(p) / std::tan( theta(p) );
208 float pTerr2 = diff_qp * (diff_qp * covs[14] + diff_theta * covs[13]) + diff_theta * diff_theta * covs[9];
209 return pTerr2 > 0. ? std::sqrt( pTerr2 ) : 0.;
210 }
float pT(const U &p)
Accessor utility function for getting the value of pT.
float qOverP(const U &p)
std::vector< float > covVec(const U &p)

◆ getPTError() [2/2]

float IDTPM::getPTError ( const xAOD::TruthParticle & )
inline

Definition at line 211 of file TrackParametersHelper.h.

211{ return 0.; }

◆ getQoverP() [1/2]

float IDTPM::getQoverP ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of qOverP.

Definition at line 105 of file TrackParametersHelper.h.

105{ return p.qOverP(); }

◆ getQoverP() [2/2]

float IDTPM::getQoverP ( const xAOD::TruthParticle & p)
inline

Definition at line 106 of file TrackParametersHelper.h.

106 {
107 static thread_local SG::ConstAccessor<float> qOverPAcc("qOverP");
108 return (qOverPAcc.isAvailable(p)) ? qOverPAcc(p) : -9999.;
109 }

◆ getQOverPTError() [1/2]

float IDTPM::getQOverPTError ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the QOverPt error.

Definition at line 184 of file TrackParametersHelper.h.

184 {
185 float invSinTheta = 1. / std::sin( theta(p) );
186 float cosTheta = std::cos( theta(p) );
187 float qOverPTerr2 =
188 std::pow( error(p, Trk::qOverP) * invSinTheta, 2 )
189 + std::pow( error(p, Trk::theta) * qOverP(p) * cosTheta * std::pow(invSinTheta, 2), 2 )
190 - 2 * qOverP(p) * cosTheta * cov(p, Trk::theta, Trk::qOverP) * std::pow(invSinTheta, 3);
191 return qOverPTerr2 > 0 ? std::sqrt( qOverPTerr2 ) : 0.;
192 }
@ qOverP
perigee
Definition ParamDefs.h:67

◆ getQOverPTError() [2/2]

float IDTPM::getQOverPTError ( const xAOD::TruthParticle & )
inline

Definition at line 193 of file TrackParametersHelper.h.

193{ return 0.; }

◆ getTheta() [1/2]

float IDTPM::getTheta ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of theta.

Definition at line 46 of file TrackParametersHelper.h.

46{ return p.theta(); }

◆ getTheta() [2/2]

float IDTPM::getTheta ( const xAOD::TruthParticle & p)
inline

Definition at line 47 of file TrackParametersHelper.h.

47 {
48 static thread_local SG::ConstAccessor<float> thetaAcc("theta");
49 return (thetaAcc.isAvailable(p)) ? thetaAcc(p) : -9999.;
50 }

◆ getTime() [1/4]

float IDTPM::getTime ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the track time.

Definition at line 156 of file TrackParametersHelper.h.

156{ return p.time(); }

◆ getTime() [2/4]

float IDTPM::getTime ( const xAOD::TruthParticle & )
inline

Definition at line 157 of file TrackParametersHelper.h.

157{ return -9999.; }

◆ getTime() [3/4]

float IDTPM::getTime ( const xAOD::TruthVertex & v)
inline

Definition at line 62 of file VertexParametersHelper.h.

62{ return v.t(); }

◆ getTime() [4/4]

float IDTPM::getTime ( const xAOD::Vertex & v)
inline

Accessor utility function for getting the vertex time.

Definition at line 58 of file VertexParametersHelper.h.

58 {
59 static thread_local SG::ConstAccessor< float > accTime( "time" );
60 return accTime.isAvailable(v) ? accTime(v) : -9999.;
61 }

◆ getTimeErr() [1/2]

float IDTPM::getTimeErr ( const xAOD::TruthVertex & )
inline

Definition at line 94 of file VertexParametersHelper.h.

94{ return 0.; }

◆ getTimeErr() [2/2]

float IDTPM::getTimeErr ( const xAOD::Vertex & v)
inline

Accessor utility function for getting the vertex time resolution.

Definition at line 90 of file VertexParametersHelper.h.

90 {
91 static thread_local SG::ConstAccessor< float > accTimeResol( "timeResolution" );
92 return accTimeResol.isAvailable(v) ? accTimeResol(v) : -9999.;
93 }

◆ getTruthMatchProb() [1/2]

float IDTPM::getTruthMatchProb ( const xAOD::TrackParticle & track)

getTruthMatchProb

Definition at line 77 of file OfflineObjectDecorHelper.cxx.

77 {
78 static const SG::ConstAccessor< float > truthMatchProbabilityAcc( "truthMatchProbability" );
79 float prob = truthMatchProbabilityAcc.withDefault( track, -1 );
80 if( std::isnan(prob) ) return -1;
81 return prob;
82 }

◆ getTruthMatchProb() [2/2]

float IDTPM::getTruthMatchProb ( const xAOD::TruthParticle & )
inline

Definition at line 95 of file OfflineObjectDecorHelper.h.

95{ return -1.; }; // dummy - to avoid compilation errors

◆ getTruthOrigin() [1/2]

int IDTPM::getTruthOrigin ( const xAOD::TrackParticle & )
inline

Accessor utility function for getting the value of truthOrigin.

Definition at line 277 of file TrackParametersHelper.h.

277{ return -9999; }

◆ getTruthOrigin() [2/2]

int IDTPM::getTruthOrigin ( const xAOD::TruthParticle & p)
inline

Definition at line 278 of file TrackParametersHelper.h.

278 {
279 SG::ConstAccessor<int> origin( "Truth_truthOrigin" );
280 return origin.isAvailable(p) ? origin(p) : -9999;
281 }

◆ getTruthType() [1/2]

int IDTPM::getTruthType ( const xAOD::TrackParticle & )
inline

Accessor utility function for getting the value of truthType.

Definition at line 268 of file TrackParametersHelper.h.

268{ return -9999; }

◆ getTruthType() [2/2]

int IDTPM::getTruthType ( const xAOD::TruthParticle & p)
inline

Definition at line 269 of file TrackParametersHelper.h.

269 {
270 SG::ConstAccessor<int> type( "Truth_truthType" );
271 return type.isAvailable(p) ? type(p) : -9999;
272 }

◆ getVertexTracksAndWeights() [1/2]

bool IDTPM::getVertexTracksAndWeights ( const xAOD::TruthVertex & ,
std::vector< const xAOD::TruthParticle * > & ,
std::vector< float > & ,
const std::vector< const xAOD::TruthParticle * > & = {},
bool = false )
inline

Definition at line 146 of file OfflineObjectDecorHelper.h.

149 {},
150 bool /*useSelected*/ = false ) { return true; } // TODO: Change to get (outgoing?) truth particles

◆ getVertexTracksAndWeights() [2/2]

bool IDTPM::getVertexTracksAndWeights ( const xAOD::Vertex & vtx,
std::vector< const xAOD::TrackParticle * > & vtxTracks,
std::vector< float > & vtxTrackWeights,
const std::vector< const xAOD::TrackParticle * > & selTracks,
bool useSelected )

getVertexTracksAndWeights

For vertices (truth and reco) get vertex-associated tracks and their weights.

clear output vectors

dummy vertices -> no associated tracks. return

getting associated tracks and track weights

check if sizes match

Loop over associated tracks

skipping non-valid track ElementLinks

if requested, skip if associated track is not in selected track vector

Filling associated track and track weight vectors

Definition at line 108 of file OfflineObjectDecorHelper.cxx.

113 {
114 bool success( true );
115
117 vtxTracks.clear();
118 vtxTrackWeights.clear();
119
121 if( vtx.vertexType() == xAOD::VxType::NoVtx ) return success;
122
124 size_t nTracks = vtx.nTrackParticles();
126 std::vector< float > wVec = vtx.trackWeights();
127
129 if( not( nTracks == elVec.size() and nTracks == wVec.size() ) ) return false; // shouldn't happen
130
132 for( size_t it=0 ; it<nTracks ; it++ ) {
134 if( not elVec[ it ].isValid() ) {
135 success = false; // shouldn't happen
136 continue;
137 }
138
139 const xAOD::TrackParticle* thisTrk = *elVec[ it ];
140 float thisTrkW = wVec[ it ];
141
143 if( useSelected and
144 std::find( selTracks.begin(), selTracks.end(), thisTrk ) == selTracks.end() ) continue;
145
147 vtxTracks.push_back( thisTrk );
148 vtxTrackWeights.push_back( thisTrkW );
149 } // close associated tracks loop
150
151 return success;
152 }
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition AtlasPID.h:878
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
const TrackParticleLinks_t & trackParticleLinks() const
Get all the particles associated with the vertex.
std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t
Type for the associated track particles.
Definition Vertex_v1.h:128
VxType::VertexType vertexType() const
The type of the vertex.
const std::vector< float > & trackWeights() const
Get all the track weights.
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
TrackParticle_v1 TrackParticle
Reference the current persistent version:

◆ getVertexType() [1/2]

int IDTPM::getVertexType ( const xAOD::TruthVertex & )
inline

Definition at line 67 of file VertexParametersHelper.h.

67{ return -1; }

◆ getVertexType() [2/2]

int IDTPM::getVertexType ( const xAOD::Vertex & v)
inline

Accessor utility function for getting the vertex type.

Definition at line 66 of file VertexParametersHelper.h.

66{ return int( v.vertexType() ); }

◆ getZ0() [1/2]

float IDTPM::getZ0 ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the value of z0.

Definition at line 66 of file TrackParametersHelper.h.

66{ return p.z0(); }

◆ getZ0() [2/2]

float IDTPM::getZ0 ( const xAOD::TruthParticle & p)
inline

Definition at line 67 of file TrackParametersHelper.h.

67 {
68 static thread_local SG::ConstAccessor<float> z0Acc("z0");
69 return (z0Acc.isAvailable(p)) ? z0Acc(p) : -9999.;
70 }

◆ getZ0SinThetaError() [1/2]

float IDTPM::getZ0SinThetaError ( const xAOD::TrackParticle & p)
inline

Accessor utility function for getting the z0SinTheta error.

Definition at line 225 of file TrackParametersHelper.h.

225 {
226 float z0sinErr2 =
227 std::pow( error(p, Trk::z0) * std::sin( theta(p) ), 2 )
228 + std::pow( z0(p) * error(p, Trk::theta) * std::cos( theta(p) ), 2)
229 + 2 * z0(p) * std::sin( theta(p) ) * std::cos( theta(p) ) * cov(p, Trk::z0, Trk::theta);
230 return z0sinErr2 > 0. ? std::sqrt( z0sinErr2 ) : 0.;
231 }
float z0(const U &p)
@ z0
Definition ParamDefs.h:64

◆ getZ0SinThetaError() [2/2]

float IDTPM::getZ0SinThetaError ( const xAOD::TruthParticle & )
inline

Definition at line 232 of file TrackParametersHelper.h.

232{ return 0.; }

◆ hasValidTime()

template<class U>
uint8_t IDTPM::hasValidTime ( const U & p)
inline

Definition at line 153 of file TrackParametersHelper.h.

153{ return getHasValidTime(p); }
uint8_t getHasValidTime(const xAOD::TrackParticle &p)
Accessor utility function for getting the track hasValidTime.

◆ isHadron()

template<class U>
float IDTPM::isHadron ( const U & p)
inline

Definition at line 258 of file TrackParametersHelper.h.

258{ return getIsHadron( p ); }
float getIsHadron(const xAOD::TrackParticle &)
Accessor utility function for getting the value of isHadron.

◆ isPion()

template<class U>
float IDTPM::isPion ( const U & p)
inline

Definition at line 264 of file TrackParametersHelper.h.

264{ return getIsPion( p ); }
float getIsPion(const xAOD::TrackParticle &)
Accessor utility function for getting the value of isPion.

◆ isUnlinkedObject()

template<typename container_t>
bool IDTPM::isUnlinkedObject ( const xAOD::TrackParticle & track,
const std::string & decoName )

Templated method to check if a track is not linked to an object.

Definition at line 37 of file OfflineObjectDecorHelper.h.

38 {
39 using elementLink_t = ElementLink< container_t >;
40 const SG::ConstAccessor< elementLink_t > acc( decoName );
41 return ( not acc.isAvailable( track ) );
42 }

◆ isUnlinkedTruth() [1/2]

bool IDTPM::isUnlinkedTruth ( const xAOD::TrackParticle & track)

isUnlinkedTruth

For truth particles.

Definition at line 69 of file OfflineObjectDecorHelper.cxx.

69 {
71 track, "truthParticleLink" );
72 return ( truth == nullptr );
73 }
TruthParticle_v1 TruthParticle
Typedef to implementation.

◆ isUnlinkedTruth() [2/2]

bool IDTPM::isUnlinkedTruth ( const xAOD::TruthParticle & )
inline

Definition at line 92 of file OfflineObjectDecorHelper.h.

92{ return false; }; // dummy - to avoid compilation errors

◆ maxD0SelVec() [1/2]

bool IDTPM::maxD0SelVec ( const xAOD::TrackParticle & track,
const std::vector< float > & maxD0,
const std::vector< float > & etaBins )
inline

Definition at line 125 of file OfflineObjectDecorHelper.h.

127 { return std::fabs( d0(track) ) <= maxD0.at( getEtaBin( track, etaBins ) );};
unsigned int getEtaBin(const PARTICLE &p, const std::vector< float > &etaBins)
float d0(const U &p)

◆ maxD0SelVec() [2/2]

bool IDTPM::maxD0SelVec ( const xAOD::TruthParticle & ,
const std::vector< float > & ,
const std::vector< float > &  )
inline

Definition at line 128 of file OfflineObjectDecorHelper.h.

130 { return false; }; // dummy - to avoid compilation errors;

◆ maxZ0SelVec() [1/2]

bool IDTPM::maxZ0SelVec ( const xAOD::TrackParticle & track,
const std::vector< float > & maxZ0,
const std::vector< float > & etaBins )
inline

Definition at line 132 of file OfflineObjectDecorHelper.h.

134 { return std::fabs( z0(track) ) <= maxZ0.at( getEtaBin( track, etaBins ) );};

◆ maxZ0SelVec() [2/2]

bool IDTPM::maxZ0SelVec ( const xAOD::TruthParticle & ,
const std::vector< float > & ,
const std::vector< float > &  )
inline

Definition at line 135 of file OfflineObjectDecorHelper.h.

137 { return false; }; // dummy - to avoid compilation errors;

◆ minPtSelVec() [1/2]

bool IDTPM::minPtSelVec ( const xAOD::TrackParticle & track,
const std::vector< float > & minPt,
const std::vector< float > & etaBins )
inline

Definition at line 118 of file OfflineObjectDecorHelper.h.

120 { return pT(track) >= minPt.at( getEtaBin( track, etaBins ) );};

◆ minPtSelVec() [2/2]

bool IDTPM::minPtSelVec ( const xAOD::TruthParticle & ,
const std::vector< float > & ,
const std::vector< float > &  )
inline

Definition at line 121 of file OfflineObjectDecorHelper.h.

123 { return false; }; // dummy - to avoid compilation errors;

◆ ndof()

template<class U>
float IDTPM::ndof ( const U & p)
inline

Definition at line 134 of file TrackParametersHelper.h.

134{ return getNdof(p); }
float getNdof(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of dof.

◆ nExpectedInnerMostPixelHits()

template<class U>
float IDTPM::nExpectedInnerMostPixelHits ( const U & p)
inline

Definition at line 558 of file TrackParametersHelper.h.

558{ return getNExpectedInnerMostPixelHits( p ); }
float getNExpectedInnerMostPixelHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NExpectedInnerMostPixelHits.

◆ nExpectedNextToInnerMostPixelHits()

template<class U>
float IDTPM::nExpectedNextToInnerMostPixelHits ( const U & p)
inline

Definition at line 570 of file TrackParametersHelper.h.

float getNExpectedNextToInnerMostPixelHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NExpectedNextToInnerMostPixelHits.

◆ nHitsSelVec()

template<typename PARTICLE>
bool IDTPM::nHitsSelVec ( const PARTICLE & p,
const std::vector< unsigned int > & minHits,
const std::vector< float > & etaBins )
inline

Definition at line 107 of file OfflineObjectDecorHelper.h.

109 {return nSiHits(p) >= minHits.at( getEtaBin( p, etaBins ) );};
float nSiHits(const U &p)

◆ nHitsSelVec< xAOD::TrackParticle >()

template bool IDTPM::nHitsSelVec< xAOD::TrackParticle > ( const xAOD::TrackParticle & track,
const std::vector< unsigned int > & minHits,
const std::vector< float > & etaBins )

◆ nHitsSelVec< xAOD::TruthParticle >()

template bool IDTPM::nHitsSelVec< xAOD::TruthParticle > ( const xAOD::TruthParticle & truth,
const std::vector< unsigned int > & minHits,
const std::vector< float > & etaBins )

◆ nInnerMostPixelEndcapHits()

template<class U>
float IDTPM::nInnerMostPixelEndcapHits ( const U & p)
inline

Definition at line 304 of file TrackParametersHelper.h.

304{ return getNInnerMostPixelEndcapHits( p ); }
float getNInnerMostPixelEndcapHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nInnerMostPixelEndcapHits.

◆ nInnerMostPixelEndcapOutliers()

template<class U>
float IDTPM::nInnerMostPixelEndcapOutliers ( const U & p)
inline

Definition at line 522 of file TrackParametersHelper.h.

float getNInnerMostPixelEndcapOutliers(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NInnerMostPixelEndcapOutliers.

◆ nInnerMostPixelHits()

template<class U>
float IDTPM::nInnerMostPixelHits ( const U & p)
inline

Definition at line 294 of file TrackParametersHelper.h.

294{ return getNInnerMostPixelHits( p ); }
float getNInnerMostPixelHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nInnerMostPixelHits.

◆ nInnerMostPixelOutliers()

template<class U>
float IDTPM::nInnerMostPixelOutliers ( const U & p)
inline

Definition at line 510 of file TrackParametersHelper.h.

510{ return getNInnerMostPixelOutliers( p ); }
float getNInnerMostPixelOutliers(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NInnerMostPixelOutliers.

◆ nInnerMostPixelSharedEndcapHits()

template<class U>
float IDTPM::nInnerMostPixelSharedEndcapHits ( const U & p)
inline

Definition at line 344 of file TrackParametersHelper.h.

float getNInnerMostPixelSharedEndcapHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nInnerMostPixelSharedEndcapHits.

◆ nInnerMostPixelSharedHits()

template<class U>
float IDTPM::nInnerMostPixelSharedHits ( const U & p)
inline

Definition at line 334 of file TrackParametersHelper.h.

334{ return getNInnerMostPixelSharedHits( p ); }
float getNInnerMostPixelSharedHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nInnerMostPixelSharedHits.

◆ nInnerMostPixelSplitEndcapHits()

template<class U>
float IDTPM::nInnerMostPixelSplitEndcapHits ( const U & p)
inline

Definition at line 546 of file TrackParametersHelper.h.

float getNInnerMostPixelSplitEndcapHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NInnerMostPixelSplitEndcapHits.

◆ nInnerMostPixelSplitHits()

template<class U>
float IDTPM::nInnerMostPixelSplitHits ( const U & p)
inline

Definition at line 534 of file TrackParametersHelper.h.

534{ return getNInnerMostPixelSplitHits( p ); }
float getNInnerMostPixelSplitHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NInnerMostPixelSplitHits.

◆ nNextToInnerMostPixelEndcapHits()

template<class U>
float IDTPM::nNextToInnerMostPixelEndcapHits ( const U & p)
inline

Definition at line 324 of file TrackParametersHelper.h.

float getNNextToInnerMostPixelEndcapHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nNextToInnerMostPixelEndcapHits.

◆ nNextToInnerMostPixelHits()

template<class U>
float IDTPM::nNextToInnerMostPixelHits ( const U & p)
inline

Definition at line 314 of file TrackParametersHelper.h.

314{ return getNNextToInnerMostPixelHits( p ); }
float getNNextToInnerMostPixelHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nNextToInnerMostPixelHits.

◆ nPixelContribLayers()

template<class U>
float IDTPM::nPixelContribLayers ( const U & p)
inline

Definition at line 594 of file TrackParametersHelper.h.

594{ return getNPixelContribLayers( p ); }
float getNPixelContribLayers(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NPixelContribLayers.

◆ nPixelDeadSensors()

template<class U>
float IDTPM::nPixelDeadSensors ( const U & p)
inline

Definition at line 642 of file TrackParametersHelper.h.

642{ return getNPixelDeadSensors( p ); }
float getNPixelDeadSensors(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NPixelDeadSensors.

◆ nPixelGangedHits()

template<class U>
float IDTPM::nPixelGangedHits ( const U & p)
inline

Definition at line 618 of file TrackParametersHelper.h.

618{ return getNPixelGangedHits( p ); }
float getNPixelGangedHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NPixelGangedHits.

◆ nPixelGangedHitsFlaggedFakes()

template<class U>
float IDTPM::nPixelGangedHitsFlaggedFakes ( const U & p)
inline

Definition at line 630 of file TrackParametersHelper.h.

630{ return getNPixelGangedHitsFlaggedFakes( p ); }
float getNPixelGangedHitsFlaggedFakes(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NPixelGangedHitsFlaggedFakes.

◆ nPixelHits()

template<class U>
float IDTPM::nPixelHits ( const U & p)
inline

Definition at line 354 of file TrackParametersHelper.h.

354{ return getNPixelHits( p ); }
float getNPixelHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nPixelHits.

◆ nPixelHoles()

template<class U>
float IDTPM::nPixelHoles ( const U & p)
inline

Definition at line 364 of file TrackParametersHelper.h.

364{ return getNPixelHoles( p ); }
float getNPixelHoles(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nPixelHoles.

◆ nPixelOutliers()

template<class U>
float IDTPM::nPixelOutliers ( const U & p)
inline

Definition at line 582 of file TrackParametersHelper.h.

582{ return getNPixelOutliers( p ); }
float getNPixelOutliers(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NPixelOutliers.

◆ nPixelSharedHits()

template<class U>
float IDTPM::nPixelSharedHits ( const U & p)
inline

Definition at line 374 of file TrackParametersHelper.h.

374{ return getNPixelSharedHits( p ); }
float getNPixelSharedHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nPixelSharedHits.

◆ nPixelSplitHits()

template<class U>
float IDTPM::nPixelSplitHits ( const U & p)
inline

Definition at line 606 of file TrackParametersHelper.h.

606{ return getNPixelSplitHits( p ); }
float getNPixelSplitHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NPixelSplitHits.

◆ nSCTDeadSensors()

template<class U>
float IDTPM::nSCTDeadSensors ( const U & p)
inline

Definition at line 678 of file TrackParametersHelper.h.

678{ return getNSCTDeadSensors( p ); }
float getNSCTDeadSensors(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NSCTDeadSensors.

◆ nSCTDoubleHoles()

template<class U>
float IDTPM::nSCTDoubleHoles ( const U & p)
inline

Definition at line 666 of file TrackParametersHelper.h.

666{ return getNSCTDoubleHoles( p ); }
float getNSCTDoubleHoles(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NSCTDoubleHoles.

◆ nSCTHits()

template<class U>
float IDTPM::nSCTHits ( const U & p)
inline

Definition at line 393 of file TrackParametersHelper.h.

393{ return getNSCTHits( p ); }
float getNSCTHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nSCTHits.

◆ nSCTHoles()

template<class U>
float IDTPM::nSCTHoles ( const U & p)
inline

Definition at line 403 of file TrackParametersHelper.h.

403{ return getNSCTHoles( p ); }
float getNSCTHoles(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nSCTHoles.

◆ nSCTOutliers()

template<class U>
float IDTPM::nSCTOutliers ( const U & p)
inline

Definition at line 654 of file TrackParametersHelper.h.

654{ return getNSCTOutliers( p ); }
float getNSCTOutliers(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of NSCTOutliers.

◆ nSCTSharedHits()

template<class U>
float IDTPM::nSCTSharedHits ( const U & p)
inline

Definition at line 413 of file TrackParametersHelper.h.

413{ return getNSCTSharedHits( p ); }
float getNSCTSharedHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nSCTSharedHits.

◆ nSiHits()

template<class U>
float IDTPM::nSiHits ( const U & p)
inline

Definition at line 427 of file TrackParametersHelper.h.

427{ return getNSiHits( p ); }
float getNSiHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nSiHits.

◆ nSiHoles()

template<class U>
float IDTPM::nSiHoles ( const U & p)
inline

Accessor utility function for getting the value of nSiHoles.

Definition at line 431 of file TrackParametersHelper.h.

431 {
432 if( nPixelHoles(p)<0 or nSCTHoles(p)<0 ) return -9999.;
433 float pnPixelHoles = ( nPixelHoles(p) >= 0 ) ? nPixelHoles(p) : 0.;
434 float pnSCTHoles = ( nSCTHoles(p) >= 0 ) ? nSCTHoles(p) : 0.;
435 return ( pnPixelHoles + pnSCTHoles );
436 }
float nPixelHoles(const U &p)
float nSCTHoles(const U &p)

◆ nTRTHighThresholdHits()

template<class U>
float IDTPM::nTRTHighThresholdHits ( const U & p)
inline

Definition at line 477 of file TrackParametersHelper.h.

477{ return getNTRTHighThresholdHits( p ); }
float getNTRTHighThresholdHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nTRTHighThresholdHits.

◆ nTRTHighThresholdHitsAr()

template<class U>
float IDTPM::nTRTHighThresholdHitsAr ( const U & p)
inline

Definition at line 498 of file TrackParametersHelper.h.

498{ return getNTRTHighThresholdHitsAr( p ); }
float getNTRTHighThresholdHitsAr(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nTRTHighThresholdHitsAr.

◆ nTRTHighThresholdHitsXe()

template<class U>
float IDTPM::nTRTHighThresholdHitsXe ( const U & p)
inline

Definition at line 487 of file TrackParametersHelper.h.

487{ return getNTRTHighThresholdHitsXe( p ); }
float getNTRTHighThresholdHitsXe(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nTRTHighThresholdHitsXe.

◆ nTRTHits()

template<class U>
float IDTPM::nTRTHits ( const U & p)
inline

Definition at line 446 of file TrackParametersHelper.h.

446{ return getNTRTHits( p ); }
float getNTRTHits(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nTRTHits.

◆ nTRTHitsAr()

template<class U>
float IDTPM::nTRTHitsAr ( const U & p)
inline

Definition at line 467 of file TrackParametersHelper.h.

467{ return getNTRTHitsAr( p ); }
float getNTRTHitsAr(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nTRTHitsAr.

◆ nTRTHitsXe()

template<class U>
float IDTPM::nTRTHitsXe ( const U & p)
inline

Definition at line 456 of file TrackParametersHelper.h.

456{ return getNTRTHitsXe( p ); }
float getNTRTHitsXe(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of nTRTHitsXe.

◆ phi()

template<class U>
float IDTPM::phi ( const U & p)
inline

Definition at line 61 of file TrackParametersHelper.h.

61{ return getPhi( p ); }
float getPhi(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of phi.

◆ pixeldEdx()

template<class U>
float IDTPM::pixeldEdx ( const U & p)
inline

Definition at line 383 of file TrackParametersHelper.h.

383{ return getPixeldEdx( p ); }
float getPixeldEdx(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of pixeldEdx.

◆ posX()

template<class V>
float IDTPM::posX ( const V & v)
inline

Accessor utility function for getting the value of vertex position x.

Definition at line 29 of file VertexParametersHelper.h.

29{ return v.x(); }

◆ posY()

template<class V>
float IDTPM::posY ( const V & v)
inline

Accessor utility function for getting the value of vertex position y.

Definition at line 33 of file VertexParametersHelper.h.

33{ return v.y(); }

◆ posZ()

template<class V>
float IDTPM::posZ ( const V & v)
inline

Accessor utility function for getting the value of vertex position z.

Definition at line 37 of file VertexParametersHelper.h.

37{ return v.z(); }

◆ prodR()

template<class U>
float IDTPM::prodR ( const U & p)
inline

Definition at line 93 of file TrackParametersHelper.h.

93{ return getProdR( p ); }
float getProdR(const xAOD::TrackParticle &)
Accessor utility function for getting the value of R.

◆ prodZ()

template<class U>
float IDTPM::prodZ ( const U & p)
inline

Definition at line 102 of file TrackParametersHelper.h.

102{ return getProdZ( p ); }
float getProdZ(const xAOD::TrackParticle &)
Accessor utility function for getting the value of Z.

◆ pT()

template<class U>
float IDTPM::pT ( const U & p)
inline

Accessor utility function for getting the value of pT.

Definition at line 33 of file TrackParametersHelper.h.

33{ return p.pt(); }

◆ pTError()

template<class U>
float IDTPM::pTError ( const U & p)
inline

Definition at line 213 of file TrackParametersHelper.h.

213{ return getPTError(p); }
float getPTError(const xAOD::TrackParticle &p)
Accessor utility function for getting the Pt error.

◆ pTsig()

template<class U>
float IDTPM::pTsig ( const U & p)
inline

Accessor utility function for getting the value of signed pT.

Definition at line 37 of file TrackParametersHelper.h.

37 {
38 return p.charge() ? std::copysign( pT(p), p.charge() ) : 0.;
39 }

◆ qOverP()

template<class U>
float IDTPM::qOverP ( const U & p)
inline

Definition at line 111 of file TrackParametersHelper.h.

111{ return getQoverP( p ); }
float getQoverP(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of qOverP.

◆ qOverPT()

template<class U>
float IDTPM::qOverPT ( const U & p)
inline

Definition at line 114 of file TrackParametersHelper.h.

114{ return theta(p)==0 ? -9999. : qOverP(p) / std::sin( theta(p) ); }

◆ qOverPTError()

template<class U>
float IDTPM::qOverPTError ( const U & p)
inline

Definition at line 195 of file TrackParametersHelper.h.

195{ return getQOverPTError(p); }
float getQOverPTError(const xAOD::TrackParticle &p)
Accessor utility function for getting the QOverPt error.

◆ theta()

template<class U>
float IDTPM::theta ( const U & p)
inline

Definition at line 52 of file TrackParametersHelper.h.

52{ return getTheta( p ); }
float getTheta(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of theta.

◆ time()

template<class U>
float IDTPM::time ( const U & p)
inline

Definition at line 159 of file TrackParametersHelper.h.

159{ return getTime(p); }
float getTime(const xAOD::TrackParticle &p)
Accessor utility function for getting the track time.

◆ timeErr()

template<class V>
float IDTPM::timeErr ( const V & v)
inline

Definition at line 96 of file VertexParametersHelper.h.

96{ return getTimeErr(v); }
float getTimeErr(const xAOD::Vertex &v)
Accessor utility function for getting the vertex time resolution.

◆ truthOrigin()

template<class U>
int IDTPM::truthOrigin ( const U & p)
inline

Definition at line 283 of file TrackParametersHelper.h.

283{ return getTruthOrigin( p ); }
int getTruthOrigin(const xAOD::TrackParticle &)
Accessor utility function for getting the value of truthOrigin.

◆ truthType()

template<class U>
int IDTPM::truthType ( const U & p)
inline

Definition at line 274 of file TrackParametersHelper.h.

274{ return getTruthType( p ); }
int getTruthType(const xAOD::TrackParticle &)
Accessor utility function for getting the value of truthType.

◆ vertexType()

template<class V>
int IDTPM::vertexType ( const V & v)
inline

Definition at line 69 of file VertexParametersHelper.h.

69{ return getVertexType(v); }
int getVertexType(const xAOD::Vertex &v)
Accessor utility function for getting the vertex type.

◆ z0()

template<class U>
float IDTPM::z0 ( const U & p)
inline

Definition at line 72 of file TrackParametersHelper.h.

72{ return getZ0( p ); }
float getZ0(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of z0.

◆ z0SinTheta()

template<class U>
float IDTPM::z0SinTheta ( const U & p)
inline

Definition at line 75 of file TrackParametersHelper.h.

75{ return z0( p ) * std::sin( theta( p ) ); }

◆ z0SinThetaError()

template<class U>
float IDTPM::z0SinThetaError ( const U & p)
inline

Definition at line 234 of file TrackParametersHelper.h.

234{ return getZ0SinThetaError(p); }
float getZ0SinThetaError(const xAOD::TrackParticle &p)
Accessor utility function for getting the z0SinTheta error.