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

Athena include(s). More...

Classes

class  ITrackAnalysisDefinitionSvc
class  DeltaRMatchingToolBase
class  DeltaRMatchingTool_trk
class  DeltaRMatchingTool_trkTruth
class  DeltaRMatchingTool_truthTrk
class  EFTrackMatchingTool
class  InDetTrackPerfMonTool
class  IPlotsDefReadTool
class  ITrackMatchingLookup
class  ITrackMatchingTool
class  ITrackSelectionTool
class  IVertexSelectionTool
class  JsonPlotsDefReadTool
class  OfflineElectronDecoratorAlg
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  DuplicateRatePlots
class  EfficiencyPlots
class  FakeRatePlots
class  HitsOnTracksPlots
class  NtracksPlots
class  OfflineElectronPlots
class  ResolutionPlots
class  SummaryPlots
class  TrackParametersPlots
class  VertexParametersPlots
class  PlotsDefinitionSvc
class  RoiSelectionTool
class  SinglePlotDefinition
class  StableDeltaRMatchingTool
class  StableDeltaRMatchingTool_trk
class  StableDeltaRMatchingTool_trkTruth
class  StableDeltaRMatchingTool_truthTrk
class  StableMatchingBase
class  TrackAnalysisCollections
class  TrackAnalysisDefinitionSvc
class  TrackAnalysisInfoWriteTool
class  TrackAnalysisPlotsMgr
class  TrackMatchingLookupBase
class  TrackMatchingLookup_trk
class  TrackMatchingLookup_trkTruth
class  TrackMatchingLookup_truthTrk
class  TrackObjectSelectionTool
class  TrackQualitySelectionTool
struct  exitPoint_t
class  TrackRoiSelectionTool
class  TrackTruthMatchingTool
class  TruthDecoratorAlg
class  TruthQualitySelectionTool
class  TruthTrackMatchingTool
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).

Local include(s).

STL include(s).

xAOD includes

local includes

Athena includes.

gaudi includes

STL include(s)

Local include(s)

Athena includes EDM includes local includes STL includes

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)

Gaudi include(s) Local include(s)

EDM includes local includes STD includes

local includes STL 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::AuxElement::ConstAccessor<VariableType>& >

Definition at line 41 of file SafeDecorator.h.

