ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CP::TrackVertexAssociationTool Class Reference

General track-vertex association tool. More...

#include <TrackVertexAssociationTool.h>

Inheritance diagram for CP::TrackVertexAssociationTool:
Collaboration diagram for CP::TrackVertexAssociationTool:

Classes

class  WorkingPoint
 

Public Types

Public helper class for applying the difference TTVA WPs
typedef SG::AuxElement::ConstAccessor< std::vector< ElementLink< xAOD::VertexContainer > > > AMVFVerticesAcc
 
typedef SG::AuxElement::ConstAccessor< std::vector< float > > AMVFWeightsAcc
 

Public Member Functions

 TrackVertexAssociationTool (const std::string &name)
 
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function. More...
 
virtual bool isCompatible (const xAOD::TrackParticle &trk, const xAOD::Vertex &vx) const override
 This function just return the decision of whether the track is matched to the Vertex Not sure whether the track is matched to best choice. More...
 
virtual bool isCompatible (const xAOD::TrackParticle &trk) const override
 
virtual xAOD::TrackVertexAssociationMap getMatchMap (std::vector< const xAOD::TrackParticle * > &trk_list, std::vector< const xAOD::Vertex * > &vx_list) const override
 
virtual xAOD::TrackVertexAssociationMap getMatchMap (const xAOD::TrackParticleContainer &trkCont, const xAOD::VertexContainer &vxCont) const override
 
virtual ElementLink< xAOD::VertexContainergetUniqueMatchVertexLink (const xAOD::TrackParticle &trk, const xAOD::VertexContainer &vxCont) const override
 This functions will return the best matched vertex. More...
 
virtual const xAOD::VertexgetUniqueMatchVertex (const xAOD::TrackParticle &trk, std::vector< const xAOD::Vertex * > &vx_list) const override
 
virtual xAOD::TrackVertexAssociationMap getUniqueMatchMap (std::vector< const xAOD::TrackParticle * > &trk_list, std::vector< const xAOD::Vertex * > &vx_list) const override
 This functions related to the previous functions, will return a 2D vector to store the best matched tracks for each vertex. More...
 
virtual xAOD::TrackVertexAssociationMap getUniqueMatchMap (const xAOD::TrackParticleContainer &trkCont, const xAOD::VertexContainer &vxCont) const override
 
template<typename U , typename V >
xAOD::TrackVertexAssociationMap getMatchMapInternal (U &trk_list, V &vx_list) const
 
virtual void print () const
 Print the state of the tool. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool isMatch (const xAOD::TrackParticle &trk, const xAOD::Vertex &vx, const xAOD::EventInfo *evtInfo=nullptr) const
 
template<typename T , typename U >
xAOD::TrackVertexAssociationMap getMatchMapInternal (T &trk_list, U &vx_list) const
 
template<typename T , typename U >
xAOD::TrackVertexAssociationMap getUniqueMatchMapInternal (T &trk_list, U &vx_list) const
 
template<typename T >
const xAOD::VertexgetUniqueMatchVertexInternal (const xAOD::TrackParticle &trk, T &vx_list) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 
The properties that can be defined via the python job options
Gaudi::Property< std::string > m_wp
 
Gaudi::Property< float > m_d0_cut
 
Gaudi::Property< bool > m_use_d0sig
 
Gaudi::Property< float > m_d0sig_cut
 
Gaudi::Property< float > m_dzSinTheta_cut
 
Gaudi::Property< bool > m_doUsedInFit
 Flag to cut on d0sig instead of d0. More...
 
Gaudi::Property< bool > m_doPVPriority
 
Gaudi::Property< bool > m_requirePriVtx
 
Gaudi::Property< std::string > m_hardScatterDeco {this, "HardScatterLinkDeco", "hardScatterVertexLink"}
 The decoration name of the ElementLink to the hardscatter vertex (found on xAOD::EventInfo) More...
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_trkKey {this, "TrackContName", "InDetTrackParticles"}
 The name of the xAOD::TrackParticleContainer to access the AMVF vertices+weights for (not actually read). More...
 
Truly private internal data members
SG::ReadHandleKey< xAOD::EventInfom_eventInfo {this, "EventInfo", "EventInfo", "EventInfo key"}
 EventInfo key. More...
 
