ATLAS Offline Software
Classes | Typedefs | Enumerations | Functions
IDTPM Namespace Reference

Athena include(s). More...

Classes

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

Typedefs

typedef TrigCompositeUtils::LinkInfo< TrigRoiDescriptorCollectionroiCollection_t
 
template<class ContainerType , class VariableType >
using WriteKeyAccessorPair = std::pair< SG::WriteDecorHandleKey< ContainerType >, SG::AuxElement::ConstAccessor< VariableType > >
 Useful declarations. More...
 
template<class ContainerType , class VariableType >
using WriteAccessorRefPair = std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, SG::AuxElement::ConstAccessor< VariableType > & >
 
template<class ContainerType , class VariableType >
using OptionalDecoration = std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool >
 
template<typename coll_t >
using EL_t = ElementLink< coll_t >
 useful typedefs More...
 
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 More...
 
const xAOD::MuongetLinkedMuon (const xAOD::TrackParticle &track, const std::string &quality)
 getLinkedMuon More...
 
const xAOD::TauJetgetLinkedTau (const xAOD::TrackParticle &track, const int requiredNtracks, const std::string &type, const std::string &quality)
 getLinkedTau More...
 
bool isUnlinkedTruth (const xAOD::TrackParticle &track)
 isUnlinkedTruth More...
 
float getTruthMatchProb (const xAOD::TrackParticle &track)
 getTruthMatchProb More...
 
const xAOD::TruthParticlegetLinkedTruth (const xAOD::TrackParticle &track, const float truthProbCut)
 getLinkedTruth More...
 
bool isFakeTruth (const xAOD::TrackParticle &track, const float truthProbCut, const bool unlinkedAsFakes)
 isFake More...
 
bool isReconstructable (const xAOD::TruthParticle &truth, const std::vector< unsigned int > &minSilHits, const std::vector< float > &etaBins)
 isReconstructable More...
 
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 More...
 
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. More...
 
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. More...
 
bool isUnlinkedTruth (const xAOD::TruthParticle &)
 
float getTruthMatchProb (const xAOD::TruthParticle &)
 
const xAOD::TruthParticlegetLinkedTruth (const xAOD::TruthParticle &, const float)
 
bool isFakeTruth (const xAOD::TruthParticle &, const float, const bool)
 
bool isReconstructable (const xAOD::TrackParticle &, const std::vector< unsigned int > &, 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 More...
 
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 More...
 
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. More...
 
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 More...
 
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 More...
 
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. More...
 
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. More...
 
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 More...
 
template<class U >
float pT (const U &p)
 Accessor utility function for getting the value of pT. More...
 
template<class U >
float pTsig (const U &p)
 Accessor utility function for getting the value of signed pT. More...
 
template<class U >
float eta (const U &p)
 Accessor utility function for getting the value of eta. More...
 
float getTheta (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of theta. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<class U >
float eT (const U &p)
 Accessor utility function for getting the value of Tranverse energy. More...
 
float getChiSquared (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of chi^2. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<class U1 , class U2 = U1>
float deltaEta (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaEta betwen two tracks. More...
 
template<class U1 , class U2 = U1>
float deltaR (const U1 &p1, const U2 &p2)
 Accessor utility function for getting the DeltaR betwen two tracks. More...
 
float getIsHadron (const xAOD::TrackParticle &)
 Accessor utility function for getting the value of isHadron. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
float getNTRTHits (const xAOD::TrackParticle &p)
 Accessor utility function for getting the value of nTRTHits. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
float getNTRTHighThresholdHitsAr (const xAOD::TruthParticle &)
 
template<class U >
float nTRTHighThresholdHitsAr (const U &p)
 
template<class V >
float posX (const V &v)
 Accessor utility function for getting the value of vertex position x. More...
 
template<class V >
float posY (const V &v)
 Accessor utility function for getting the value of vertex position y. More...
 
template<class V >
float posZ (const V &v)
 Accessor utility function for getting the value of vertex position z. More...
 
float getChiSquared (const xAOD::Vertex &v)
 Accessor utility function for getting the value of chi^2. More...
 
float getChiSquared (const xAOD::TruthVertex &)
 
float getNdof (const xAOD::Vertex &v)
 Accessor utility function for getting the value of #dof. More...
 
float getNdof (const xAOD::TruthVertex &)
 
uint8_t getHasValidTime (const xAOD::Vertex &v)
 Accessor utility function for getting vertex hasValidTime. More...
 
uint8_t getHasValidTime (const xAOD::TruthVertex &)
 
float getTime (const xAOD::Vertex &v)
 Accessor utility function for getting the vertex time. More...
 
float getTime (const xAOD::TruthVertex &v)
 
int getVertexType (const xAOD::Vertex &v)
 Accessor utility function for getting the vertex type. More...
 
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. More...
 
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. More...
 
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. More...
 
float getTimeErr (const xAOD::TruthVertex &)
 
template<class V >
float timeErr (const V &v)
 

Detailed Description

Athena include(s).

xAOD includes

local includes

Athena includes.

Athena include(s)

STL include(s)

Local include(s)

STD includes

STL include(s) xAOD includes

EDM includes STL includes

Local includes

xAOD includes STL includes Local includes

STL includes

local include(s) STL include(s)

EDM includes local includes STD includes

EDM includes STL includes Local includes

local includes STD includes

Local include(s) EDM includes

STD includes local includes

Local include(s) STD includes

Typedef Documentation

◆ EL_t

template<typename coll_t >
using IDTPM::EL_t = typedef 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 = typedef 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 = typedef std::pair< SG::WriteDecorHandle<ContainerType, VariableType>, bool >

Definition at line 46 of file SafeDecorator.h.

◆ roiCollection_t

Definition at line 30 of file RoiSelectionTool.h.

◆ Vec_t

template<typename coll_t >
using IDTPM::Vec_t = typedef 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 = typedef std::vector< EL_t< coll_t > >

Definition at line 37 of file TrackAnalysisInfoWriteTool.h.

◆ VecF_t

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

Definition at line 42 of file TrackAnalysisInfoWriteTool.h.

◆ WriteAccessorRefPair

template<class ContainerType , class VariableType >
using IDTPM::WriteAccessorRefPair = typedef 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 = typedef 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.

72 : int { VposX=0, VposY=1, VposZ=2, NVpos=3 };

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); }

◆ chiSquared()

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

Definition at line 128 of file TrackParametersHelper.h.

128 { return getChiSquared(p); }

◆ 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 ); }

