ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Trk::TrkObserverTool Class Reference

#include <TrkObserverTool.h>

Inheritance diagram for Trk::TrkObserverTool:
Collaboration diagram for Trk::TrkObserverTool:

Classes

struct  CacheEntry
 

Public Member Functions

 TrkObserverTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TrkObserverTool ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
void updateTrackMap (int uid, double score, xAOD::RejectionStep rejectStep, xAOD::RejectionReason rejectReason) const
 
void updateScore (int uid, double score) const
 
void rejectTrack (int uid, xAOD::RejectionStep rejectStep, xAOD::RejectionReason rejectReason) const
 
void addInputTrack (int uid, const Trk::Track &track) const
 
void addSubTrack (int track_uid, int parent_uid, const Trk::Track &track) const
 
ObservedTrackMapgetTrackMap (const EventContext &ctx) const
 
int saveTracksToStore (const EventContext &ctx, const ObservedTrackMap *trk_map) const
 
void updateHolesSharedHits (int uid, int numPixelHoles, int numSCTHoles, int numSplitSharedPixel, int numSplitSharedSCT, int numSharedOrSplit, int numSharedOrSplitPixels, int numShared, int isPatternTrack, int totalSiHits, int inROI, int hasIBLHit, int hasSharedIBLHit, int hasSharedPixel, int firstPixIsShared, int numPixelDeadSensor, int numSCTDeadSensor, int numPixelHits, int numSCTHits, int numUnused, int numTRT_Unused, int numSCT_Unused, int numPseudo, float averageSplit1, float averageSplit2, int numWeightedShared) const
 
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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

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

void newEvent (CacheEntry *ent) const
 
void dumpTrackMap (const ObservedTrackMap *trk_map) 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...
 

Static Private Member Functions

static std::string dumpRejection (xAOD::RejectionStep rejectStep, xAOD::RejectionReason rejectReason)
 
static int getNFinalTracks (const ObservedTrackMap *trk_map)
 
static int getNObservedTracks (const ObservedTrackMap *trk_map)
 

Private Attributes

SG::WriteHandleKey< TrackCollectionm_savedTracksWriteKey
 
SG::WriteHandleKey< ObservedTrackMapm_savedTracksMapWriteKey
 
std::mutex m_mutex
 
SG::SlotSpecificObj< CacheEntry > m_cache ATLAS_THREAD_SAFE
 
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
 

Static Private Attributes

static const std::map< xAOD::RejectionStep, std::string > m_rejectStep_descriptions
 
static const std::map< xAOD::RejectionReason, std::string > m_rejectReason_descriptions
 

Detailed Description

Definition at line 40 of file TrkObserverTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrkObserverTool()

Trk::TrkObserverTool::TrkObserverTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 61 of file TrkObserverTool.cxx.

63  declareInterface< ITrkObserverTool >(this);
64  declareProperty("ObsTrackCollection", m_savedTracksWriteKey);
65  declareProperty("ObsTrackCollectionMap", m_savedTracksMapWriteKey);
66 }

◆ ~TrkObserverTool()

Trk::TrkObserverTool::~TrkObserverTool ( )
virtualdefault

Member Function Documentation

◆ addInputTrack()