Gaudi::Property< std::string > m_vtxDecoName
 AMVF vertices decoration key. More...
 
SG::ReadDecorHandleKey< xAOD::TrackParticleContainerm_vtxDecoKey {this, "AMVFVerticesKey", "" , "Overwritten with the <AMVFVerticesDeco> property"}
 
std::unique_ptr< AMVFVerticesAccm_vtxDecoAcc {nullptr}
 AMVF vertices decoration accessor. More...
 
Gaudi::Property< std::string > m_wgtDecoName
 AMVF weights decoration key. More...
 
SG::ReadDecorHandleKey< xAOD::TrackParticleContainerm_wgtDecoKey {this, "MVWeightKey", "" , "Overwritten with the <AMVFWeightsDeco> property"}
 
std::unique_ptr< AMVFWeightsAccm_wgtDecoAcc {nullptr}
 AMVF weights decoration accessor. More...
 
SG::ReadDecorHandleKey< xAOD::EventInfom_hardScatterDecoKey
 Hardscatter vertex link key. More...
 
std::unique_ptr< WorkingPointm_applicator {nullptr}
 Stored WorkingPoint class. More...
 

Detailed Description

General track-vertex association tool.

Supported properties (set via setProperty):

To apply the recommendations, please visit https://twiki.cern.ch/twiki/bin/view/AtlasProtected/TrackingCPRecsEarly2018#Track_to_Vertex_Association_Tool

Definition at line 51 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

Member Typedef Documentation

◆ AMVFVerticesAcc

◆ AMVFWeightsAcc

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrackVertexAssociationTool()

TrackVertexAssociationTool::TrackVertexAssociationTool ( const std::string &  name)

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void *  ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119  {
120 
121 #ifdef XAOD_STANDALONE
122  // In case we use @c xAOD::TEvent, we have a direct function call
123  // for this.
124  return evtStore()->event()->getKey( ptr );
125 #else
126  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127  return ( proxy == nullptr ? 0 : proxy->sgkey() );
128 #endif // XAOD_STANDALONE
129  }

◆ getMatchMap() [1/2]

xAOD::TrackVertexAssociationMap TrackVertexAssociationTool::getMatchMap ( const xAOD::TrackParticleContainer trkCont,
const xAOD::VertexContainer vxCont 
) const
overridevirtual

◆ getMatchMap() [2/2]

xAOD::TrackVertexAssociationMap TrackVertexAssociationTool::getMatchMap ( std::vector< const xAOD::TrackParticle * > &  trk_list,
std::vector< const xAOD::Vertex * > &  vx_list 
) const
overridevirtual

◆ getMatchMapInternal() [1/2]

template<typename T , typename U >
xAOD::TrackVertexAssociationMap CP::TrackVertexAssociationTool::getMatchMapInternal ( T &  trk_list,
U &  vx_list 
) const
private

◆ getMatchMapInternal() [2/2]

template<typename U , typename V >
xAOD::TrackVertexAssociationMap CP::TrackVertexAssociationTool::getMatchMapInternal ( U &  trk_list,
V &  vx_list 
) const

Definition at line 412 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

413 {
415 
416  for (const auto& vertex : vx_list) {
418  trktovxlist.clear();
419  trktovxlist.reserve(trk_list.size());
420  for (const auto& track : trk_list) {
421  if (isCompatible(*track, *vertex)) {
422  trktovxlist.push_back(track);
423  }
424  }
425  trktovxmap[vertex] = trktovxlist;
426  }
427 
428  return trktovxmap;
429 }

◆ getName()