◆ 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 ); }

◆ 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  }

◆ 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 ),
65  );
66  parent.declare( decor_out.back().first );
67  decor_out.back().first.setOwner( &parent );
68  decor_out.back().first.initialize().ignore();
69  }
70  }

◆ 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  }

◆ 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  }

◆ d0()

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

Definition at line 84 of file TrackParametersHelper.h.

84 { return getD0( p ); }

◆ 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  }

◆ decorationsAllExist()

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

Like above - FIXME: maybe not needed.

check if all the required decorations exist

Definition at line 113 of file SafeDecorator.h.

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

◆ deltaEta()

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

Accessor utility function for getting the DeltaEta betwen two tracks.

Definition at line 244 of file TrackParametersHelper.h.

244  {
245  return ( eta(p1) - eta(p2) );
246  }

◆ deltaPhi()

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

Accessor utility function for getting the DeltaPhi betwen two tracks.

Definition at line 238 of file TrackParametersHelper.h.

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

◆ deltaR()

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

Accessor utility function for getting the DeltaR betwen two tracks.

Definition at line 250 of file TrackParametersHelper.h.

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

◆ error() [1/2]

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

Definition at line 174 of file TrackParametersHelper.h.

174 { return getError( p, par ); }

◆ error() [2/2]

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

Definition at line 87 of file VertexParametersHelper.h.

87 { return getError( v, par ); }

◆ eT()

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

Accessor utility function for getting the value of Tranverse energy.

Definition at line 122 of file TrackParametersHelper.h.

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

◆ eta()

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

Accessor utility function for getting the value of eta.

Definition at line 43 of file TrackParametersHelper.h.

43 { return p.eta(); }

◆ etaError()

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

Definition at line 222 of file TrackParametersHelper.h.

222 { return getEtaError(p); }

◆ 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  }

◆ 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  }

◆ 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) ); }

◆ 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) ); }

◆ getEtaError() [1/2]

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

Accessor utility function for getting the Eta error.

Definition at line 216 of file TrackParametersHelper.h.

216  {
217  float etaErr =
218  error(p, Trk::theta) / ( -2 * std::sin( theta(p) ) * std::cos( theta(p) ) );
219  return std::fabs( etaErr ); }

◆ getEtaError() [2/2]

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

Definition at line 220 of file TrackParametersHelper.h.

220 { return 0.; }

◆ getHasValidTime() [1/4]

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

Accessor utility function for getting the track hasValidTime.

Definition at line 150 of file TrackParametersHelper.h.

150 { return p.hasValidTime(); }

◆ getHasValidTime() [2/4]

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

Definition at line 151 of file TrackParametersHelper.h.

151 { return 0; }

◆ getHasValidTime() [3/4]

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

Definition at line 54 of file VertexParametersHelper.h.

54 { return 1; }

◆ getHasValidTime() [4/4]

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

Accessor utility function for getting vertex hasValidTime.

Definition at line 50 of file VertexParametersHelper.h.

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

◆ getIsHadron() [1/2]

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

Accessor utility function for getting the value of isHadron.

Definition at line 255 of file TrackParametersHelper.h.

255 { return 0; }

◆ getIsHadron() [2/2]

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

Definition at line 256 of file TrackParametersHelper.h.

256 { return p.isHadron();}

◆ getIsPion() [1/2]

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

Accessor utility function for getting the value of isPion.

Definition at line 261 of file TrackParametersHelper.h.

261 { return 0; }

◆ getIsPion() [2/2]

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

Definition at line 262 of file TrackParametersHelper.h.

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

◆ getLinkedElectron()

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

getLinkedElectron

Non-templated methods For offline electrons.

Definition at line 18 of file OfflineObjectDecorHelper.cxx.

19  {
20  std::string decoName = "LinkedElectron_" + quality;
21  return getLinkedObject< xAOD::ElectronContainer >( track, decoName );
22  }

◆ 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 42 of file OfflineObjectDecorHelper.h.

45  {
46  using elementLink_t = ElementLink< container_t >;
47 
48  if( isUnlinkedObject< container_t >( track, decoName ) ) return nullptr;
49 
50  const SG::ConstAccessor< elementLink_t > acc( decoName );
51  elementLink_t eleLink = acc( track );
52 
53  if( not eleLink.isValid() ) return nullptr;
54 
55  return *eleLink;
56  }

◆ 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 61 of file OfflineObjectDecorHelper.cxx.

62  {
63  float prob = getTruthMatchProb( track );
64  if( std::isnan(prob) ) return nullptr;
65  if( prob <= truthProbCut ) return nullptr;
66 
67  return getLinkedObject< xAOD::TruthParticleContainer >(
68  track, "truthParticleLink" );
69  }

◆ getLinkedTruth() [2/2]

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

Definition at line 82 of file OfflineObjectDecorHelper.h.

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

◆ getNInnerMostPixelEndcapHits() [1/2]

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

Accessor utility function for getting the value of nInnerMostPixelEndcapHits.

Definition at line 297 of file TrackParametersHelper.h.

