ATLAS Offline Software
Classes | Typedefs | 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
 
class  FakeRatePlots
 
class  HitsOnTracksPlots
 
class  IPlotsDefReadTool
 
class  ITrackMatchingLookup
 
class  ITrackMatchingTool
 
class  ITrackSelectionTool
 
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  TruthQualitySelectionTool
 
class  TruthTrackMatchingTool
 

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 >
 

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...
 
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 > &)
 
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 >
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)
 Like above - FIXME: maybe not needed. 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 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)
 
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)
 

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

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.

Function Documentation

◆ author()

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

Definition at line 145 of file TrackParametersHelper.h.

145 { return getAuthor(p); }

◆ chiSquared()

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

Definition at line 126 of file TrackParametersHelper.h.

126 { return getChiSquared(p); }

◆ cov()

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

Definition at line 164 of file TrackParametersHelper.h.

164  {
165  return getCov( p, par1, par2 ); }

◆ covVec()

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

Definition at line 179 of file TrackParametersHelper.h.

179 { 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 159 of file SafeDecorator.h.

162  {
163  std::vector< SG::WriteDecorHandle< T_Cont, T > > out;
164  out.reserve( keys.size() );
165  for( const SG::WriteDecorHandleKey< T_Cont >& a_key : keys ) {
166  out.emplace_back( a_key, ctx );
167  if( not out.back().isValid() ) {
168  std::stringstream msg;
169  msg << "Failed to create decorator handle " << a_key.key();
170  throw std::runtime_error( msg.str() );
171  }
172  } // close SG::WriteDecorHandleKey loop
173  return out;
174  }

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

Like above - FIXME: maybe not needed.

create/book the decorations if they do not exist already

Definition at line 114 of file SafeDecorator.h.

119  {
120  std::vector< OptionalDecoration< T_Cont, T > > out;
121  bool all_available = true;
122  if( !container.empty() ) {
123  std::vector<bool> decorate;
124  decorate.reserve( keys.size() );
125  for( const WriteKeyAccessorPair< T_Cont, T >& a_key : keys ) {
126  decorate.push_back( !a_key.second.isAvailable( *container[0] ) );
127  all_available &= !decorate.back();
128  if( verbose && !decorate.back() ) {
129  std::cout << "WARNING IDTPM::createDecoratorsIfNeeded: Decoration "
130  << a_key.first.key() << " already exists; reject update."
131  << std::endl;
132  } // close if( verbose && !decorate.back() )
133  } // close WriteKeyAccessorPair loop
134 
135  if( !all_available ) {
136  std::size_t idx = 0;
137  out.reserve( keys.size() );
138  for( const WriteKeyAccessorPair< T_Cont, T >& a_key : keys ) {
139  assert( idx < decorate.size() );
140  out.emplace_back(
141  SG::WriteDecorHandle< T_Cont,T >( a_key.first, ctx ),
142  decorate[idx++]
143  );
144  if( not out.back().first.isPresent() ) {
145  std::stringstream msg;
146  msg << "Container " << a_key.first.key()
147  << " to be decorated does not exist.";
148  throw std::runtime_error( msg.str() );
149  } // close if( not out.back().first.isPresent() )
150  } // close WriteKeyAccessorPair loop
151  } // close if( !all_available )
152  } // close if( !container.empty() )
153  return out;
154  }

◆ d0()

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

Definition at line 82 of file TrackParametersHelper.h.

82 { 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 209 of file SafeDecorator.h.

213  {
214  decorator.first( particle ) = value;
215  }

◆ 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 197 of file SafeDecorator.h.

201  {
202  if( decorator.second ) {
203  decorator.first( particle ) = value;
204  }
205  }

◆ 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 178 of file SafeDecorator.h.

182  {
183  if( !decorator.second.isAvailable( particle ) ) {
184  const T existing = decorator.second( particle );
185  if( not CxxUtils::fpcompare::equal( existing, value ) ) {
186  std::cout << "WARNING IDTPM::safeDecorator: " << decorator.first.decorKey()
187  << " Already exists on this object with a different value."
188  << std::endl;
189  }
190  } else {
191  decorator.first( particle ) = value;
192  }
193  }

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

242  {
243  return ( eta(p1) - eta(p2) );
244  }

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

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

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

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

◆ error()

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

Definition at line 172 of file TrackParametersHelper.h.

172 { return getError( p, 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 120 of file TrackParametersHelper.h.

120 { 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 41 of file TrackParametersHelper.h.

41 { return p.eta(); }

◆ etaError()

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

Definition at line 220 of file TrackParametersHelper.h.

220 { 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 116 of file TrackParametersHelper.h.

116 { 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 135 of file TrackParametersHelper.h.

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

◆ getAuthor() [2/2]

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

Definition at line 143 of file TrackParametersHelper.h.

143 { return {}; }

◆ getChiSquared() [1/2]

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

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

Definition at line 123 of file TrackParametersHelper.h.

123 { return p.chiSquared(); }

◆ getChiSquared() [2/2]

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

Definition at line 124 of file TrackParametersHelper.h.

124 { return -9999; }

◆ getCov() [1/2]

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

160  {
161  return p.definingParametersCovMatrix()( par1, par2 ); }

◆ getCov() [2/2]

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

Definition at line 162 of file TrackParametersHelper.h.

162 { return 0.; }

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

175  {
176  return p.definingParametersCovMatrixVec(); }

◆ getCovVec() [2/2]

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

Definition at line 177 of file TrackParametersHelper.h.

177 { return {}; }

◆ getD0() [1/2]

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

Accessor utility function for getting the value of d0.

Definition at line 76 of file TrackParametersHelper.h.

76 { return p.d0(); }

◆ getD0() [2/2]

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

Definition at line 77 of file TrackParametersHelper.h.

77  {
78  static thread_local SG::ConstAccessor<float> d0Acc("d0");
79  return (d0Acc.isAvailable(p)) ? d0Acc(p) : -9999.;
80  }

◆ getError() [1/2]

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

Accessor utility function for getting the track parameters error.

Definition at line 168 of file TrackParametersHelper.h.

168  {
169  return ( cov(p, par, par) < 0 ) ? 0. : std::sqrt( cov(p, par, par) ); }

◆ getError() [2/2]

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

Definition at line 170 of file TrackParametersHelper.h.

170 { return 0.; }

◆ getEtaError() [1/2]

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

Accessor utility function for getting the Eta error.

Definition at line 214 of file TrackParametersHelper.h.

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

◆ getEtaError() [2/2]

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

Definition at line 218 of file TrackParametersHelper.h.

218 { return 0.; }

◆ getHasValidTime() [1/2]

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

Accessor utility function for getting the track hasValidTime.

Definition at line 148 of file TrackParametersHelper.h.

148 { return p.hasValidTime(); }

◆ getHasValidTime() [2/2]

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

Definition at line 149 of file TrackParametersHelper.h.

149 { return 0; }

◆ getIsHadron() [1/2]

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

Accessor utility function for getting the value of isHadron.

Definition at line 253 of file TrackParametersHelper.h.

253 { return 0; }

◆ getIsHadron() [2/2]

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

Definition at line 254 of file TrackParametersHelper.h.

254 { return p.isHadron();}

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

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

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

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

◆ getLinkedTruth() [2/2]

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

Definition at line 80 of file OfflineObjectDecorHelper.h.

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

◆ getNdof() [1/2]

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

Accessor utility function for getting the value of #dof.

Definition at line 129 of file TrackParametersHelper.h.

129 { return p.numberDoF(); }

◆ getNdof() [2/2]

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

Definition at line 130 of file TrackParametersHelper.h.

130 { return -9999; }

◆ getNInnerMostPixelEndcapHits() [1/2]

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

Accessor utility function for getting the value of nInnerMostPixelEndcapHits.

Definition at line 269 of file TrackParametersHelper.h.

269  {
270  uint8_t iInnerMostPixelEndcapHits(0);
271  return p.summaryValue( iInnerMostPixelEndcapHits, xAOD::numberOfInnermostPixelLayerEndcapHits ) ?
272  float( iInnerMostPixelEndcapHits ) : -9999.;
273  }

◆ getNInnerMostPixelEndcapHits() [2/2]

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

Definition at line 274 of file TrackParametersHelper.h.

274 { 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 259 of file TrackParametersHelper.h.

259  {
260  uint8_t iInnerMostPixelHits(0);
261  return p.summaryValue( iInnerMostPixelHits, xAOD::numberOfInnermostPixelLayerHits ) ?
262  float( iInnerMostPixelHits ) : -9999.;
263  }

◆ getNInnerMostPixelHits() [2/2]

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

Definition at line 264 of file TrackParametersHelper.h.

264 { 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 309 of file TrackParametersHelper.h.

309  {
310  uint8_t iInnerMostPixelSharedEndcapHits(0);
311  return p.summaryValue( iInnerMostPixelSharedEndcapHits, xAOD::numberOfInnermostPixelLayerSharedEndcapHits ) ?
312  float( iInnerMostPixelSharedEndcapHits ) : -9999.;
313  }

◆ getNInnerMostPixelSharedEndcapHits() [2/2]

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

Definition at line 314 of file TrackParametersHelper.h.

314 { 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 299 of file TrackParametersHelper.h.

299  {
300  uint8_t iInnerMostPixelSharedHits(0);
301  return p.summaryValue( iInnerMostPixelSharedHits, xAOD::numberOfInnermostPixelLayerSharedHits ) ?
302  float( iInnerMostPixelSharedHits ) : -9999.;
303  }

◆ getNInnerMostPixelSharedHits() [2/2]

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

Definition at line 304 of file TrackParametersHelper.h.

304 { 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 289 of file TrackParametersHelper.h.

289  {
290  uint8_t iNextToInnerMostPixelEndcapHits(0);
291  return p.summaryValue( iNextToInnerMostPixelEndcapHits, xAOD::numberOfNextToInnermostPixelLayerEndcapHits ) ?
292  float( iNextToInnerMostPixelEndcapHits ) : -9999.;
293  }

◆ getNNextToInnerMostPixelEndcapHits() [2/2]

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

Definition at line 294 of file TrackParametersHelper.h.

294 { 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 279 of file TrackParametersHelper.h.

279  {
280  uint8_t iNextToInnerMostPixelHits(0);
281  return p.summaryValue( iNextToInnerMostPixelHits, xAOD::numberOfNextToInnermostPixelLayerHits ) ?
282  float( iNextToInnerMostPixelHits ) : -9999.;
283  }

◆ getNNextToInnerMostPixelHits() [2/2]

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

Definition at line 284 of file TrackParametersHelper.h.

284 { 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 319 of file TrackParametersHelper.h.

319  {
320  uint8_t iPixelHits(0);
321  return p.summaryValue( iPixelHits, xAOD::numberOfPixelHits ) ?
322  float( iPixelHits ) : -9999.;
323  }

◆ getNPixelHits() [2/2]

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

Definition at line 324 of file TrackParametersHelper.h.

324 { 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 329 of file TrackParametersHelper.h.

329  {
330  uint8_t iPixHoles(0);
331  return p.summaryValue( iPixHoles, xAOD::numberOfPixelHoles ) ?
332  float( iPixHoles ) : -9999.;
333  }

◆ getNPixelHoles() [2/2]

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

Definition at line 334 of file TrackParametersHelper.h.

334 { 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 339 of file TrackParametersHelper.h.

339  {
340  uint8_t iPixelShared(0);
341  return p.summaryValue( iPixelShared, xAOD::numberOfPixelSharedHits ) ?
342  float( iPixelShared ) : -9999.;
343  }

◆ getNPixelSharedHits() [2/2]

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

Definition at line 344 of file TrackParametersHelper.h.

344 { 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 358 of file TrackParametersHelper.h.

358  {
359  uint8_t iSctHits(0);
360  return p.summaryValue( iSctHits, xAOD::numberOfSCTHits ) ?
361  float( iSctHits ) : -9999.;
362  }

◆ getNSCTHits() [2/2]

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

Definition at line 363 of file TrackParametersHelper.h.

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

368  {
369  uint8_t iSctHoles(0);
370  return p.summaryValue( iSctHoles, xAOD::numberOfSCTHoles ) ?
371  float( iSctHoles ) : -9999.;
372  }

◆ getNSCTHoles() [2/2]

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

Definition at line 373 of file TrackParametersHelper.h.

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

378  {
379  uint8_t iSCTShared(0);
380  return p.summaryValue( iSCTShared, xAOD::numberOfSCTSharedHits ) ?
381  float( iSCTShared ) : -9999.;
382  }

◆ getNSCTSharedHits() [2/2]

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

Definition at line 383 of file TrackParametersHelper.h.

383 { 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 388 of file TrackParametersHelper.h.

388  {
389  if( nPixelHits(p)<0 or nSCTHits(p)<0 ) return -9999.;
390  float pnPixelHits = ( nPixelHits(p) >= 0 ) ? nPixelHits(p) : 0.;
391  float pnSCTHits = ( nSCTHits(p) >= 0 ) ? nSCTHits(p) : 0.;
392  return ( pnPixelHits + pnSCTHits );
393  }

◆ getNSiHits() [2/2]

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

Definition at line 394 of file TrackParametersHelper.h.

394  {
395  static thread_local SG::ConstAccessor<float> prodNSiHits( "nSilHits" );
396  return prodNSiHits.isAvailable(p) ? prodNSiHits(p) : -9999.;
397  }

◆ getNTRTHighThresholdHits() [1/2]

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

Accessor utility function for getting the value of nTRTHighThresholdHits.

Definition at line 433 of file TrackParametersHelper.h.

433  {
434  uint8_t iTrtHighThresholdHits(0);
435  return p.summaryValue( iTrtHighThresholdHits, xAOD::numberOfTRTHighThresholdHitsTotal ) ?
436  float( iTrtHighThresholdHits ) : -9999.;
437  }

◆ getNTRTHighThresholdHits() [2/2]

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

Definition at line 438 of file TrackParametersHelper.h.

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

453  {
454  if( nTRTHighThresholdHits(p)<0 or nTRTHighThresholdHitsXe(p)<0 ) return -9999.;
455  float pnTRTHighThresholdHits = ( nTRTHighThresholdHits(p) >= 0 ) ? nTRTHighThresholdHits(p) : 0.;
456  float pnTRTHighThresholdHitsXe = ( nTRTHighThresholdHitsXe(p) >= 0 ) ? nTRTHighThresholdHitsXe(p) : 0.;
457  return ( pnTRTHighThresholdHits - pnTRTHighThresholdHitsXe );
458  }

◆ getNTRTHighThresholdHitsAr() [2/2]

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

Definition at line 459 of file TrackParametersHelper.h.

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

443  {
444  uint8_t iTrtHighThresholdHitsXe(0);
445  return p.summaryValue( iTrtHighThresholdHitsXe, xAOD::numberOfTRTHighThresholdHits ) ?
446  float( iTrtHighThresholdHitsXe ) : -9999.;
447  }

◆ getNTRTHighThresholdHitsXe() [2/2]

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

Definition at line 448 of file TrackParametersHelper.h.

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

402  {
403  uint8_t iTrtHits(0);
404  return p.summaryValue( iTrtHits, xAOD::numberOfTRTHits ) ?
405  float( iTrtHits ) : -9999.;
406  }

◆ getNTRTHits() [2/2]

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

Definition at line 407 of file TrackParametersHelper.h.

407 { 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 422 of file TrackParametersHelper.h.

422  {
423  if( nTRTHits(p)<0 or nTRTHitsXe(p)<0 ) return -9999.;
424  float pnTRTHits = ( nTRTHits(p) >= 0 ) ? nTRTHits(p) : 0.;
425  float pnTRTHitsXe = ( nTRTHitsXe(p) >= 0 ) ? nTRTHitsXe(p) : 0.;
426  return ( pnTRTHits - pnTRTHitsXe );
427  }

◆ getNTRTHitsAr() [2/2]

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

Definition at line 428 of file TrackParametersHelper.h.

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

412  {
413  uint8_t iTrtHitsXe(0);
414  return p.summaryValue( iTrtHitsXe, xAOD::numberOfTRTXenonHits ) ?
415  float( iTrtHitsXe ) : -9999.;
416  }

◆ getNTRTHitsXe() [2/2]

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

Definition at line 417 of file TrackParametersHelper.h.

417 { 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 53 of file TrackParametersHelper.h.

53 { return p.phi0(); }

◆ getPhi() [2/2]

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

Definition at line 54 of file TrackParametersHelper.h.

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

◆ getPixeldEdx() [1/2]

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

Accessor utility function for getting the value of pixeldEdx.

Definition at line 349 of file TrackParametersHelper.h.

349  {
350  float iPixeldEdx(0);
351  return p.summaryValue( iPixeldEdx, xAOD::pixeldEdx ) ? iPixeldEdx : -9999.;
352  }

◆ getPixeldEdx() [2/2]

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

Definition at line 353 of file TrackParametersHelper.h.

353 { return -9999.; }

◆ getProdR() [1/2]

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

Accessor utility function for getting the value of R.

Definition at line 85 of file TrackParametersHelper.h.

85 { return -9999.; }

◆ getProdR() [2/2]

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

Definition at line 86 of file TrackParametersHelper.h.

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

◆ getProdZ() [1/2]

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

Accessor utility function for getting the value of Z.

Definition at line 94 of file TrackParametersHelper.h.

94 { return -9999.; }

◆ getProdZ() [2/2]

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

Definition at line 95 of file TrackParametersHelper.h.

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

◆ getPTError() [1/2]

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

Accessor utility function for getting the Pt error.

Definition at line 196 of file TrackParametersHelper.h.

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

◆ getPTError() [2/2]

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

Definition at line 209 of file TrackParametersHelper.h.

209 { 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 103 of file TrackParametersHelper.h.

103 { return p.qOverP(); }

◆ getQoverP() [2/2]

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

Definition at line 104 of file TrackParametersHelper.h.

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

◆ getQOverPTError() [1/2]

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

Accessor utility function for getting the QOverPt error.

Definition at line 182 of file TrackParametersHelper.h.

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

◆ getQOverPTError() [2/2]

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

Definition at line 191 of file TrackParametersHelper.h.

191 { 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 44 of file TrackParametersHelper.h.

44 { return p.theta(); }

◆ getTheta() [2/2]

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

Definition at line 45 of file TrackParametersHelper.h.

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

◆ getTime() [1/2]

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

Accessor utility function for getting the track time.

Definition at line 154 of file TrackParametersHelper.h.

154 { return p.time(); }

◆ getTime() [2/2]

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

Definition at line 155 of file TrackParametersHelper.h.

155 { return -9999.; }

◆ 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  return truthMatchProbabilityAcc.withDefault( track, -1 );
56  }

◆ getTruthMatchProb() [2/2]

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

Definition at line 76 of file OfflineObjectDecorHelper.h.

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

◆ getZ0() [1/2]

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

Accessor utility function for getting the value of z0.

Definition at line 64 of file TrackParametersHelper.h.

64 { return p.z0(); }

◆ getZ0() [2/2]

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

Definition at line 65 of file TrackParametersHelper.h.

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

◆ getZ0SinThetaError() [1/2]

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

Accessor utility function for getting the z0SinTheta error.

Definition at line 223 of file TrackParametersHelper.h.

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

◆ getZ0SinThetaError() [2/2]

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

Definition at line 230 of file TrackParametersHelper.h.

230 { return 0.; }

◆ hasValidTime()

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

Definition at line 151 of file TrackParametersHelper.h.

151 { 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 70 of file OfflineObjectDecorHelper.cxx.

71  {
73  if( unlinkedAsFakes and isUnlinkedTruth( track ) ) return true;
74  float prob = getTruthMatchProb( track );
77  return ( prob < truthProbCut );
78  }

◆ isFakeTruth() [2/2]

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

Definition at line 84 of file OfflineObjectDecorHelper.h.

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

◆ isHadron()

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

Definition at line 256 of file TrackParametersHelper.h.

256 { return getIsHadron( p ); }

◆ isReconstructable() [1/2]

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

Definition at line 87 of file OfflineObjectDecorHelper.h.

87 { 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 81 of file OfflineObjectDecorHelper.cxx.

82  {
83  // Get eta bin
84  float absEta = std::abs(truth.eta());
85  absEta = std::clamp(absEta, etaBins.front(), etaBins.back());
86  const auto pVal = std::lower_bound(etaBins.begin(), etaBins.end(), absEta);
87  const unsigned int bin = std::distance(etaBins.begin(), pVal) - 1;
88  return ( nSiHits(truth) >= minSilHits.at( bin ) );
89  }

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

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

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

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

◆ ndof()

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

Definition at line 132 of file TrackParametersHelper.h.

132 { return getNdof(p); }

◆ nInnerMostPixelEndcapHits()

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

Definition at line 276 of file TrackParametersHelper.h.

276 { return getNInnerMostPixelEndcapHits( p ); }

◆ nInnerMostPixelHits()

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

Definition at line 266 of file TrackParametersHelper.h.

266 { return getNInnerMostPixelHits( p ); }

◆ nInnerMostPixelSharedEndcapHits()

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

Definition at line 316 of file TrackParametersHelper.h.

◆ nInnerMostPixelSharedHits()

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

Definition at line 306 of file TrackParametersHelper.h.

306 { return getNInnerMostPixelSharedHits( p ); }

◆ nNextToInnerMostPixelEndcapHits()

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

Definition at line 296 of file TrackParametersHelper.h.

◆ nNextToInnerMostPixelHits()

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

Definition at line 286 of file TrackParametersHelper.h.

286 { return getNNextToInnerMostPixelHits( p ); }

◆ nPixelHits()

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

Definition at line 326 of file TrackParametersHelper.h.

326 { return getNPixelHits( p ); }

◆ nPixelHoles()

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

Definition at line 336 of file TrackParametersHelper.h.

336 { return getNPixelHoles( p ); }

◆ nPixelSharedHits()

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

Definition at line 346 of file TrackParametersHelper.h.

346 { return getNPixelSharedHits( p ); }

◆ nSCTHits()

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

Definition at line 365 of file TrackParametersHelper.h.

365 { return getNSCTHits( p ); }

◆ nSCTHoles()

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

Definition at line 375 of file TrackParametersHelper.h.

375 { return getNSCTHoles( p ); }

◆ nSCTSharedHits()

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

Definition at line 385 of file TrackParametersHelper.h.

385 { return getNSCTSharedHits( p ); }

◆ nSiHits()

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

Definition at line 399 of file TrackParametersHelper.h.

399 { return getNSiHits( p ); }

◆ nTRTHighThresholdHits()

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

Definition at line 440 of file TrackParametersHelper.h.

440 { return getNTRTHighThresholdHits( p ); }

◆ nTRTHighThresholdHitsAr()

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

Definition at line 461 of file TrackParametersHelper.h.

461 { return getNTRTHighThresholdHitsAr( p ); }

◆ nTRTHighThresholdHitsXe()

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

Definition at line 450 of file TrackParametersHelper.h.

450 { return getNTRTHighThresholdHitsXe( p ); }

◆ nTRTHits()

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

Definition at line 409 of file TrackParametersHelper.h.

409 { return getNTRTHits( p ); }

◆ nTRTHitsAr()

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

Definition at line 430 of file TrackParametersHelper.h.

430 { return getNTRTHitsAr( p ); }

◆ nTRTHitsXe()

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

Definition at line 419 of file TrackParametersHelper.h.

419 { return getNTRTHitsXe( p ); }

◆ phi()

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

Definition at line 59 of file TrackParametersHelper.h.

59 { return getPhi( p ); }

◆ pixeldEdx()

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

Definition at line 355 of file TrackParametersHelper.h.

355 { return getPixeldEdx( p ); }

◆ prodR()

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

Definition at line 91 of file TrackParametersHelper.h.

91 { return getProdR( p ); }

◆ prodZ()

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

Definition at line 100 of file TrackParametersHelper.h.

100 { 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 31 of file TrackParametersHelper.h.

31 { return p.pt(); }

◆ pTError()

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

Definition at line 211 of file TrackParametersHelper.h.

211 { 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 35 of file TrackParametersHelper.h.

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

◆ qOverP()

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

Definition at line 109 of file TrackParametersHelper.h.

109 { return getQoverP( p ); }

◆ qOverPT()

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

Definition at line 112 of file TrackParametersHelper.h.

112 { return qOverP( p ) / std::sin( theta( p ) ); }

◆ qOverPTError()

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

Definition at line 193 of file TrackParametersHelper.h.

193 { return getQOverPTError(p); }

◆ theta()

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

Definition at line 50 of file TrackParametersHelper.h.

50 { return getTheta( p ); }

◆ time()

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

Definition at line 157 of file TrackParametersHelper.h.

157 { return getTime(p); }

◆ z0()

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

Definition at line 70 of file TrackParametersHelper.h.

70 { return getZ0( p ); }

◆ z0SinTheta()

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

Definition at line 73 of file TrackParametersHelper.h.

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

◆ z0SinThetaError()

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

Definition at line 232 of file TrackParametersHelper.h.

232 { 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::getNTRTHitsAr
float getNTRTHitsAr(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:428
IDTPM::getNNextToInnerMostPixelHits
float getNNextToInnerMostPixelHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:284
IDTPM::getNSiHits
float getNSiHits(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:394
IDTPM::getNTRTHighThresholdHitsXe
float getNTRTHighThresholdHitsXe(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:448
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:363
IDTPM::getTruthMatchProb
float getTruthMatchProb(const xAOD::TrackParticle &track)
getTruthMatchProb
Definition: OfflineObjectDecorHelper.cxx:53
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:179
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:209
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
IDTPM::getPTError
float getPTError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:209
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:77
IDTPM::z0
float z0(const U &p)
Definition: TrackParametersHelper.h:70
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:438
IDTPM::getHasValidTime
uint8_t getHasValidTime(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:149
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
ConvertOldUJHistosToNewHistos.etaBins
list etaBins
Definition: ConvertOldUJHistosToNewHistos.py:145
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
IDTPM::getCovVec
std::vector< float > getCovVec(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:177
IDTPM::getChiSquared
float getChiSquared(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:124
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
IDTPM::getNPixelHoles
float getNPixelHoles(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:334
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:324
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:373
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
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:326
IDTPM::getPixeldEdx
float getPixeldEdx(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:353
IDTPM::nTRTHighThresholdHitsXe
float nTRTHighThresholdHitsXe(const U &p)
Definition: TrackParametersHelper.h:450
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:170
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:264
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
IDTPM::getNTRTHighThresholdHitsAr
float getNTRTHighThresholdHitsAr(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:459
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:164
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
IDTPM::getZ0SinThetaError
float getZ0SinThetaError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:230
lumiFormat.i
int i
Definition: lumiFormat.py:85
IDTPM::nSCTHits
float nSCTHits(const U &p)
Definition: TrackParametersHelper.h:365
IDTPM::nTRTHits
float nTRTHits(const U &p)
Definition: TrackParametersHelper.h:409
Trk::theta
@ theta
Definition: ParamDefs.h:66
IDTPM::getProdR
float getProdR(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:86
IDTPM::getNTRTHitsXe
float getNTRTHitsXe(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:417
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:419
IDTPM::getNInnerMostPixelSharedHits
float getNInnerMostPixelSharedHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:304
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:294
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:31
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
IDTPM::getNInnerMostPixelSharedEndcapHits
float getNInnerMostPixelSharedEndcapHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:314
IDTPM::getQoverP
float getQoverP(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:104
IDTPM::getQOverPTError
float getQOverPTError(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:191
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
IDTPM::getTime
float getTime(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:155
xAOD::numberOfSCTHoles
@ numberOfSCTHoles
number of SCT holes [unit8_t].
Definition: TrackingPrimitives.h:270
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:383
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:274
IDTPM::getNTRTHits
float getNTRTHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:407
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:109
IDTPM::getAuthor
std::vector< unsigned int > getAuthor(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:143
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:218
xAOD::NumberOfTrackRecoInfo
@ NumberOfTrackRecoInfo
maximum number of enums
Definition: TrackingPrimitives.h:189
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::error
float error(const U &p, Trk::ParamDefs par)
Definition: TrackParametersHelper.h:172
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
IDTPM::getTheta
float getTheta(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:45
IDTPM::getCov
float getCov(const xAOD::TruthParticle &, Trk::ParamDefs, Trk::ParamDefs)
Definition: TrackParametersHelper.h:162
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
IDTPM::nTRTHighThresholdHits
float nTRTHighThresholdHits(const U &p)
Definition: TrackParametersHelper.h:440
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
IDTPM::getNdof
float getNdof(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:130
IDTPM::getIsHadron
float getIsHadron(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:254
IDTPM::getNPixelSharedHits
float getNPixelSharedHits(const xAOD::TruthParticle &)
Definition: TrackParametersHelper.h:344
IDTPM::getProdZ
float getProdZ(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:95
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
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
readCCLHist.float
float
Definition: readCCLHist.py:83
IDTPM::isUnlinkedTruth
bool isUnlinkedTruth(const xAOD::TrackParticle &track)
isUnlinkedTruth
Definition: OfflineObjectDecorHelper.cxx:45
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
IDTPM::getZ0
float getZ0(const xAOD::TruthParticle &p)
Definition: TrackParametersHelper.h:65
IDTPM::nSiHits
float nSiHits(const U &p)
Definition: TrackParametersHelper.h:399
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:54