const std::string & asg::AsgTool::getName ( const void *  ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106  {
107 
108 #ifdef XAOD_STANDALONE
109  // In case we use @c xAOD::TEvent, we have a direct function call
110  // for this.
111  return evtStore()->event()->getName( ptr );
112 #else
113  const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114  static const std::string dummy = "";
115  return ( proxy == nullptr ? dummy : proxy->name() );
116 #endif // XAOD_STANDALONE
117  }

◆ getProperty()

template<class T >
const T* asg::AsgTool::getProperty ( const std::string &  name) const
inherited

Get one of the tool's properties.

◆ getUniqueMatchMap() [1/2]

xAOD::TrackVertexAssociationMap TrackVertexAssociationTool::getUniqueMatchMap ( const xAOD::TrackParticleContainer trkCont,
const xAOD::VertexContainer vxCont 
) const
overridevirtual

◆ getUniqueMatchMap() [2/2]

xAOD::TrackVertexAssociationMap TrackVertexAssociationTool::getUniqueMatchMap ( std::vector< const xAOD::TrackParticle * > &  trk_list,
std::vector< const xAOD::Vertex * > &  vx_list 
) const
overridevirtual

This functions related to the previous functions, will return a 2D vector to store the best matched tracks for each vertex.

Implements CP::ITrackVertexAssociationTool.

Definition at line 370 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

371 {
372  return getUniqueMatchMapInternal(trk_list, vx_list);
373 }

◆ getUniqueMatchMapInternal()

template<typename T , typename U >
xAOD::TrackVertexAssociationMap TrackVertexAssociationTool::getUniqueMatchMapInternal ( T &  trk_list,
U &  vx_list 
) const
private

Definition at line 467 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

468 {
470 
471  // Initialize our map
472  for (const auto& vertex : vx_list) {
474  trktovxlist.clear();
475  trktovxlist.reserve(trk_list.size());
476  trktovxmap[vertex] = trktovxlist;
477  }
478 
479  for (const auto& track : trk_list) {
480  const xAOD::Vertex* vx_match = getUniqueMatchVertexInternal(*track, vx_list);
481  if (vx_match) trktovxmap[vx_match].push_back(track); // Found matched vertex
482  }
483 
484  return trktovxmap;
485 }

◆ getUniqueMatchVertex()

const xAOD::Vertex * TrackVertexAssociationTool::getUniqueMatchVertex ( const xAOD::TrackParticle trk,
std::vector< const xAOD::Vertex * > &  vx_list 
) const
overridevirtual

◆ getUniqueMatchVertexInternal()

template<typename T >
const xAOD::Vertex * TrackVertexAssociationTool::getUniqueMatchVertexInternal ( const xAOD::TrackParticle trk,
T &  vx_list 
) const
private

Definition at line 432 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

433 {
434  FitWeight weight;
435  float dzSinTheta{0.};
436  float min_dz = ((m_dzSinTheta_cut >= 0) ? m_dzSinTheta_cut.value() : +999.0);
437  const xAOD::Vertex* bestMatchVertex = nullptr;
438 
439  for (const auto& vertex : vx_list) {
440  weight = ::fitWeight(&trk, vertex, *m_vtxDecoAcc, *m_wgtDecoAcc);
441  if (m_doUsedInFit && weight.first > 0.0 && weight.first >= weight.second) {
442  bestMatchVertex = vertex;
443  break;
444  }
445  else {
446  if (m_requirePriVtx && vertex->vertexType() != xAOD::VxType::PriVtx) continue;
447  if (isCompatible(trk, *vertex)) {
448  dzSinTheta = ::absDzSinTheta(&trk, vertex);
449  if (dzSinTheta < min_dz) {
450  min_dz = dzSinTheta;
451  bestMatchVertex = vertex;
452  if(m_doPVPriority) break; //This will stop the iteration on the vertices. This works since the PV should always be the first entry in the vertex collection
453  }
454  }
455  }
456  }
457 
458  // Check if get the matched vertex
459  if (!bestMatchVertex) {
460  ATH_MSG_DEBUG("Could not find any matched vertex for this track!");
461  }
462 
463  return bestMatchVertex;
464 }

◆ getUniqueMatchVertexLink()

ElementLink< xAOD::VertexContainer > TrackVertexAssociationTool::getUniqueMatchVertexLink ( const xAOD::TrackParticle trk,
const xAOD::VertexContainer vxCont 
) const
overridevirtual

This functions will return the best matched vertex.

Implements CP::ITrackVertexAssociationTool.

Definition at line 360 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

361 {
363  const xAOD::Vertex* vx_tmp = getUniqueMatchVertexInternal(trk, vxCont);
364  if (vx_tmp) {
365  vx_link_tmp.toContainedElement(vxCont, vx_tmp);
366  }
367  return vx_link_tmp;
368 }

◆ initialize()

StatusCode TrackVertexAssociationTool::initialize ( )
overridevirtual

Dummy implementation of the initialisation function.

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.

Definition at line 251 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

252 {
253  static const std::set<std::string> run_2_wps = {"Loose", "Nominal", "Tight", "Electron", "Muon", "Old_Loose", "Old_Nominal", "Old_Tight", "Old_Electron", "Old_Muon"};
254  std::string wp{m_wp};
255  if (run_2_wps.count(wp)) {
256  std::string prefix = "Old_";
257  if (wp.compare(0, prefix.size(), prefix) == 0) {
258  ATH_MSG_WARNING("WorkingPoint '" << m_wp << "' corresponds to a Run 2 working point and is not recommended.");
259  }
260  else {
261  ATH_MSG_WARNING("WorkingPoint '" << m_wp << "' corresponds to a Run 2 working point and is not recommended - remapping to 'Old_" << m_wp << "' (same definition, however).");
262  wp.insert(0, "Old_");
263  }
264  m_wp = wp;
265  }
266 
267  IF_WORKING_POINT(Old_Loose, true, true)
268  else IF_WORKING_POINT(Old_Nominal, false, false)
269  else IF_WORKING_POINT(Old_Tight, false, false)
270  else IF_WORKING_POINT(Old_Electron, false, false)
271  else IF_WORKING_POINT(Old_Muon, false, false)
272  else IF_WORKING_POINT(Prompt_D0Sig, true, false)
273  else IF_WORKING_POINT(Nonprompt_Hard_D0Sig, true, false)
274  else IF_WORKING_POINT(Nonprompt_Medium_D0Sig, true, false)
275  else IF_WORKING_POINT(Nonprompt_All_D0Sig, true, false)
276  else IF_WORKING_POINT(Prompt_MaxWeight, true, false)
277  else IF_WORKING_POINT(Nonprompt_Hard_MaxWeight, true, false)
278  else IF_WORKING_POINT(Nonprompt_Medium_MaxWeight, true, false)
279  else IF_WORKING_POINT(Nonprompt_All_MaxWeight, true, false)
280  // Backwards compatability for Custom WP
281  else if (m_wp == "Custom") {
282  m_applicator = std::unique_ptr<CP::TrackVertexAssociationTool::WorkingPoint>(
284  }
285  else {
286  ATH_MSG_ERROR("Invalid TVA working point '" << m_wp << "' - for a custom configuration, please provide 'Custom' for the 'WorkingPoint' property.");
287  return StatusCode::FAILURE;
288  }
289 
290  if (m_wp == "Custom") {
291  ATH_MSG_INFO("TVA working point 'Custom' provided - tool properties are initialized to default values unless explicitly set by the user.");
292  }
293  else {
294  ATH_MSG_INFO("TVA working point '" << m_wp << "' provided - tool properties have been configured accordingly.");
295  }
296 
297  if (m_use_d0sig) {
298  ATH_MSG_DEBUG("(For Custom WP:) cut on d0 significance: " << m_d0sig_cut << "\t(d0sig_cut).");
299  }
300  else {
301  ATH_MSG_DEBUG("(For Custom WP:) cut on d0: " << m_d0_cut << "\t(d0_cut).");
302  }
303  ATH_MSG_DEBUG("(For Custom WP:) cut on Δz * sin θ: " << m_dzSinTheta_cut << "\t(dzSinTheta_cut).");
304  ATH_MSG_DEBUG("(For Custom WP:) allow UsedInFit MatchStatus: " << m_doUsedInFit << "\t(doUsedInFit).");
305  ATH_MSG_DEBUG("Require VxType::PriVtx for unique match: " << m_requirePriVtx << "\t(requirePriVtx).");
306 
307  // Initialize our EventInfo container and decoration reads
310  {
311  const std::string decorName = m_hardScatterDeco;
312  m_hardScatterDecoKey = m_eventInfo.key() + "." + decorName;
313  ATH_CHECK(m_hardScatterDecoKey.initialize(!decorName.empty()));
314  }
315  m_vtxDecoAcc = std::make_unique<AMVFVerticesAcc>(m_vtxDecoName);
317  ATH_CHECK(m_vtxDecoKey.initialize());
318  m_wgtDecoAcc = std::make_unique<AMVFWeightsAcc>(m_wgtDecoName);
320  ATH_CHECK(m_wgtDecoKey.initialize());
321 
322  return StatusCode::SUCCESS;
323 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isCompatible() [1/2]

bool TrackVertexAssociationTool::isCompatible ( const xAOD::TrackParticle trk) const
overridevirtual

Implements CP::ITrackVertexAssociationTool.

Definition at line 331 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

331  {
332  const EventContext& ctx = Gaudi::Hive::currentContext();
334  if (!evt.isValid()) {
335  throw std::runtime_error("ERROR in CP::TrackVertexAssociationTool::isCompatible : could not retrieve xAOD::EventInfo!");
336  }
338  const ElementLink<xAOD::VertexContainer>& vtxLink = hardScatterDeco(*evt);
339  if (!vtxLink.isValid()) {
340  throw std::runtime_error("ERROR in CP::TrackVertexAssociationTool::isCompatible : hardscatter vertex link is not valid!");
341  }
342  return isMatch(trk, **vtxLink, evt.get());
343 }

◆ isCompatible() [2/2]

bool TrackVertexAssociationTool::isCompatible ( const xAOD::TrackParticle trk,
const xAOD::Vertex vx 
) const
overridevirtual

This function just return the decision of whether the track is matched to the Vertex Not sure whether the track is matched to best choice.

Implements CP::ITrackVertexAssociationTool.

Definition at line 325 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

326 {
327  ATH_MSG_DEBUG("In TrackVertexAssociationTool::isCompatible function.");
328  return isMatch(trk, vx);
329 }

◆ isMatch()

bool TrackVertexAssociationTool::isMatch ( const xAOD::TrackParticle trk,
const xAOD::Vertex vx,
const xAOD::EventInfo evtInfo = nullptr 
) const
private

Definition at line 384 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx.

384  {
385 
386  const EventContext& ctx = Gaudi::Hive::currentContext();
387 
388  // Return false for fake vertices
389  if (vx.vertexType() == xAOD::VxType::NoVtx) {
390  return false;
391  }
392 
393  // Read our EventInfo
394  const xAOD::EventInfo* evt = nullptr;
395  if (!evtInfo) {
397  if (!evttmp.isValid()) {
398  throw std::runtime_error("ERROR in CP::TrackVertexAssociationTool::isMatch : could not retrieve xAOD::EventInfo!");
399  }
400  evt = evttmp.get();
401  }
402  else {
403  evt = evtInfo;
404  }
405 
406  // Apply the working point
407  return m_applicator->apply(&trk, &vx, evt, *m_vtxDecoAcc, *m_wgtDecoAcc);
408 
409 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101  {
102 
103  return MSG::name( msg().level() );
104  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

void asg::AsgTool::print ( ) const
virtualinherited

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_applicator

std::unique_ptr<WorkingPoint> CP::TrackVertexAssociationTool::m_applicator {nullptr}
private

◆ m_d0_cut

Gaudi::Property<float> CP::TrackVertexAssociationTool::m_d0_cut
private
Initial value:
{this, "d0_cut", -1.,
"Cut on d0. Not applied if set to -1."}

Definition at line 113 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_d0sig_cut

Gaudi::Property<float> CP::TrackVertexAssociationTool::m_d0sig_cut
private
Initial value:
{this, "d0sig_cut", -1.,
"Cut on d0Sig. Not applied if set to -1."}

Definition at line 119 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doPVPriority

Gaudi::Property<bool> CP::TrackVertexAssociationTool::m_doPVPriority
private
Initial value:
{this, "doPVPriority", false,
"Control whether to give priority to matching to PV instead of closest vertex."}

Definition at line 129 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_doUsedInFit

Gaudi::Property<bool> CP::TrackVertexAssociationTool::m_doUsedInFit
private
Initial value:
{this, "doUsedInFit", false,
"Control whether to allow for a MatchStatus of UsedInFit."}

Flag to cut on d0sig instead of d0.

Definition at line 126 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_dzSinTheta_cut

Gaudi::Property<float> CP::TrackVertexAssociationTool::m_dzSinTheta_cut
private
Initial value:
{this, "dzSinTheta_cut", -1.,
"Cut on |dz*sinTheta| (in mm). Not applied if set to -1." }

Definition at line 122 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_eventInfo

SG::ReadHandleKey<xAOD::EventInfo> CP::TrackVertexAssociationTool::m_eventInfo {this, "EventInfo", "EventInfo", "EventInfo key"}
private

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_hardScatterDeco

Gaudi::Property<std::string> CP::TrackVertexAssociationTool::m_hardScatterDeco {this, "HardScatterLinkDeco", "hardScatterVertexLink"}
private

The decoration name of the ElementLink to the hardscatter vertex (found on xAOD::EventInfo)

Definition at line 136 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_hardScatterDecoKey

SG::ReadDecorHandleKey<xAOD::EventInfo> CP::TrackVertexAssociationTool::m_hardScatterDecoKey
private
Initial value:
{this, "HardScatterLinkDecoKey" ,"" ,
"Will be overwritten with the <HardScatterLinkDeco> property"}

Hardscatter vertex link key.

Definition at line 166 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_requirePriVtx

Gaudi::Property<bool> CP::TrackVertexAssociationTool::m_requirePriVtx
private
Initial value:
{this, "requirePriVtx", false,
"Control whether a vertex must be VxType::PriVtx in order for a track (not UsedInFit) to be uniquely matched to it."}

Definition at line 132 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_trkKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> CP::TrackVertexAssociationTool::m_trkKey {this, "TrackContName", "InDetTrackParticles"}
private

The name of the xAOD::TrackParticleContainer to access the AMVF vertices+weights for (not actually read).

Definition at line 139 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_use_d0sig

Gaudi::Property<bool> CP::TrackVertexAssociationTool::m_use_d0sig
private
Initial value:
{this, "use_d0sig", false,
"Flag to cut on d0sig instead of d0."}

Definition at line 116 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vtxDecoAcc

std::unique_ptr<AMVFVerticesAcc> CP::TrackVertexAssociationTool::m_vtxDecoAcc {nullptr}
private

◆ m_vtxDecoKey

SG::ReadDecorHandleKey<xAOD::TrackParticleContainer> CP::TrackVertexAssociationTool::m_vtxDecoKey {this, "AMVFVerticesKey", "" , "Overwritten with the <AMVFVerticesDeco> property"}
private

◆ m_vtxDecoName

Gaudi::Property<std::string> CP::TrackVertexAssociationTool::m_vtxDecoName
private
Initial value:
{this, "AMVFVerticesDeco", "TTVA_AMVFVertices",
"The per-track decoration name of the vector of AMVF used-in-fit vertex ElementLinks."}

AMVF vertices decoration key.

Definition at line 152 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_wgtDecoAcc

std::unique_ptr<AMVFWeightsAcc> CP::TrackVertexAssociationTool::m_wgtDecoAcc {nullptr}
private

◆ m_wgtDecoKey

SG::ReadDecorHandleKey<xAOD::TrackParticleContainer> CP::TrackVertexAssociationTool::m_wgtDecoKey {this, "MVWeightKey", "" , "Overwritten with the <AMVFWeightsDeco> property"}
private

◆ m_wgtDecoName

Gaudi::Property<std::string> CP::TrackVertexAssociationTool::m_wgtDecoName
private
Initial value:
{this, "AMVFWeightsDeco", "TTVA_AMVFWeights",
"The per-track decoration name of the vector of AMVF used-in-fit annealing weights." }

AMVF weights decoration key.

Definition at line 159 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.

◆ m_wp

Gaudi::Property<std::string> CP::TrackVertexAssociationTool::m_wp
private
Initial value:
{this, "WorkingPoint", "Old_Nominal",
"Working point to operate on."}

Definition at line 110 of file InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h.


The documentation for this class was generated from the following files:
CP::TrackVertexAssociationTool::getUniqueMatchMapInternal
xAOD::TrackVertexAssociationMap getUniqueMatchMapInternal(T &trk_list, U &vx_list) const
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx:467
CP::TrackVertexAssociationTool::m_requirePriVtx
Gaudi::Property< bool > m_requirePriVtx
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:132
CP::TrackVertexAssociationTool::m_use_d0sig
Gaudi::Property< bool > m_use_d0sig
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:116
CP::TrackVertexAssociationTool::m_trkKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkKey
The name of the xAOD::TrackParticleContainer to access the AMVF vertices+weights for (not actually re...
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:139
CP::TrackVertexAssociationTool::isCompatible
virtual bool isCompatible(const xAOD::TrackParticle &trk, const xAOD::Vertex &vx) const override
This function just return the decision of whether the track is matched to the Vertex Not sure whether...
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx:325
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
CP::TrackVertexAssociationTool::m_hardScatterDeco
Gaudi::Property< std::string > m_hardScatterDeco
The decoration name of the ElementLink to the hardscatter vertex (found on xAOD::EventInfo)
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:136
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CP::TrackVertexAssociationTool::getUniqueMatchVertexInternal
const xAOD::Vertex * getUniqueMatchVertexInternal(const xAOD::TrackParticle &trk, T &vx_list) const
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx:432
CP::TrackVertexAssociationTool::m_vtxDecoAcc
std::unique_ptr< AMVFVerticesAcc > m_vtxDecoAcc
AMVF vertices decoration accessor.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:156
CP::TrackVertexAssociationTool::m_vtxDecoName
Gaudi::Property< std::string > m_vtxDecoName
AMVF vertices decoration key.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:152
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
xAOD::TrackVertexAssociationMap
std::map< const xAOD::Vertex *, xAOD::TrackVertexAssociationList > TrackVertexAssociationMap
Definition: TrackVertexAssociationMap.h:19
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
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
CP::TrackVertexAssociationTool::getMatchMapInternal
xAOD::TrackVertexAssociationMap getMatchMapInternal(T &trk_list, U &vx_list) const
IF_WORKING_POINT
#define IF_WORKING_POINT(WORKING_POINT, DO_USED_IN_FIT, REQUIRE_PRI_VTX)
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx:244
CP::TrackVertexAssociationTool::m_vtxDecoKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_vtxDecoKey
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:154
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
CP::TrackVertexAssociationTool::m_wp
Gaudi::Property< std::string > m_wp
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:110
CP::TrackVertexAssociationTool::m_wgtDecoAcc
std::unique_ptr< AMVFWeightsAcc > m_wgtDecoAcc
AMVF weights decoration accessor.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:163
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition: AsgTool.cxx:58
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition: StoreGate/StoreGate/ReadDecorHandle.h:94
CP::TrackVertexAssociationTool::m_doUsedInFit
Gaudi::Property< bool > m_doUsedInFit
Flag to cut on d0sig instead of d0.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:126
CP::TrackVertexAssociationTool::m_hardScatterDecoKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_hardScatterDecoKey
Hardscatter vertex link key.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:166
CP::TrackVertexAssociationTool::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
EventInfo key.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:149
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CP::TrackVertexAssociationTool::m_d0_cut
Gaudi::Property< float > m_d0_cut
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:113
xAOD::VxType::PriVtx
@ PriVtx
Primary vertex.
Definition: TrackingPrimitives.h:571
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
CP::TrackVertexAssociationTool::m_d0sig_cut
Gaudi::Property< float > m_d0sig_cut
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:119
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
PlotSFuncertainty.wp
wp
Definition: PlotSFuncertainty.py:112
CP::TrackVertexAssociationTool::m_dzSinTheta_cut
Gaudi::Property< float > m_dzSinTheta_cut
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:122
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
CP::TrackVertexAssociationTool::m_applicator
std::unique_ptr< WorkingPoint > m_applicator
Stored WorkingPoint class.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:170
xAOD::TrackVertexAssociationList
std::vector< const xAOD::TrackParticle * > TrackVertexAssociationList
Definition: TrackVertexAssociationMap.h:18
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
a
TList * a
Definition: liststreamerinfos.cxx:10
h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567
CP::TrackVertexAssociationTool::m_doPVPriority
Gaudi::Property< bool > m_doPVPriority
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:129
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
CP::TrackVertexAssociationTool::m_wgtDecoName
Gaudi::Property< std::string > m_wgtDecoName
AMVF weights decoration key.
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:159
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
CP::TrackVertexAssociationTool::isMatch
bool isMatch(const xAOD::TrackParticle &trk, const xAOD::Vertex &vx, const xAOD::EventInfo *evtInfo=nullptr) const
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/TrackVertexAssociationTool.cxx:384
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
SG::DataProxy
Definition: DataProxy.h:45
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
CP::TrackVertexAssociationTool::m_wgtDecoKey
SG::ReadDecorHandleKey< xAOD::TrackParticleContainer > m_wgtDecoKey
Definition: InnerDetector/InDetRecTools/TrackVertexAssociationTool/TrackVertexAssociationTool/TrackVertexAssociationTool.h:161