297  {
298  uint8_t iInnerMostPixelEndcapHits(0);
299  return p.summaryValue( iInnerMostPixelEndcapHits, xAOD::numberOfInnermostPixelLayerEndcapHits ) ?
300  float( iInnerMostPixelEndcapHits ) : -9999.;
301  }

◆ getNInnerMostPixelEndcapHits() [2/2]

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

Definition at line 302 of file TrackParametersHelper.h.

302 { return -9999.; }

◆ getNInnerMostPixelHits() [1/2]

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

Accessor utility function for getting the value of nInnerMostPixelHits.

Definition at line 287 of file TrackParametersHelper.h.

287  {
288  uint8_t iInnerMostPixelHits(0);
289  return p.summaryValue( iInnerMostPixelHits, xAOD::numberOfInnermostPixelLayerHits ) ?
290  float( iInnerMostPixelHits ) : -9999.;
291  }

◆ getNInnerMostPixelHits() [2/2]

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

Definition at line 292 of file TrackParametersHelper.h.

292 { return -9999.; }

◆ getNInnerMostPixelSharedEndcapHits() [1/2]

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

Accessor utility function for getting the value of nInnerMostPixelSharedEndcapHits.

Definition at line 337 of file TrackParametersHelper.h.

337  {
338  uint8_t iInnerMostPixelSharedEndcapHits(0);
339  return p.summaryValue( iInnerMostPixelSharedEndcapHits, xAOD::numberOfInnermostPixelLayerSharedEndcapHits ) ?
340  float( iInnerMostPixelSharedEndcapHits ) : -9999.;
341  }

◆ getNInnerMostPixelSharedEndcapHits() [2/2]

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

Definition at line 342 of file TrackParametersHelper.h.

342 { return -9999.; }

◆ getNInnerMostPixelSharedHits() [1/2]

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

Accessor utility function for getting the value of nInnerMostPixelSharedHits.

Definition at line 327 of file TrackParametersHelper.h.

327  {
328  uint8_t iInnerMostPixelSharedHits(0);
329  return p.summaryValue( iInnerMostPixelSharedHits, xAOD::numberOfInnermostPixelLayerSharedHits ) ?
330  float( iInnerMostPixelSharedHits ) : -9999.;
331  }

◆ getNInnerMostPixelSharedHits() [2/2]

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

Definition at line 332 of file TrackParametersHelper.h.

332 { return -9999.; }

◆ getNNextToInnerMostPixelEndcapHits() [1/2]

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

Accessor utility function for getting the value of nNextToInnerMostPixelEndcapHits.

Definition at line 317 of file TrackParametersHelper.h.

317  {
318  uint8_t iNextToInnerMostPixelEndcapHits(0);
319  return p.summaryValue( iNextToInnerMostPixelEndcapHits, xAOD::numberOfNextToInnermostPixelLayerEndcapHits ) ?
320  float( iNextToInnerMostPixelEndcapHits ) : -9999.;
321  }

◆ getNNextToInnerMostPixelEndcapHits() [2/2]

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

Definition at line 322 of file TrackParametersHelper.h.

322 { return -9999.; }

◆ getNNextToInnerMostPixelHits() [1/2]

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

Accessor utility function for getting the value of nNextToInnerMostPixelHits.

Definition at line 307 of file TrackParametersHelper.h.

307  {
308  uint8_t iNextToInnerMostPixelHits(0);
309  return p.summaryValue( iNextToInnerMostPixelHits, xAOD::numberOfNextToInnermostPixelLayerHits ) ?
310  float( iNextToInnerMostPixelHits ) : -9999.;
311  }

◆ getNNextToInnerMostPixelHits() [2/2]

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

Definition at line 312 of file TrackParametersHelper.h.

312 { return -9999.; }

◆ getNPixelHits() [1/2]

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

Accessor utility function for getting the value of nPixelHits.

Definition at line 347 of file TrackParametersHelper.h.

347  {
348  uint8_t iPixelHits(0);
349  return p.summaryValue( iPixelHits, xAOD::numberOfPixelHits ) ?
350  float( iPixelHits ) : -9999.;
351  }

◆ getNPixelHits() [2/2]

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

Definition at line 352 of file TrackParametersHelper.h.

352 { return -9999.; }

◆ getNPixelHoles() [1/2]

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

Accessor utility function for getting the value of nPixelHoles.

Definition at line 357 of file TrackParametersHelper.h.

357  {
358  uint8_t iPixHoles(0);
359  return p.summaryValue( iPixHoles, xAOD::numberOfPixelHoles ) ?
360  float( iPixHoles ) : -9999.;
361  }

◆ getNPixelHoles() [2/2]

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

Definition at line 362 of file TrackParametersHelper.h.

362 { return -9999.; }

◆ getNPixelSharedHits() [1/2]

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

Accessor utility function for getting the value of nPixelSharedHits.

Definition at line 367 of file TrackParametersHelper.h.

367  {
368  uint8_t iPixelShared(0);
369  return p.summaryValue( iPixelShared, xAOD::numberOfPixelSharedHits ) ?
370  float( iPixelShared ) : -9999.;
371  }

◆ getNPixelSharedHits() [2/2]

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

Definition at line 372 of file TrackParametersHelper.h.

372 { return -9999.; }

◆ getNSCTHits() [1/2]

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

Accessor utility function for getting the value of nSCTHits.

Definition at line 386 of file TrackParametersHelper.h.

386  {
387  uint8_t iSctHits(0);
388  return p.summaryValue( iSctHits, xAOD::numberOfSCTHits ) ?
389  float( iSctHits ) : -9999.;
390  }

◆ getNSCTHits() [2/2]

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

Definition at line 391 of file TrackParametersHelper.h.

391 { return -9999.; }

◆ getNSCTHoles() [1/2]

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

Accessor utility function for getting the value of nSCTHoles.