void Trk::TrkObserverTool::addInputTrack ( int  uid,
const Trk::Track track 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 168 of file TrkObserverTool.cxx.

168  {
169 
170  ATH_MSG_DEBUG("addInputTrack: track "<<uid);
171  // test to see if we have a new event
172  const EventContext& ctx{Gaudi::Hive::currentContext()};
173  std::lock_guard<std::mutex> lock{m_mutex};
174  CacheEntry* ent{m_cache.get(ctx)};
175  if (ent->m_evt!=ctx.evt()) {
176  // New event in this slot
177  newEvent(ent);
178  ent->m_evt = ctx.evt();
179  }
180  // add input track to cache map
181  std::unique_ptr<Trk::Track> copiedTrack = std::make_unique<Trk::Track>(track);
182  std::vector<xAOD::RejectionStep> v_rejectStep = {xAOD::RejectionStep::solveTracks};
183  std::vector<xAOD::RejectionReason> v_rejectReason = {xAOD::RejectionReason::acceptedTrack};
184  ent->m_observedTrkMap->insert( std::make_pair(uid, std::make_tuple(copiedTrack.release(), // Id, track
185  -1, // score
186  xAOD::RejectionStep::solveTracks, // rejection step
187  xAOD::RejectionReason::acceptedTrack, // rejection reason
188  0, // unique parentId
189  // holes/shared/split hits information (-2 means not filled yet)
190  -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2.0f, -2.0f, -2,
191  v_rejectStep, v_rejectReason)));
192 }

◆ addSubTrack()

void Trk::TrkObserverTool::addSubTrack ( int  track_uid,
int  parent_uid,
const Trk::Track track 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 194 of file TrkObserverTool.cxx.

194  {
195 
196  ATH_MSG_DEBUG("addSubTrack: subtrack "<<track_uid);
197  // get event context and map from cache
198  const EventContext& ctx{Gaudi::Hive::currentContext()};
199  std::lock_guard<std::mutex> lock{m_mutex};
200  ObservedTrackMap* trk_map = getTrackMap(ctx);
201 
202  // deep copy of the track (because some subtracks get deleted), information has to be available later
203  std::unique_ptr<Trk::Track> copiedTrack = std::make_unique<Trk::Track>(track);
204  // get score and rejection step from parent element
205  double score = -1;
207  if ( trk_map->find(parent_uid) == trk_map->end() ) {
208  // not found
209  ATH_MSG_WARNING("addSubTrack: parent " << parent_uid << " not found in observedTrkMap");
210  }
211  else {
212  // found
213  score = std::get<xAOD::ObserverToolIndex::score>(trk_map->at(parent_uid));
214  rejectStep = std::get<xAOD::ObserverToolIndex::rejectStep>(trk_map->at(parent_uid));
215  ATH_MSG_DEBUG("addSubTrack: track "<<track_uid<<" with parent "<<parent_uid<<", score "<<score);
216  }
217  // add subtrack to cache map
218  std::vector<xAOD::RejectionStep> v_rejectStep = {rejectStep};
219  std::vector<xAOD::RejectionReason> v_rejectReason = {xAOD::RejectionReason::acceptedTrack};
220  trk_map->insert( std::make_pair(track_uid, std::make_tuple(copiedTrack.release(), // Id, track
221  score, // score
222  rejectStep, // rejection step
223  xAOD::RejectionReason::acceptedTrack, // rejection reason
224  parent_uid, // unique parentId
225  // holes/shared/split hits information (-2 means not filled yet)
226  -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2.0f, -2.0f, -2,
227  v_rejectStep, v_rejectReason)));
228 }

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

◆ dumpRejection()

std::string Trk::TrkObserverTool::dumpRejection ( xAOD::RejectionStep  rejectStep,
xAOD::RejectionReason  rejectReason 
)
staticprivate

Definition at line 391 of file TrkObserverTool.cxx.

391  {
392  // Generate rejection description
393  std::string rejection_step = "";
394  std::string rejection_reason = "";
395  std::string rejection_description = "";
396  const auto istep = m_rejectStep_descriptions.find(rejectStep);
397  if ( istep == m_rejectStep_descriptions.end() ) {
398  // not found
399  rejection_step = "REJECTION STEP DESCRIPTION NOT FOUND: " + std::to_string(rejectStep);
400  }
401  else {
402  // found
403  rejection_step = istep->second;
404  }
405  const auto ireason = m_rejectReason_descriptions.find(rejectReason);
406  if ( ireason == m_rejectReason_descriptions.end() ) {
407  // not found
408  rejection_reason = "REJECTION REASON DESCRIPTION NOT FOUND: " + std::to_string(rejectReason);
409  }
410  else {
411  // found
412  rejection_reason = ireason->second;
413  }
414  rejection_description = rejection_step + " (" + rejection_reason + ")";
415  return rejection_description;
416 }

◆ dumpTrackMap()

void Trk::TrkObserverTool::dumpTrackMap ( const ObservedTrackMap trk_map) const
private

Definition at line 349 of file TrkObserverTool.cxx.

349  {
350 
351  // prints out/dumps all entries in m_observedTrkMap
352 
353  std::lock_guard<std::mutex> lock{m_mutex};
354 
355  ATH_MSG_INFO ("Dump observedTrkMap (size = " << getNObservedTracks(trk_map) << ")");
356  for (const auto& itrMap : *trk_map) {
357  ATH_MSG_DEBUG("Id: " << itrMap.first);
358  ATH_MSG_DEBUG("\tscore: " << std::get<xAOD::ObserverToolIndex::score>(itrMap.second));
359  ATH_MSG_DEBUG("\trejectStep: " << std::get<xAOD::ObserverToolIndex::rejectStep>(itrMap.second));
360  ATH_MSG_DEBUG("\trejectReason: " << std::get<xAOD::ObserverToolIndex::rejectReason>(itrMap.second));
361  ATH_MSG_DEBUG("\tparentId: " << std::get<xAOD::ObserverToolIndex::parentId>(itrMap.second));
362  ATH_MSG_DEBUG("\tnumPixelHoles: " << std::get<xAOD::ObserverToolIndex::numPixelHoles>(itrMap.second));
363  ATH_MSG_DEBUG("\tnumSCTHoles: " << std::get<xAOD::ObserverToolIndex::numSCTHoles>(itrMap.second));
364  ATH_MSG_DEBUG("\tnumSplitSharedPixel: " << std::get<xAOD::ObserverToolIndex::numSplitSharedPixel>(itrMap.second));
365  ATH_MSG_DEBUG("\tnumSplitSharedSCT: " << std::get<xAOD::ObserverToolIndex::numSplitSharedSCT>(itrMap.second));
366  ATH_MSG_DEBUG("\tnumSharedOrSplit: " << std::get<xAOD::ObserverToolIndex::numSharedOrSplit>(itrMap.second));
367  ATH_MSG_DEBUG("\tnumSharedOrSplitPixels: " << std::get<xAOD::ObserverToolIndex::numSharedOrSplitPixels>(itrMap.second));
368  ATH_MSG_DEBUG("\tnumShared: " << std::get<xAOD::ObserverToolIndex::numShared>(itrMap.second));
369  ATH_MSG_DEBUG("\tisPatternTrack: " << std::get<xAOD::ObserverToolIndex::isPatternTrack>(itrMap.second));
370  ATH_MSG_DEBUG("\ttotalSiHits: " << std::get<xAOD::ObserverToolIndex::totalSiHits>(itrMap.second));
371  ATH_MSG_DEBUG("\tinROI: " << std::get<xAOD::ObserverToolIndex::inROI>(itrMap.second));
372  ATH_MSG_DEBUG("\thasIBLHit: " << std::get<xAOD::ObserverToolIndex::hasIBLHit>(itrMap.second));
373  ATH_MSG_DEBUG("\thasSharedIBLHit: " << std::get<xAOD::ObserverToolIndex::hasSharedIBLHit>(itrMap.second));
374  ATH_MSG_DEBUG("\thasSharedPixel: " << std::get<xAOD::ObserverToolIndex::hasSharedPixel>(itrMap.second));
375  ATH_MSG_DEBUG("\tfirstPixIsShared: " << std::get<xAOD::ObserverToolIndex::firstPixIsShared>(itrMap.second));
376  ATH_MSG_DEBUG("\tnumPixelDeadSensor: " << std::get<xAOD::ObserverToolIndex::numPixelDeadSensor>(itrMap.second));
377  ATH_MSG_DEBUG("\tnumSCTDeadSensor: " << std::get<xAOD::ObserverToolIndex::numSCTDeadSensor>(itrMap.second));
378  ATH_MSG_DEBUG("\tnumPixelHits: " << std::get<xAOD::ObserverToolIndex::numPixelHits>(itrMap.second));
379  ATH_MSG_DEBUG("\tnumSCTHits: " << std::get<xAOD::ObserverToolIndex::numSCTHits>(itrMap.second));
380  ATH_MSG_DEBUG("\tnumUnused: " << std::get<xAOD::ObserverToolIndex::numUnused>(itrMap.second));
381  ATH_MSG_DEBUG("\tnumTRT_Unused: " << std::get<xAOD::ObserverToolIndex::numTRT_Unused>(itrMap.second));
382  ATH_MSG_DEBUG("\tnumSCT_Unused: " << std::get<xAOD::ObserverToolIndex::numSCT_Unused>(itrMap.second));
383  ATH_MSG_DEBUG("\tnumPseudo: " << std::get<xAOD::ObserverToolIndex::numPseudo>(itrMap.second));
384  ATH_MSG_DEBUG("\taverageSplit1: " << std::get<xAOD::ObserverToolIndex::averageSplit1>(itrMap.second));
385  ATH_MSG_DEBUG("\taverageSplit2: " << std::get<xAOD::ObserverToolIndex::averageSplit2>(itrMap.second));
386  ATH_MSG_DEBUG("\tnumWeightedShared: " << std::get<xAOD::ObserverToolIndex::numWeightedShared>(itrMap.second));
387  }
388  ATH_MSG_DEBUG("Number of RejectionReason = acceptedTrack (should equal final tracks): " << getNFinalTracks(trk_map));
389 }

◆ 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

◆ finalize()

StatusCode Trk::TrkObserverTool::finalize ( )
virtual

Definition at line 85 of file TrkObserverTool.cxx.

85  {
86  ATH_MSG_INFO("Finalizing " << name() << "...");
87  return StatusCode::SUCCESS;
88 }

◆ getNFinalTracks()

int Trk::TrkObserverTool::getNFinalTracks ( const ObservedTrackMap trk_map)
staticprivate

Definition at line 418 of file TrkObserverTool.cxx.

418  {
419  // counts the tracks which did not get rejected (this number should equal finalTracks)
420  int nFinalTracks = 0;
421  for (const auto& itrMap : *trk_map) {
422  if (std::get<xAOD::ObserverToolIndex::rejectReason>(itrMap.second) == xAOD::RejectionReason::acceptedTrack) nFinalTracks++;
423  }
424  return nFinalTracks;
425 }

◆ getNObservedTracks()

int Trk::TrkObserverTool::getNObservedTracks ( const ObservedTrackMap trk_map)
staticprivate

Definition at line 427 of file TrkObserverTool.cxx.

427  {
428  // check the number of tracks in the observer tool map
429  return trk_map->size();
430 }

◆ getTrackMap()

ObservedTrackMap * Trk::TrkObserverTool::getTrackMap ( const EventContext &  ctx) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 230 of file TrkObserverTool.cxx.

230  {
231 
232  ATH_MSG_DEBUG("Get track map from cache");
233  // get cache
234  CacheEntry* ent{m_cache.get(ctx)};
235  // sanity check
236  if (ent->m_evt!=ctx.evt()) {
237  ATH_MSG_ERROR("Different event context in getTrackMap!!");
238  }
239  return ent->m_observedTrkMap;
240 }

◆ initialize()

StatusCode Trk::TrkObserverTool::initialize ( )
virtual

Definition at line 74 of file TrkObserverTool.cxx.

74  {
75  ATH_MSG_INFO("Initializing TrkObserverTool with name: " << name());
76  ATH_MSG_INFO("\tm_savedTracksWriteKey: " << m_savedTracksWriteKey.key());
77  ATH_MSG_INFO("\tm_savedTracksMapWriteKey: " << m_savedTracksMapWriteKey.key());
79  ATH_CHECK(m_savedTracksWriteKey.initialize(!m_savedTracksWriteKey.key().empty()));
81  ATH_MSG_INFO("Initialized TrkObserverTool");
82  return StatusCode::SUCCESS;
83 }

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

◆ interfaceID()

const InterfaceID & Trk::ITrkObserverTool::interfaceID ( )
inlinestaticinherited

Definition at line 49 of file ITrkObserverTool.h.

49  {
50  return IID_ITrkObserverTool;
51  }

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

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

◆ newEvent()

void Trk::TrkObserverTool::newEvent ( CacheEntry ent) const
private

Definition at line 93 of file TrkObserverTool.cxx.

93  {
94  ATH_MSG_DEBUG("Starting new event");
95  if (ent->m_observedTrkMap) {
96  ent->m_observedTrkMap->clear();
97  delete ent->m_observedTrkMap;
98  }
99  ent->m_observedTrkMap = new ObservedTrackMap;
100 }

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

◆ rejectTrack()

void Trk::TrkObserverTool::rejectTrack ( int  uid,
xAOD::RejectionStep  rejectStep,
xAOD::RejectionReason  rejectReason 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 145 of file TrkObserverTool.cxx.

145  {
146 
147  ATH_MSG_DEBUG("rejectTrack: track "<<uid);
148  // get event context and map from cache
149  const EventContext& ctx{Gaudi::Hive::currentContext()};
150  std::lock_guard<std::mutex> lock{m_mutex};
151  ObservedTrackMap* trk_map = getTrackMap(ctx);
152  // find track and update rejection location
153  if ( trk_map->find(uid) == trk_map->end() ) {
154  // not found
155  ATH_MSG_WARNING("rejectTrack: track "<<uid<<" not found in observedTrkMap");
156  }
157  else {
158  // found
159  std::get<xAOD::ObserverToolIndex::rejectStep>(trk_map->at(uid)) = rejectStep;
160  std::get<xAOD::ObserverToolIndex::rejectReason>(trk_map->at(uid)) = rejectReason;
161  // Keep track of cumulative rejection steps/reasons
162  std::get<xAOD::ObserverToolIndex::rejectStep_full>(trk_map->at(uid)).push_back(rejectStep);
163  std::get<xAOD::ObserverToolIndex::rejectReason_full>(trk_map->at(uid)).push_back(rejectReason);
164  ATH_MSG_DEBUG("rejectTrack: track "<<uid<<" with rejection in "<<dumpRejection(rejectStep, rejectReason));
165  }
166 }

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

◆ saveTracksToStore()

int Trk::TrkObserverTool::saveTracksToStore ( const EventContext &  ctx,
const ObservedTrackMap trk_map 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 242 of file TrkObserverTool.cxx.

242  {
243 
244  std::lock_guard<std::mutex> lock{m_mutex};
245  // Save tracks and map to store
246  ATH_MSG_INFO ("saveTracksToStore: Recording empty observed track containers to event store");
247  ATH_MSG_DEBUG("\tm_savedTracksWriteKey: "<<m_savedTracksWriteKey.key());
248  ATH_MSG_DEBUG("\tm_savedTracksMapWriteKey: "<<m_savedTracksMapWriteKey.key());
249 
252 
253  // Tracks write handle
254  StatusCode sc = wh_tracks.record(std::make_unique<TrackCollection>());
255  if (sc.isFailure()) {
256  ATH_MSG_ERROR("saveTracksToStore: Could not record input tracks: "<<m_savedTracksWriteKey.key());
257  }
258  else {
259  ATH_MSG_INFO("saveTracksToStore: Recorded empty container for input tracks to: "<<m_savedTracksWriteKey.key());
260  }
261  if (!wh_tracks.isValid()) {
262  ATH_MSG_DEBUG ("saveTracksToStore: Invalid key: "<<m_savedTracksWriteKey.key());
263  }
264  else {
265  ATH_MSG_DEBUG ("saveTracksToStore: Valid key: "<<m_savedTracksWriteKey.key());
266  }
267 
268  // Tracks map write handle
269  sc = wh_tracksMap.record(std::make_unique<ObservedTrackMap>());
270  if (sc.isFailure()) {
271  ATH_MSG_ERROR("saveTracksToStore: Could not record tracks map: "<<m_savedTracksMapWriteKey.key());
272  }
273  else {
274  ATH_MSG_INFO("saveTracksToStore: Recorded empty container for tracks map to: "<<m_savedTracksMapWriteKey.key());
275  }
276  if (!wh_tracksMap.isValid()) {
277  ATH_MSG_DEBUG ("saveTracksToStore: Invalid key: "<<m_savedTracksMapWriteKey.key());
278  }
279  else {
280  ATH_MSG_DEBUG ("saveTracksToStore: Valid key: "<<m_savedTracksMapWriteKey.key());
281  }
282  if (!trk_map){
283  return 0;
284  }
285  else {
286  ATH_MSG_INFO ("saveTracksToStore: Recording "<<trk_map->size() << " observed track candidates to event store");
287  }
288  for (const auto& itrMap : *trk_map) {
289  ATH_MSG_DEBUG("saveTracksToStore: Writing track with id "<<itrMap.first<<", rejection step "<<std::get<xAOD::ObserverToolIndex::rejectStep>(itrMap.second)<<", rejection reason "<<std::get<xAOD::ObserverToolIndex::rejectReason>(itrMap.second));
290  wh_tracks->push_back(std::get<xAOD::ObserverToolIndex::track>(itrMap.second));
291  wh_tracksMap->insert(std::make_pair(itrMap.first, itrMap.second));
292  }
293 
294  ATH_MSG_DEBUG("saveTracksToStore: Pushed "<<wh_tracks->size()<<" observed tracks to store");
295  ATH_MSG_DEBUG("saveTracksToStore: Pushed "<<wh_tracksMap->size()<<" pairs to track map in store");
296  // Keep track of "good" tracks as a sanity check
297  int nFinalTracks = getNFinalTracks(trk_map);
298  ATH_MSG_DEBUG ("saveTracksToStore: Number of RejectionReason = acceptedTrack (should equal final tracks): " << nFinalTracks);
299  return nFinalTracks;
300 }

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

◆ updateHolesSharedHits()

void Trk::TrkObserverTool::updateHolesSharedHits ( int  uid,
int  numPixelHoles,
int  numSCTHoles,
int  numSplitSharedPixel,
int  numSplitSharedSCT,
int  numSharedOrSplit,
int  numSharedOrSplitPixels,
int  numShared,
int  isPatternTrack,
int  totalSiHits,
int  inROI,
int  hasIBLHit,
int  hasSharedIBLHit,
int  hasSharedPixel,
int  firstPixIsShared,
int  numPixelDeadSensor,
int  numSCTDeadSensor,
int  numPixelHits,
int  numSCTHits,
int  numUnused,
int  numTRT_Unused,
int  numSCT_Unused,
int  numPseudo,
float  averageSplit1,
float  averageSplit2,
int  numWeightedShared 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 302 of file TrkObserverTool.cxx.

305  {
306 
307  ATH_MSG_DEBUG("updateHolesSharedHits: track "<<uid);
308  // get event context and map from cache
309  const EventContext& ctx{Gaudi::Hive::currentContext()};
310  std::lock_guard<std::mutex> lock{m_mutex};
311  ObservedTrackMap* trk_map = getTrackMap(ctx);
312 
313  // find track and update rejection location
314  if ( trk_map->find(uid) == trk_map->end() ) {
315  // not found
316  ATH_MSG_WARNING("updateHolesSharedHits: track "<<uid<<" not found in observedTrkMap");
317  }
318  else {
319  // found
320  std::get<xAOD::ObserverToolIndex::numPixelHoles>(trk_map->at(uid)) = numPixelHoles;
321  std::get<xAOD::ObserverToolIndex::numSCTHoles>(trk_map->at(uid)) = numSCTHoles;
322  std::get<xAOD::ObserverToolIndex::numSplitSharedPixel>(trk_map->at(uid)) = numSplitSharedPixel; // Number of Pixel clusters comptaible with being split that are also shared
323  std::get<xAOD::ObserverToolIndex::numSplitSharedSCT>(trk_map->at(uid)) = numSplitSharedSCT; // Number of SCT clusters comptaible with being split that are also shared
324  std::get<xAOD::ObserverToolIndex::numSharedOrSplit>(trk_map->at(uid)) = numSharedOrSplit; // Number of split + shared clusters
325  std::get<xAOD::ObserverToolIndex::numSharedOrSplitPixels>(trk_map->at(uid)) = numSharedOrSplitPixels; // Number of pixel clusters that are either split or shared
326  std::get<xAOD::ObserverToolIndex::numShared>(trk_map->at(uid)) = numShared; // Number of shared hits on track
327  std::get<xAOD::ObserverToolIndex::isPatternTrack>(trk_map->at(uid)) = isPatternTrack; // Pattern Track or Fitted track
328  std::get<xAOD::ObserverToolIndex::totalSiHits>(trk_map->at(uid)) = totalSiHits; // totalSiHits
329  std::get<xAOD::ObserverToolIndex::inROI>(trk_map->at(uid)) = inROI;
330  std::get<xAOD::ObserverToolIndex::hasIBLHit>(trk_map->at(uid)) = hasIBLHit;
331  std::get<xAOD::ObserverToolIndex::hasSharedIBLHit>(trk_map->at(uid)) = hasSharedIBLHit;
332  std::get<xAOD::ObserverToolIndex::hasSharedPixel>(trk_map->at(uid)) = hasSharedPixel;
333  std::get<xAOD::ObserverToolIndex::firstPixIsShared>(trk_map->at(uid)) = firstPixIsShared;
334  std::get<xAOD::ObserverToolIndex::numPixelDeadSensor>(trk_map->at(uid)) = numPixelDeadSensor;
335  std::get<xAOD::ObserverToolIndex::numSCTDeadSensor>(trk_map->at(uid)) = numSCTDeadSensor;
336  std::get<xAOD::ObserverToolIndex::numPixelHits>(trk_map->at(uid)) = numPixelHits;
337  std::get<xAOD::ObserverToolIndex::numSCTHits>(trk_map->at(uid)) = numSCTHits;
338  std::get<xAOD::ObserverToolIndex::numUnused>(trk_map->at(uid)) = numUnused;
339  std::get<xAOD::ObserverToolIndex::numTRT_Unused>(trk_map->at(uid)) = numTRT_Unused;
340  std::get<xAOD::ObserverToolIndex::numSCT_Unused>(trk_map->at(uid)) = numSCT_Unused;
341  std::get<xAOD::ObserverToolIndex::numPseudo>(trk_map->at(uid)) = numPseudo;
342  std::get<xAOD::ObserverToolIndex::averageSplit1>(trk_map->at(uid)) = averageSplit1;
343  std::get<xAOD::ObserverToolIndex::averageSplit2>(trk_map->at(uid)) = averageSplit2;
344  std::get<xAOD::ObserverToolIndex::numWeightedShared>(trk_map->at(uid)) = numWeightedShared;
345  ATH_MSG_DEBUG("updateHolesSharedHits: track "<<uid<<" with totalSiHits "<<totalSiHits);
346  }
347 }

◆ updateScore()

void Trk::TrkObserverTool::updateScore ( int  uid,
double  score 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 126 of file TrkObserverTool.cxx.

126  {
127 
128  ATH_MSG_DEBUG("updateScore: track "<<uid);
129  // get event context and map from cache
130  const EventContext& ctx{Gaudi::Hive::currentContext()};
131  std::lock_guard<std::mutex> lock{m_mutex};
132  ObservedTrackMap* trk_map = getTrackMap(ctx);
133  // find track and update score
134  if ( trk_map->find(uid) == trk_map->end() ) {
135  // not found
136  ATH_MSG_WARNING("updateScore: track " << uid << " not found in observedTrkMap");
137  }
138  else {
139  // found
140  std::get<xAOD::ObserverToolIndex::score>(trk_map->at(uid)) = score;
141  ATH_MSG_DEBUG("updateScore: track "<<uid<<" with score "<<score);
142  }
143 }

◆ updateTrackMap()

void Trk::TrkObserverTool::updateTrackMap ( int  uid,
double  score,
xAOD::RejectionStep  rejectStep,
xAOD::RejectionReason  rejectReason 
) const
virtual

Implements Trk::ITrkObserverTool.

Definition at line 102 of file TrkObserverTool.cxx.

102  {
103 
104  ATH_MSG_DEBUG("updateTrackMap: track "<<uid);
105  // get event context and map from cache
106  const EventContext& ctx{Gaudi::Hive::currentContext()};
107  std::lock_guard<std::mutex> lock{m_mutex};
108  ObservedTrackMap* trk_map = getTrackMap(ctx);
109  // find track and update score
110  if ( trk_map->find(uid) == trk_map->end() ) {
111  // not found
112  ATH_MSG_WARNING("updateTrackMap: track << " << uid << " not found in observedTrkMap");
113  }
114  else {
115  // found
116  std::get<xAOD::ObserverToolIndex::score>(trk_map->at(uid)) = score;
117  std::get<xAOD::ObserverToolIndex::rejectStep>(trk_map->at(uid)) = rejectStep;
118  std::get<xAOD::ObserverToolIndex::rejectReason>(trk_map->at(uid)) = rejectReason;
119  // Keep track of cumulative rejection steps/reasons
120  std::get<xAOD::ObserverToolIndex::rejectStep_full>(trk_map->at(uid)).push_back(rejectStep);
121  std::get<xAOD::ObserverToolIndex::rejectReason_full>(trk_map->at(uid)).push_back(rejectReason);
122  ATH_MSG_DEBUG("updateTrackMap: track "<<uid<<" with score, rejectStep, rejectReason: "<<score<<", "<<rejectStep<<", "<<rejectReason);
123  }
124 }

◆ 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

◆ ATLAS_THREAD_SAFE

SG::SlotSpecificObj<CacheEntry> m_cache Trk::TrkObserverTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 71 of file TrkObserverTool.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_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_mutex

std::mutex Trk::TrkObserverTool::m_mutex
mutableprivate

Definition at line 65 of file TrkObserverTool.h.

◆ m_rejectReason_descriptions

const std::map< xAOD::RejectionReason, std::string > Trk::TrkObserverTool::m_rejectReason_descriptions
staticprivate

Definition at line 79 of file TrkObserverTool.h.

◆ m_rejectStep_descriptions

const std::map< xAOD::RejectionStep, std::string > Trk::TrkObserverTool::m_rejectStep_descriptions
staticprivate
Initial value:
= {
{xAOD::RejectionStep::addNewTracks, "DenseEnvironmentsAmbiguityScoreProcessorTool::addNewTracks"},
{xAOD::RejectionStep::refitTrack, "AmbiguityProcessorBase::refitTrack"},
{xAOD::RejectionStep::addTrack, "AmbiguityProcessorBase::addTrack"},
{xAOD::RejectionStep::decideWhichHitsToKeep, "InDetDenseEnvAmbiTrackSelectionTool::decideWhichHitsToKeep"},
{xAOD::RejectionStep::getCleanedOutTrack, "InDetDenseEnvAmbiTrackSelectionTool::getCleanedOutTrack"}
}

Definition at line 78 of file TrkObserverTool.h.

◆ m_savedTracksMapWriteKey

SG::WriteHandleKey<ObservedTrackMap> Trk::TrkObserverTool::m_savedTracksMapWriteKey
private

Definition at line 63 of file TrkObserverTool.h.

◆ m_savedTracksWriteKey

SG::WriteHandleKey<TrackCollection> Trk::TrkObserverTool::m_savedTracksWriteKey
private

Definition at line 62 of file TrkObserverTool.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.


The documentation for this class was generated from the following files:
xAOD::numSharedOrSplit
@ numSharedOrSplit
Definition: TrackingPrimitives.h:521
xAOD::hasIBLHit
@ hasIBLHit
Definition: TrackingPrimitives.h:527
xAOD::numWeightedShared
@ numWeightedShared
Definition: TrackingPrimitives.h:541
xAOD::numUnused
@ numUnused
Definition: TrackingPrimitives.h:535
Trk::TrkObserverTool::m_savedTracksMapWriteKey
SG::WriteHandleKey< ObservedTrackMap > m_savedTracksMapWriteKey
Definition: TrkObserverTool.h:63
xAOD::acceptedTrack
@ acceptedTrack
Definition: TrackingPrimitives.h:472
xAOD::isPatternTrack
@ isPatternTrack
Definition: TrackingPrimitives.h:524
xAOD::averageSplit2
@ averageSplit2
Definition: TrackingPrimitives.h:540
xAOD::addNewTracks
@ addNewTracks
Definition: TrackingPrimitives.h:461
xAOD::hasSharedIBLHit
@ hasSharedIBLHit
Definition: TrackingPrimitives.h:528
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
initialize
void initialize()
Definition: run_EoverP.cxx:894
xAOD::numSplitSharedPixel
@ numSplitSharedPixel
Definition: TrackingPrimitives.h:519
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
xAOD::numPseudo
@ numPseudo
Definition: TrackingPrimitives.h:538
xAOD::firstPixIsShared
@ firstPixIsShared
Definition: TrackingPrimitives.h:530
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
Trk::TrkObserverTool::m_rejectReason_descriptions
static const std::map< xAOD::RejectionReason, std::string > m_rejectReason_descriptions
Definition: TrkObserverTool.h:79
xAOD::hasSharedPixel
@ hasSharedPixel
Definition: TrackingPrimitives.h:529
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
Trk::TrkObserverTool::dumpRejection
static std::string dumpRejection(xAOD::RejectionStep rejectStep, xAOD::RejectionReason rejectReason)
Definition: TrkObserverTool.cxx:391
ObservedTrackMap
std::map< int, std::tuple< Trk::Track *, double, xAOD::RejectionStep, xAOD::RejectionReason, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, float, float, int, std::vector< xAOD::RejectionStep >, std::vector< xAOD::RejectionReason > > > ObservedTrackMap
Definition: ObservedTrackMap.h:50
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
xAOD::numSCTDeadSensor
@ numSCTDeadSensor
Definition: TrackingPrimitives.h:532
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
xAOD::addTrack
@ addTrack
Definition: TrackingPrimitives.h:465
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
xAOD::totalSiHits
@ totalSiHits
Definition: TrackingPrimitives.h:525
xAOD::numPixelHits
@ numPixelHits
Definition: TrackingPrimitives.h:533
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
Trk::TrkObserverTool::getTrackMap
ObservedTrackMap * getTrackMap(const EventContext &ctx) const
Definition: TrkObserverTool.cxx:230
xAOD::numSharedOrSplitPixels
@ numSharedOrSplitPixels
Definition: TrackingPrimitives.h:522
xAOD::numSCTHits
@ numSCTHits
Definition: TrackingPrimitives.h:534
test_pyathena.parent
parent
Definition: test_pyathena.py:15
xAOD::rejectStep
@ rejectStep
Definition: TrackingPrimitives.h:514
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
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
xAOD::numSCT_Unused
@ numSCT_Unused
Definition: TrackingPrimitives.h:537
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
Trk::TrkObserverTool::newEvent
void newEvent(CacheEntry *ent) const
Definition: TrkObserverTool.cxx:93
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
xAOD::inROI
@ inROI
Definition: TrackingPrimitives.h:526
Trk::TrkObserverTool::getNFinalTracks
static int getNFinalTracks(const ObservedTrackMap *trk_map)
Definition: TrkObserverTool.cxx:418
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
xAOD::decideWhichHitsToKeep
@ decideWhichHitsToKeep
Definition: TrackingPrimitives.h:467
xAOD::averageSplit1
@ averageSplit1
Definition: TrackingPrimitives.h:539
xAOD::score
@ score
Definition: TrackingPrimitives.h:513
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
a
TList * a
Definition: liststreamerinfos.cxx:10
Trk::TrkObserverTool::m_mutex
std::mutex m_mutex
Definition: TrkObserverTool.h:65
h
Trk::TrkObserverTool::getNObservedTracks
static int getNObservedTracks(const ObservedTrackMap *trk_map)
Definition: TrkObserverTool.cxx:427
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAOD::rejectReason
@ rejectReason
Definition: TrackingPrimitives.h:515
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
xAOD::numPixelHoles
@ numPixelHoles
Definition: TrackingPrimitives.h:517
xAOD::numTRT_Unused
@ numTRT_Unused
Definition: TrackingPrimitives.h:536
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
xAOD::numSCTHoles
@ numSCTHoles
Definition: TrackingPrimitives.h:518
xAOD::numSplitSharedSCT
@ numSplitSharedSCT
Definition: TrackingPrimitives.h:520
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::getCleanedOutTrack
@ getCleanedOutTrack
Definition: TrackingPrimitives.h:469
xAOD::numShared
@ numShared
Definition: TrackingPrimitives.h:523
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
xAOD::refitTrack
@ refitTrack
Definition: TrackingPrimitives.h:463
Trk::TrkObserverTool::m_savedTracksWriteKey
SG::WriteHandleKey< TrackCollection > m_savedTracksWriteKey
Definition: TrkObserverTool.h:62
xAOD::RejectionStep
RejectionStep
Definition: TrackingPrimitives.h:457
xAOD::numPixelDeadSensor
@ numPixelDeadSensor
Definition: TrackingPrimitives.h:531
Trk::TrkObserverTool::m_rejectStep_descriptions
static const std::map< xAOD::RejectionStep, std::string > m_rejectStep_descriptions
Definition: TrkObserverTool.h:78
fitman.k
k
Definition: fitman.py:528
xAOD::solveTracks
@ solveTracks
Definition: TrackingPrimitives.h:459