◆ WriteKeyAccessorPair

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

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:75
void decorate(const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
unsafe fill decoration method for convenience
std::pair< SG::WriteDecorHandleKey< ContainerType >, SG::AuxElement::ConstAccessor< VariableType > > WriteKeyAccessorPair
Useful declarations.

◆ 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 243 of file TrackParametersHelper.h.

243 {
244 return ( eta(p1) - eta(p2) );
245 }
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 237 of file TrackParametersHelper.h.

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

◆ 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 249 of file TrackParametersHelper.h.

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

◆ 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 221 of file TrackParametersHelper.h.

221{ 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 215 of file TrackParametersHelper.h.

215 {
216 float etaErr =
217 error(p, Trk::theta) / ( -2 * std::sin( theta(p) ) * std::cos( theta(p) ) );
218 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 219 of file TrackParametersHelper.h.

219{ 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 254 of file TrackParametersHelper.h.

254{ return 0; }

◆ getIsHadron() [2/2]

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

Definition at line 255 of file TrackParametersHelper.h.

255{ 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 260 of file TrackParametersHelper.h.

260{ return 0; }

◆ getIsPion() [2/2]

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

Definition at line 261 of file TrackParametersHelper.h.

261{ 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 550 of file TrackParametersHelper.h.

550 {
551 uint8_t iNExpectedInnerMostPixelHits(0);
552 return p.summaryValue( iNExpectedInnerMostPixelHits, xAOD::expectInnermostPixelLayerHit ) ?
553 float( iNExpectedInnerMostPixelHits ) : -9999.;
554 }
@ 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 555 of file TrackParametersHelper.h.

555{ 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 562 of file TrackParametersHelper.h.

562 {
563 uint8_t iNExpectedNextToInnerMostPixelHits(0);
564 return p.summaryValue( iNExpectedNextToInnerMostPixelHits, xAOD::expectNextToInnermostPixelLayerHit ) ?
565 float( iNExpectedNextToInnerMostPixelHits ) : -9999.;
566 }
@ 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 567 of file TrackParametersHelper.h.

567{ 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 296 of file TrackParametersHelper.h.

296 {
297 uint8_t iInnerMostPixelEndcapHits(0);
298 return p.summaryValue( iInnerMostPixelEndcapHits, xAOD::numberOfInnermostPixelLayerEndcapHits ) ?
299 float( iInnerMostPixelEndcapHits ) : -9999.;
300 }
@ 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 301 of file TrackParametersHelper.h.

301{ 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 514 of file TrackParametersHelper.h.

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

◆ getNInnerMostPixelEndcapOutliers() [2/2]

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

Definition at line 519 of file TrackParametersHelper.h.

519{ 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 286 of file TrackParametersHelper.h.

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

◆ getNInnerMostPixelHits() [2/2]

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

Definition at line 291 of file TrackParametersHelper.h.

291{ 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 502 of file TrackParametersHelper.h.

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

◆ getNInnerMostPixelOutliers() [2/2]

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

Definition at line 507 of file TrackParametersHelper.h.

507{ 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 336 of file TrackParametersHelper.h.

336 {
337 uint8_t iInnerMostPixelSharedEndcapHits(0);
338 return p.summaryValue( iInnerMostPixelSharedEndcapHits, xAOD::numberOfInnermostPixelLayerSharedEndcapHits ) ?
339 float( iInnerMostPixelSharedEndcapHits ) : -9999.;
340 }
@ 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 341 of file TrackParametersHelper.h.

341{ 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 326 of file TrackParametersHelper.h.

326 {
327 uint8_t iInnerMostPixelSharedHits(0);
328 return p.summaryValue( iInnerMostPixelSharedHits, xAOD::numberOfInnermostPixelLayerSharedHits ) ?
329 float( iInnerMostPixelSharedHits ) : -9999.;
330 }
@ 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 331 of file TrackParametersHelper.h.

331{ 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 538 of file TrackParametersHelper.h.

538 {
539 uint8_t iInnerMostPixelSplitEndcapHits(0);
540 return p.summaryValue( iInnerMostPixelSplitEndcapHits, xAOD::numberOfInnermostPixelLayerSplitEndcapHits ) ?
541 float( iInnerMostPixelSplitEndcapHits ) : -9999.;
542 }
@ 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 543 of file TrackParametersHelper.h.

543{ 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 526 of file TrackParametersHelper.h.

526 {
527 uint8_t iInnerMostPixelSplitHits(0);
528 return p.summaryValue( iInnerMostPixelSplitHits, xAOD::numberOfPixelSplitHits ) ?
529 float( iInnerMostPixelSplitHits ) : -9999.;
530 }
@ 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 531 of file TrackParametersHelper.h.

531{ 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 316 of file TrackParametersHelper.h.

316 {
317 uint8_t iNextToInnerMostPixelEndcapHits(0);
318 return p.summaryValue( iNextToInnerMostPixelEndcapHits, xAOD::numberOfNextToInnermostPixelLayerEndcapHits ) ?
319 float( iNextToInnerMostPixelEndcapHits ) : -9999.;
320 }
@ 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 321 of file TrackParametersHelper.h.

321{ 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 306 of file TrackParametersHelper.h.

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

◆ getNNextToInnerMostPixelHits() [2/2]

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

Definition at line 311 of file TrackParametersHelper.h.

311{ 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 586 of file TrackParametersHelper.h.

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

◆ getNPixelContribLayers() [2/2]

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

Definition at line 591 of file TrackParametersHelper.h.

591{ 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 634 of file TrackParametersHelper.h.

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

◆ getNPixelDeadSensors() [2/2]

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

Definition at line 639 of file TrackParametersHelper.h.

639{ 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 610 of file TrackParametersHelper.h.

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

◆ getNPixelGangedHits() [2/2]

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

Definition at line 615 of file TrackParametersHelper.h.

615{ 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 622 of file TrackParametersHelper.h.

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

◆ getNPixelGangedHitsFlaggedFakes() [2/2]

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

Definition at line 627 of file TrackParametersHelper.h.

627{ 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 346 of file TrackParametersHelper.h.

346 {
347 uint8_t iPixelHits(0);
348 return p.summaryValue( iPixelHits, xAOD::numberOfPixelHits ) ?
349 float( iPixelHits ) : -9999.;
350 }
@ 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 351 of file TrackParametersHelper.h.

351{ 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 356 of file TrackParametersHelper.h.

356 {
357 uint8_t iPixHoles(0);
358 return p.summaryValue( iPixHoles, xAOD::numberOfPixelHoles ) ?
359 float( iPixHoles ) : -9999.;
360 }
@ 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 361 of file TrackParametersHelper.h.

361{ 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 574 of file TrackParametersHelper.h.

574 {
575 uint8_t iNPixelOutliers(0);
576 return p.summaryValue( iNPixelOutliers, xAOD::numberOfPixelOutliers ) ?
577 float( iNPixelOutliers ) : -9999.;
578 }
@ 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 579 of file TrackParametersHelper.h.

579{ 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 366 of file TrackParametersHelper.h.

366 {
367 uint8_t iPixelShared(0);
368 return p.summaryValue( iPixelShared, xAOD::numberOfPixelSharedHits ) ?
369 float( iPixelShared ) : -9999.;
370 }
@ 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 371 of file TrackParametersHelper.h.

371{ 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 598 of file TrackParametersHelper.h.

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

◆ getNPixelSplitHits() [2/2]

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

Definition at line 603 of file TrackParametersHelper.h.

603{ 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 670 of file TrackParametersHelper.h.

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

◆ getNSCTDeadSensors() [2/2]

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

Definition at line 675 of file TrackParametersHelper.h.

675{ 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 658 of file TrackParametersHelper.h.

658 {
659 uint8_t iNSCTDoubleHoles(0);
660 return p.summaryValue( iNSCTDoubleHoles, xAOD::numberOfSCTDoubleHoles ) ?
661 float( iNSCTDoubleHoles ) : -9999.;
662 }
@ 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 663 of file TrackParametersHelper.h.

663{ 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 385 of file TrackParametersHelper.h.

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

◆ getNSCTHits() [2/2]

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

Definition at line 390 of file TrackParametersHelper.h.

390{ 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 395 of file TrackParametersHelper.h.

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

◆ getNSCTHoles() [2/2]

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

Definition at line 400 of file TrackParametersHelper.h.

400{ 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 646 of file TrackParametersHelper.h.

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

◆ getNSCTOutliers() [2/2]

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

Definition at line 651 of file TrackParametersHelper.h.

651{ 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 405 of file TrackParametersHelper.h.

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

◆ getNSCTSharedHits() [2/2]

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

Definition at line 410 of file TrackParametersHelper.h.

410{ 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 415 of file TrackParametersHelper.h.

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

◆ getNSiHits() [2/2]

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

Definition at line 421 of file TrackParametersHelper.h.

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

◆ getNTRTHighThresholdHits() [1/2]

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

Accessor utility function for getting the value of nTRTHighThresholdHits.

Definition at line 469 of file TrackParametersHelper.h.

469 {
470 uint8_t iTrtHighThresholdHits(0);
471 return p.summaryValue( iTrtHighThresholdHits, xAOD::numberOfTRTHighThresholdHitsTotal ) ?
472 float( iTrtHighThresholdHits ) : -9999.;
473 }
@ 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 474 of file TrackParametersHelper.h.

474{ 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 489 of file TrackParametersHelper.h.

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

◆ getNTRTHighThresholdHitsAr() [2/2]

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

Definition at line 495 of file TrackParametersHelper.h.

495{ 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 479 of file TrackParametersHelper.h.

479 {
480 uint8_t iTrtHighThresholdHitsXe(0);
481 return p.summaryValue( iTrtHighThresholdHitsXe, xAOD::numberOfTRTHighThresholdHits ) ?
482 float( iTrtHighThresholdHitsXe ) : -9999.;
483 }
@ 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 484 of file TrackParametersHelper.h.

484{ 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 438 of file TrackParametersHelper.h.

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

◆ getNTRTHits() [2/2]

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

Definition at line 443 of file TrackParametersHelper.h.

443{ 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 458 of file TrackParametersHelper.h.

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

◆ getNTRTHitsAr() [2/2]

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

Definition at line 464 of file TrackParametersHelper.h.

464{ 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 448 of file TrackParametersHelper.h.

448 {
449 uint8_t iTrtHitsXe(0);
450 return p.summaryValue( iTrtHitsXe, xAOD::numberOfTRTXenonHits ) ?
451 float( iTrtHitsXe ) : -9999.;
452 }
@ 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 453 of file TrackParametersHelper.h.

453{ 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 376 of file TrackParametersHelper.h.

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

◆ getPixeldEdx() [2/2]

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

Definition at line 380 of file TrackParametersHelper.h.

380{ 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 }
204 if( qOverP(p) <= 0. ) return 0.;
205 float diff_qp = - pT(p) / std::fabs( qOverP(p) );
206 float diff_theta = theta(p) == 0. ? 0. : pT(p) / std::tan( theta(p) );
207 float pTerr2 = diff_qp * (diff_qp * covs[14] + diff_theta * covs[13]) + diff_theta * diff_theta * covs[9];
208 return pTerr2 > 0. ? std::sqrt( pTerr2 ) : 0.;
209 }
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 210 of file TrackParametersHelper.h.

210{ 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 276 of file TrackParametersHelper.h.

276{ return -9999; }

◆ getTruthOrigin() [2/2]

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

Definition at line 277 of file TrackParametersHelper.h.

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

◆ getTruthType() [1/2]

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

Accessor utility function for getting the value of truthType.

Definition at line 267 of file TrackParametersHelper.h.

267{ return -9999; }

◆ getTruthType() [2/2]

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

Definition at line 268 of file TrackParametersHelper.h.

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

◆ 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 }
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 224 of file TrackParametersHelper.h.

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

◆ getZ0SinThetaError() [2/2]

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

Definition at line 231 of file TrackParametersHelper.h.

231{ 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 257 of file TrackParametersHelper.h.

257{ 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 263 of file TrackParametersHelper.h.

263{ 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 557 of file TrackParametersHelper.h.

557{ 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 569 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 303 of file TrackParametersHelper.h.

303{ 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 521 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 293 of file TrackParametersHelper.h.

293{ 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 509 of file TrackParametersHelper.h.

509{ 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 343 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 333 of file TrackParametersHelper.h.

333{ 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 545 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 533 of file TrackParametersHelper.h.

533{ 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 323 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 313 of file TrackParametersHelper.h.

313{ 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 593 of file TrackParametersHelper.h.

593{ 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 641 of file TrackParametersHelper.h.

641{ 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 617 of file TrackParametersHelper.h.

617{ 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 629 of file TrackParametersHelper.h.

629{ 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 353 of file TrackParametersHelper.h.

353{ 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 363 of file TrackParametersHelper.h.

363{ 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 581 of file TrackParametersHelper.h.

581{ 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 373 of file TrackParametersHelper.h.

373{ 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 605 of file TrackParametersHelper.h.

605{ 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 677 of file TrackParametersHelper.h.

677{ 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 665 of file TrackParametersHelper.h.

665{ 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 392 of file TrackParametersHelper.h.

392{ 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 402 of file TrackParametersHelper.h.

402{ 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 653 of file TrackParametersHelper.h.

653{ 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 412 of file TrackParametersHelper.h.

412{ 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 426 of file TrackParametersHelper.h.

426{ 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 430 of file TrackParametersHelper.h.

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

◆ nTRTHighThresholdHits()

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

Definition at line 476 of file TrackParametersHelper.h.

476{ 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 497 of file TrackParametersHelper.h.

497{ 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 486 of file TrackParametersHelper.h.

486{ 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 445 of file TrackParametersHelper.h.

445{ 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 466 of file TrackParametersHelper.h.

466{ 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 455 of file TrackParametersHelper.h.

455{ 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 382 of file TrackParametersHelper.h.

382{ 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 212 of file TrackParametersHelper.h.

212{ 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 282 of file TrackParametersHelper.h.

282{ 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 273 of file TrackParametersHelper.h.

273{ 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 233 of file TrackParametersHelper.h.

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