Definition at line 396 of file TrackParametersHelper.h.

396  {
397  uint8_t iSctHoles(0);
398  return p.summaryValue( iSctHoles, xAOD::numberOfSCTHoles ) ?
399  float( iSctHoles ) : -9999.;
400  }

◆ getNSCTHoles() [2/2]

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

Definition at line 401 of file TrackParametersHelper.h.

401 { return -9999.; }

◆ getNSCTSharedHits() [1/2]

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

Accessor utility function for getting the value of nSCTSharedHits.

Definition at line 406 of file TrackParametersHelper.h.

406  {
407  uint8_t iSCTShared(0);
408  return p.summaryValue( iSCTShared, xAOD::numberOfSCTSharedHits ) ?
409  float( iSCTShared ) : -9999.;
410  }

◆ getNSCTSharedHits() [2/2]

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

Definition at line 411 of file TrackParametersHelper.h.

411 { return -9999.; }

◆ getNSiHits() [1/2]

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

Accessor utility function for getting the value of nSiHits.

Definition at line 416 of file TrackParametersHelper.h.

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

◆ getNSiHits() [2/2]

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

Definition at line 422 of file TrackParametersHelper.h.

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

◆ getNTRTHighThresholdHits() [1/2]

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

Accessor utility function for getting the value of nTRTHighThresholdHits.

Definition at line 470 of file TrackParametersHelper.h.

470  {
471  uint8_t iTrtHighThresholdHits(0);
472  return p.summaryValue( iTrtHighThresholdHits, xAOD::numberOfTRTHighThresholdHitsTotal ) ?
473  float( iTrtHighThresholdHits ) : -9999.;
474  }

◆ getNTRTHighThresholdHits() [2/2]

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

Definition at line 475 of file TrackParametersHelper.h.

475 { return -9999.; }

◆ getNTRTHighThresholdHitsAr() [1/2]

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

Accessor utility function for getting the value of nTRTHighThresholdHitsAr.

Definition at line 490 of file TrackParametersHelper.h.

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

◆ getNTRTHighThresholdHitsAr() [2/2]

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

Definition at line 496 of file TrackParametersHelper.h.

496 { return -9999.; }

◆ getNTRTHighThresholdHitsXe() [1/2]

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

Accessor utility function for getting the value of nTRTHighThresholdHitsXe.

Definition at line 480 of file TrackParametersHelper.h.

480  {
481  uint8_t iTrtHighThresholdHitsXe(0);
482  return p.summaryValue( iTrtHighThresholdHitsXe, xAOD::numberOfTRTHighThresholdHits ) ?
483  float( iTrtHighThresholdHitsXe ) : -9999.;
484  }

◆ getNTRTHighThresholdHitsXe() [2/2]

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

Definition at line 485 of file TrackParametersHelper.h.

485 { return -9999.; }

◆ getNTRTHits() [1/2]

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

Accessor utility function for getting the value of nTRTHits.

Definition at line 439 of file TrackParametersHelper.h.

439  {
440  uint8_t iTrtHits(0);
441  return p.summaryValue( iTrtHits, xAOD::numberOfTRTHits ) ?
442  float( iTrtHits ) : -9999.;
443  }

◆ getNTRTHits() [2/2]

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

Definition at line 444 of file TrackParametersHelper.h.

444 { return -9999.; }

◆ getNTRTHitsAr() [1/2]

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

Accessor utility function for getting the value of nTRTHitsAr.

Definition at line 459 of file TrackParametersHelper.h.

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

◆ getNTRTHitsAr() [2/2]

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

Definition at line 465 of file TrackParametersHelper.h.

465 { return -9999.; }

◆ getNTRTHitsXe() [1/2]

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

Accessor utility function for getting the value of nTRTHitsXe.

Definition at line 449 of file TrackParametersHelper.h.

449  {
450  uint8_t iTrtHitsXe(0);
451  return p.summaryValue( iTrtHitsXe, xAOD::numberOfTRTXenonHits ) ?
452  float( iTrtHitsXe ) : -9999.;
453  }

◆ getNTRTHitsXe() [2/2]

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

Definition at line 454 of file TrackParametersHelper.h.

454 { return -9999.; }

◆ getPhi() [1/2]

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

Accessor utility function for getting the value of phi.

Definition at line 55 of file TrackParametersHelper.h.

55 { return p.phi0(); }

◆ getPhi() [2/2]

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

Definition at line 56 of file TrackParametersHelper.h.

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

◆ getPixeldEdx() [1/2]

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

Accessor utility function for getting the value of pixeldEdx.

Definition at line 377 of file TrackParametersHelper.h.

377  {
378  float iPixeldEdx(0);
379  return p.summaryValue( iPixeldEdx, xAOD::pixeldEdx ) ? iPixeldEdx : -9999.;
380  }

◆ getPixeldEdx() [2/2]

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

Definition at line 381 of file TrackParametersHelper.h.

381 { return -9999.; }

◆ getProdR() [1/2]

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

Accessor utility function for getting the value of R.

Definition at line 87 of file TrackParametersHelper.h.

87 { return -9999.; }

◆ getProdR() [2/2]

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

Definition at line 88 of file TrackParametersHelper.h.

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

◆ getProdZ() [1/2]

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

Accessor utility function for getting the value of Z.

Definition at line 96 of file TrackParametersHelper.h.

96 { return -9999.; }

◆ getProdZ() [2/2]

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

Definition at line 97 of file TrackParametersHelper.h.

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

◆ getPTError() [1/2]

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

Accessor utility function for getting the Pt error.

Definition at line 198 of file TrackParametersHelper.h.

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

◆ getPTError() [2/2]

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

Definition at line 211 of file TrackParametersHelper.h.

211 { return 0.; }

◆ getQoverP() [1/2]

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

Accessor utility function for getting the value of qOverP.

Definition at line 105 of file TrackParametersHelper.h.

105 { return p.qOverP(); }

◆ getQoverP() [2/2]

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

Definition at line 106 of file TrackParametersHelper.h.

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

◆ getQOverPTError() [1/2]

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

Accessor utility function for getting the QOverPt error.

Definition at line 184 of file TrackParametersHelper.h.

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

◆ 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 53 of file OfflineObjectDecorHelper.cxx.

53  {
54  static const SG::ConstAccessor< float > truthMatchProbabilityAcc( "truthMatchProbability" );
55  float prob = truthMatchProbabilityAcc.withDefault( track, -1 );
56  if( std::isnan(prob) ) return -1;
57  return prob;
58  }

◆ getTruthMatchProb() [2/2]

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

Definition at line 78 of file OfflineObjectDecorHelper.h.

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

◆ getTruthOrigin() [1/2]

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

Accessor utility function for getting the value of truthOrigin.

Definition at line 277 of file TrackParametersHelper.h.

277 { return -9999; }

◆ getTruthOrigin() [2/2]

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

Definition at line 278 of file TrackParametersHelper.h.

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

◆ getTruthType() [1/2]

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

Accessor utility function for getting the value of truthType.

Definition at line 268 of file TrackParametersHelper.h.

268 { return -9999; }

◆ getTruthType() [2/2]

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

Definition at line 269 of file TrackParametersHelper.h.

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

◆ getVertexTracksAndWeights() [1/2]

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

Definition at line 104 of file OfflineObjectDecorHelper.h.

107  {},
108  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 98 of file OfflineObjectDecorHelper.cxx.

103  {
104  bool success( true );
105 
107  vtxTracks.clear();
108  vtxTrackWeights.clear();
109 
111  if( vtx.vertexType() == xAOD::VxType::NoVtx ) return success;
112 
114  size_t nTracks = vtx.nTrackParticles();
116  std::vector< float > wVec = vtx.trackWeights();
117 
119  if( not( nTracks == elVec.size() and nTracks == wVec.size() ) ) return false; // shouldn't happen
120 
122  for( size_t it=0 ; it<nTracks ; it++ ) {
124  if( not elVec[ it ].isValid() ) {
125  success = false; // shouldn't happen
126  continue;
127  }
128 
129  const xAOD::TrackParticle* thisTrk = *elVec[ it ];
130  float thisTrkW = wVec[ it ];
131 
133  if( useSelected and
134  std::find( selTracks.begin(), selTracks.end(), thisTrk ) == selTracks.end() ) continue;
135 
137  vtxTracks.push_back( thisTrk );
138  vtxTrackWeights.push_back( thisTrkW );
139  } // close associated tracks loop
140 
141  return success;
142  }

◆ getVertexType() [1/2]

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

Definition at line 67 of file VertexParametersHelper.h.

67 { return -1; }

◆ getVertexType() [2/2]

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

Accessor utility function for getting the vertex type.

Definition at line 66 of file VertexParametersHelper.h.

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

◆ getZ0() [1/2]

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

Accessor utility function for getting the value of z0.

Definition at line 66 of file TrackParametersHelper.h.

66 { return p.z0(); }

◆ getZ0() [2/2]

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

Definition at line 67 of file TrackParametersHelper.h.

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

◆ getZ0SinThetaError() [1/2]

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

Accessor utility function for getting the z0SinTheta error.

Definition at line 225 of file TrackParametersHelper.h.

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

◆ getZ0SinThetaError() [2/2]

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

Definition at line 232 of file TrackParametersHelper.h.

232 { return 0.; }

◆ hasValidTime()

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

Definition at line 153 of file TrackParametersHelper.h.

153 { return getHasValidTime(p); }

◆ isFakeTruth() [1/2]

bool IDTPM::isFakeTruth ( const xAOD::TrackParticle track,
const float  truthProbCut,
const bool  unlinkedAsFakes 
)

isFake

if fakes include unlinked, return true if isUnlinked is true

returns true if truthMatchProbability deco isn't available or if the truth matching probability is below theshold

Definition at line 72 of file OfflineObjectDecorHelper.cxx.

75  {
77  if( unlinkedAsFakes and isUnlinkedTruth( track ) ) return true;
78  float prob = getTruthMatchProb( track );
81  return ( prob < truthProbCut );
82  }

◆ isFakeTruth() [2/2]

bool IDTPM::isFakeTruth ( const xAOD::TruthParticle ,
const float  ,
const bool   
)
inline

Definition at line 87 of file OfflineObjectDecorHelper.h.

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

◆ isHadron()

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

Definition at line 258 of file TrackParametersHelper.h.

258 { return getIsHadron( p ); }

◆ isPion()

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

Definition at line 264 of file TrackParametersHelper.h.

264 { return getIsPion( p ); }

◆ isReconstructable() [1/2]

bool IDTPM::isReconstructable ( const xAOD::TrackParticle ,
const std::vector< unsigned int > &  ,
const std::vector< float > &   
)
inline

Definition at line 93 of file OfflineObjectDecorHelper.h.

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

◆ isReconstructable() [2/2]

bool IDTPM::isReconstructable ( const xAOD::TruthParticle truth,
const std::vector< unsigned int > &  minSilHits,
const std::vector< float > &  etaBins 
)

isReconstructable

Definition at line 85 of file OfflineObjectDecorHelper.cxx.

88  {
89  // Get eta bin
90  float absEta = std::abs(truth.eta());
91  absEta = std::clamp(absEta, etaBins.front(), etaBins.back());
92  const auto pVal = std::lower_bound(etaBins.begin(), etaBins.end(), absEta);
93  const unsigned int bin = std::distance(etaBins.begin(), pVal) - 1;
94  return ( nSiHits(truth) >= minSilHits.at( bin ) );
95  }

◆ 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 33 of file OfflineObjectDecorHelper.h.

34  {
35  using elementLink_t = ElementLink< container_t >;
36  const SG::ConstAccessor< elementLink_t > acc( decoName );
37  return ( not acc.isAvailable( track ) );
38  }

◆ isUnlinkedTruth() [1/2]

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

isUnlinkedTruth

For truth particles.

Definition at line 45 of file OfflineObjectDecorHelper.cxx.

45  {
46  const xAOD::TruthParticle* truth = getLinkedObject< xAOD::TruthParticleContainer >(
47  track, "truthParticleLink" );
48  return ( truth == nullptr );
49  }

◆ isUnlinkedTruth() [2/2]

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

Definition at line 75 of file OfflineObjectDecorHelper.h.

75 { 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); }

◆ nInnerMostPixelEndcapHits()

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

Definition at line 304 of file TrackParametersHelper.h.

304 { return getNInnerMostPixelEndcapHits( p ); }

◆ nInnerMostPixelHits()

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

Definition at line 294 of file TrackParametersHelper.h.

294 { return getNInnerMostPixelHits( p ); }

◆ nInnerMostPixelSharedEndcapHits()

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

Definition at line 344 of file TrackParametersHelper.h.

◆ nInnerMostPixelSharedHits()

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

Definition at line 334 of file TrackParametersHelper.h.

334 { return getNInnerMostPixelSharedHits( p ); }

◆ nNextToInnerMostPixelEndcapHits()

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

Definition at line 324 of file TrackParametersHelper.h.

◆ nNextToInnerMostPixelHits()

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

Definition at line 314 of file TrackParametersHelper.h.

314 { return getNNextToInnerMostPixelHits( p ); }

◆ nPixelHits()

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

Definition at line 354 of file TrackParametersHelper.h.

354 { return getNPixelHits( p ); }

◆ nPixelHoles()

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

Definition at line 364 of file TrackParametersHelper.h.

364 { return getNPixelHoles( p ); }

◆ nPixelSharedHits()

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

Definition at line 374 of file TrackParametersHelper.h.

374 { return getNPixelSharedHits( p ); }

◆ nSCTHits()

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

Definition at line 393 of file TrackParametersHelper.h.

393 { return getNSCTHits( p ); }

◆ nSCTHoles()

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

Definition at line 403 of file TrackParametersHelper.h.

403 { return getNSCTHoles( p ); }

◆ nSCTSharedHits()

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

Definition at line 413 of file TrackParametersHelper.h.

413 { return getNSCTSharedHits( p ); }

◆ nSiHits()

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

Definition at line 427 of file TrackParametersHelper.h.

427 { return getNSiHits( p ); }

◆ nSiHoles()

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

Accessor utility function for getting the value of nSiHoles.

Definition at line 431 of file TrackParametersHelper.h.

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

◆ nTRTHighThresholdHits()

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

Definition at line 477 of file TrackParametersHelper.h.

477 { return getNTRTHighThresholdHits( p ); }

◆ nTRTHighThresholdHitsAr()

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

Definition at line 498 of file TrackParametersHelper.h.

498 { return getNTRTHighThresholdHitsAr( p ); }

◆ nTRTHighThresholdHitsXe()

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

Definition at line 487 of file TrackParametersHelper.h.

487 { return getNTRTHighThresholdHitsXe( p ); }

◆ nTRTHits()

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

Definition at line 446 of file TrackParametersHelper.h.

446 { return getNTRTHits( p ); }

◆ nTRTHitsAr()

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

Definition at line 467 of file TrackParametersHelper.h.

467 { return getNTRTHitsAr( p ); }

◆ nTRTHitsXe()

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

Definition at line 456 of file TrackParametersHelper.h.

456 { return getNTRTHitsXe( p ); }

◆ phi()

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

Definition at line 61 of file TrackParametersHelper.h.

61 { return getPhi( p ); }

◆ pixeldEdx()

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

Definition at line 383 of file TrackParametersHelper.h.

383 { return getPixeldEdx( p ); }

◆ 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 ); }

◆ prodZ()

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

Definition at line 102 of file TrackParametersHelper.h.

102 { return getProdZ( p ); }

◆ pT()

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

Accessor utility function for getting the value of pT.

Definition at line 33 of file TrackParametersHelper.h.

33 { return p.pt(); }

◆ pTError()

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

Definition at line 213 of file TrackParametersHelper.h.

213 { return getPTError(p); }

◆ 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 ); }

◆ qOverPT()

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

Definition at line 114 of file TrackParametersHelper.h.

114 { return 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); }

◆ theta()

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

Definition at line 52 of file TrackParametersHelper.h.

52 { return getTheta( p ); }

◆ time()

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

Definition at line 159 of file TrackParametersHelper.h.

159 { return getTime(p); }

◆ timeErr()

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

Definition at line 96 of file VertexParametersHelper.h.

96 { return getTimeErr(v); }

◆ truthOrigin()

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

Definition at line 283 of file TrackParametersHelper.h.

283 { return getTruthOrigin( p ); }

◆ truthType()

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

Definition at line 274 of file TrackParametersHelper.h.

274 { return getTruthType( p ); }

◆ vertexType()

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

Definition at line 69 of file VertexParametersHelper.h.

69 { return getVertexType(v); }

◆ z0()

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

Definition at line 72 of file TrackParametersHelper.h.

72 { return getZ0( p ); }

◆ z0SinTheta()

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

Definition at line 75 of file TrackParametersHelper.h.

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

◆ z0SinThetaError()

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

Definition at line 234 of file TrackParametersHelper.h.

234 { return getZ0SinThetaError(p); }
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
xAOD::numberOfPixelHoles
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
Definition: TrackingPrimitives.h:261
IDTPM::getError
float getError(const xAOD::TruthVertex &, VposDefs)
Definition: VertexParametersHelper.h:85
IDTPM::getNTRTHitsAr
float getNTRTHitsAr(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:465
IDTPM::getNNextToInnerMostPixelHits
float getNNextToInnerMostPixelHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:312
IDTPM::getNSiHits
float getNSiHits(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:422
IDTPM::getNTRTHighThresholdHitsXe
float getNTRTHighThresholdHitsXe(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:485
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
IDTPM::getNSCTHits
float getNSCTHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:391
IDTPM::getTruthMatchProb
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb
Definition: OfflineObjectDecorHelper.cxx:53
xAOD::Vertex_v1::nTrackParticles
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
Definition: Vertex_v1.cxx:270
xAOD::numberOfSCTSharedHits
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
Definition: TrackingPrimitives.h:272
IDTPM::covVec
std::vector< float > covVec(const U &p)
Definition: TrackParametersHelper.h:181
IDTPM::decorate
void decorate(const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
unsafe fill decoration method for convenience
Definition: SafeDecorator.h:233
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
IDTPM::getVertexType
int getVertexType(const xAOD::TruthVertex &)
Definition: VertexParametersHelper.h:67
IDTPM::getPTError
float getPTError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:211
xAOD::numberOfInnermostPixelLayerSharedEndcapHits
@ numberOfInnermostPixelLayerSharedEndcapHits
number of Pixel 0th layer endcap hits shared by several tracks.
Definition: TrackingPrimitives.h:244
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
IDTPM::getD0
float getD0(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:79
IDTPM::z0
float z0(const U &p)
Definition: TrackParametersHelper.h:72
IDTPM::nPixelHoles
float nPixelHoles(const U &p)
Definition: TrackParametersHelper.h:364
xAOD::Vertex_v1::trackParticleLinks
const TrackParticleLinks_t & trackParticleLinks() const
Get all the particles associated with the vertex.
xAOD::numberOfTRTXenonHits
@ numberOfTRTXenonHits
number of TRT hits on track in straws with xenon [unit8_t].
Definition: TrackingPrimitives.h:284
IDTPM::getNTRTHighThresholdHits
float getNTRTHighThresholdHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:475
IDTPM::getHasValidTime
uint8_t getHasValidTime(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:151
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
ConvertOldUJHistosToNewHistos.etaBins
list etaBins
Definition: ConvertOldUJHistosToNewHistos.py:145
xAOD::Vertex_v1::trackWeights
const std::vector< float > & trackWeights() const
Get all the track weights.
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
skel.it
it
Definition: skel.GENtoEVGEN.py:396
IDTPM::getCovVec
std::vector< float > getCovVec(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:179
IDTPM::getChiSquared
float getChiSquared(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:126
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
IDTPM::getNPixelHoles
float getNPixelHoles(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:362
bin
Definition: BinsDiffFromStripMedian.h:43
Trk::z0
@ z0
Definition: ParamDefs.h:64
athena.value
value
Definition: athena.py:124
IDTPM::getNPixelHits
float getNPixelHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:352
xAOD::numberOfPixelHits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:259
xAOD::numberOfTRTHits
@ numberOfTRTHits
number of TRT hits [unit8_t].
Definition: TrackingPrimitives.h:275
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
IDTPM::getNSCTHoles
float getNSCTHoles(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:401
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
isValid
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition: AtlasPID.h:620
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
covarianceTool.prob
prob
Definition: covarianceTool.py:678
IDTPM::nPixelHits
float nPixelHits(const U &p)
Definition: TrackParametersHelper.h:354
xAOD::Vertex_v1::vertexType
VxType::VertexType vertexType() const
The type of the vertex.
xAOD::VxType::NoVtx
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
Definition: TrackingPrimitives.h:570
IDTPM::getCov
float getCov(const xAOD::TruthVertex &, VposDefs, VposDefs)
Definition: VertexParametersHelper.h:78
IDTPM::getPixeldEdx
float getPixeldEdx(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:381
IDTPM::nTRTHighThresholdHitsXe
float nTRTHighThresholdHitsXe(const U &p)
Definition: TrackParametersHelper.h:487
xAOD::numberOfTRTHighThresholdHits
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].
Definition: TrackingPrimitives.h:278
IDTPM::getError
float getError(const xAOD::TruthParticle &, Trk::ParamDefs)
Definition: TrackParametersHelper.h:172
IDTPM::cov
float cov(const V &v, VposDefs par1, VposDefs par2)
Definition: VertexParametersHelper.h:80
CxxUtils::fpcompare::equal
bool equal(double a, double b)
Compare two FP numbers, working around x87 precision issues.
Definition: fpcompare.h:114
xAOD::numberOfTRTHighThresholdHitsTotal
@ numberOfTRTHighThresholdHitsTotal
total number of TRT hits which pass the high threshold [unit8_t].
Definition: TrackingPrimitives.h:279
IDTPM::getNInnerMostPixelHits
float getNInnerMostPixelHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:292
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
IDTPM::getNTRTHighThresholdHitsAr
float getNTRTHighThresholdHitsAr(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:496
xAOD::numberOfInnermostPixelLayerEndcapHits
@ numberOfInnermostPixelLayerEndcapHits
these are the hits in the 0th pixel layer endcap [unit8_t].
Definition: TrackingPrimitives.h:242
xAOD::numberOfPixelSharedHits
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
Definition: TrackingPrimitives.h:262
IDTPM::cov
float cov(const U &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
Definition: TrackParametersHelper.h:166
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
IDTPM::getZ0SinThetaError
float getZ0SinThetaError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:232
lumiFormat.i
int i
Definition: lumiFormat.py:85
IDTPM::nSCTHits
float nSCTHits(const U &p)
Definition: TrackParametersHelper.h:393
IDTPM::nTRTHits
float nTRTHits(const U &p)
Definition: TrackParametersHelper.h:446
Trk::theta
@ theta
Definition: ParamDefs.h:66
IDTPM::getProdR
float getProdR(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:88
IDTPM::getNTRTHitsXe
float getNTRTHitsXe(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:454
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
IDTPM::nTRTHitsXe
float nTRTHitsXe(const U &p)
Definition: TrackParametersHelper.h:456
IDTPM::getNInnerMostPixelSharedHits
float getNInnerMostPixelSharedHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:332
SG::WriteDecorHandle
Handle class for adding a decoration to an object.
Definition: StoreGate/StoreGate/WriteDecorHandle.h:100
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
IDTPM::getNNextToInnerMostPixelEndcapHits
float getNNextToInnerMostPixelEndcapHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:322
test_pyathena.parent
parent
Definition: test_pyathena.py:15
IDTPM::pT
float pT(const U &p)
Accessor utility function for getting the value of pT.
Definition: TrackParametersHelper.h:33
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
IDTPM::getNInnerMostPixelSharedEndcapHits
float getNInnerMostPixelSharedEndcapHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:342
IDTPM::getQoverP
float getQoverP(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:106
IDTPM::getQOverPTError
float getQOverPTError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:193
xAOD::Vertex_v1::TrackParticleLinks_t
std::vector< ElementLink< xAOD::TrackParticleContainer > > TrackParticleLinks_t
Type for the associated track particles.
Definition: Vertex_v1.h:128
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
IDTPM::getTime
float getTime(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:157
xAOD::numberOfSCTHoles
@ numberOfSCTHoles
number of SCT holes [unit8_t].
Definition: TrackingPrimitives.h:270
IDTPM::nSCTHoles
float nSCTHoles(const U &p)
Definition: TrackParametersHelper.h:403
IDTPM::VposX
@ VposX
Definition: VertexParametersHelper.h:72
xAOD::numberOfNextToInnermostPixelLayerEndcapHits
@ numberOfNextToInnermostPixelLayerEndcapHits
these are the hits in the 0.5th and 1st pixel layer endcap rings [unit8_t].
Definition: TrackingPrimitives.h:253
IDTPM::getNSCTSharedHits
float getNSCTSharedHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:411
xAOD::numberOfNextToInnermostPixelLayerHits
@ numberOfNextToInnermostPixelLayerHits
these are the hits in the 1st pixel barrel layer
Definition: TrackingPrimitives.h:248
IDTPM::getNInnerMostPixelEndcapHits
float getNInnerMostPixelEndcapHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:302
IDTPM::getIsPion
float getIsPion(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:262
IDTPM::getNTRTHits
float getNTRTHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:444
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
xAOD::TruthParticle_v1::eta
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Definition: TruthParticle_v1.cxx:174
IDTPM::qOverP
float qOverP(const U &p)
Definition: TrackParametersHelper.h:111
IDTPM::getAuthor
std::vector< unsigned int > getAuthor(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:145
IDTPM::VposY
@ VposY
Definition: VertexParametersHelper.h:72
python.PyAthena.v
v
Definition: PyAthena.py:154
xAOD::pixeldEdx
@ pixeldEdx
the dE/dx estimate, calculated using the pixel clusters [?]
Definition: TrackingPrimitives.h:304
IDTPM::getEtaError
float getEtaError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:220
xAOD::NumberOfTrackRecoInfo
@ NumberOfTrackRecoInfo
maximum number of enums
Definition: TrackingPrimitives.h:189
IDTPM::getTruthOrigin
int getTruthOrigin(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:278
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.TriggerHandler.verbose
verbose
Definition: TriggerHandler.py:297
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
TauGNNUtils::Variables::absEta
bool absEta(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:234
xAOD::numberOfInnermostPixelLayerSharedHits
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
Definition: TrackingPrimitives.h:239
xAOD::numberOfSCTHits
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Definition: TrackingPrimitives.h:268
IDTPM::getTimeErr
float getTimeErr(const xAOD::TruthVertex &)
Definition: VertexParametersHelper.h:94
IDTPM::error
float error(const U &p, Trk::ParamDefs par)
Definition: TrackParametersHelper.h:174
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
IDTPM::getTheta
float getTheta(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:47
IDTPM::getCov
float getCov(const xAOD::TruthParticle &, Trk::ParamDefs, Trk::ParamDefs)
Definition: TrackParametersHelper.h:164
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
IDTPM::nTRTHighThresholdHits
float nTRTHighThresholdHits(const U &p)
Definition: TrackParametersHelper.h:477
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
IDTPM::getNdof
float getNdof(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:132
IDTPM::getIsHadron
float getIsHadron(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:256
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15
IDTPM::getNPixelSharedHits
float getNPixelSharedHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:372
IDTPM::getProdZ
float getProdZ(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:97
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
IDTPM::NVpos
@ NVpos
Definition: VertexParametersHelper.h:72
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
IDTPM::VposZ
@ VposZ
Definition: VertexParametersHelper.h:72
readCCLHist.float
float
Definition: readCCLHist.py:83
IDTPM::isUnlinkedTruth
bool isUnlinkedTruth(const xAOD::TrackParticle &track)
isUnlinkedTruth
Definition: OfflineObjectDecorHelper.cxx:45
IDTPM::getTruthType
int getTruthType(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:269
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
IDTPM::getZ0
float getZ0(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:67
IDTPM::nSiHits
float nSiHits(const U &p)
Definition: TrackParametersHelper.h:427
xAOD::numberOfInnermostPixelLayerHits
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
Definition: TrackingPrimitives.h:237
IDTPM::getPhi
float getPhi(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:56