ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
FPGATrackSimOverlapRemovalTool Class Reference

Remove (mark) duplicate tracks This tool takes FPGATrackSimTrack as input and mark their status of passing/failing the overlap removal criteria. More...

#include <FPGATrackSimOverlapRemovalTool.h>

Inheritance diagram for FPGATrackSimOverlapRemovalTool:
Collaboration diagram for FPGATrackSimOverlapRemovalTool:

Public Member Functions

 FPGATrackSimOverlapRemovalTool (const std::string &, const std::string &, const IInterface *)
 
 FPGATrackSimOverlapRemovalTool ()=delete
 
StatusCode initialize () override
 
StatusCode runOverlapRemoval (std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads)
 
StatusCode runOverlapRemoval (std::vector< FPGATrackSimTrack > &tracks)
 
void setDoSecondStage (bool v)
 
bool getDoSecondStage () const
 
ORAlgo getAlgorithm () const
 
void findMinChi2MaxHit (const std::vector< int > &duplicates, std::vector< FPGATrackSimTrack > &tracks)
 
int findNCommonHits (const FPGATrackSimTrack &, const FPGATrackSimTrack &)
 
int findNonOverlapHits (const FPGATrackSimTrack &, const FPGATrackSimTrack &)
 
StatusCode removeOverlapping (FPGATrackSimTrack &track1, FPGATrackSimTrack &track2)
 
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 bool compareTrackQuality (const FPGATrackSimTrack &track1, const FPGATrackSimTrack &track2)
 

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

StatusCode runOverlapRemoval_fast (std::vector< FPGATrackSimTrack > &tracks)
 
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

Gaudi::Property< bool > m_do2ndStage { this, "DoSecondStage", false, "Do second stage of not?"}
 
Gaudi::Property< int > m_NumOfHitPerGrouping { this, "NumOfHitPerGrouping", 5, "Number of hits pre grouping"}
 
Gaudi::Property< float > m_minChi2 { this, "MinChi2", 40, "Minimum chi2 requirement for tracks being considered in OR"}
 
Gaudi::Property< bool > m_roadSliceOR { this, "roadSliceOR", true, "Do slice-wise overlap removal for roads (Hough-only)"}
 
Gaudi::Property< int > m_localMaxWindowSize { this, "localMaxWindowSize", 0, "Only create roads that are a local maximum within this window size. Set this to 0 to turn off local max filtering"}
 
Gaudi::Property< unsigned > m_imageSize_x { this, "nBins_x", 0, "number of bins in, eg, phi_track"}
 
Gaudi::Property< unsigned > m_imageSize_y { this, "nBins_y", 0, "number of bins in, eg, q/pT"}
 
Gaudi::Property< std::string > m_algorithm { this, "ORAlgo", "Normal", "Overlap removal algorithm"}
 
Gaudi::Property< bool > m_doFastOR { this, "doFastOR", false, "Use fast overlap removal algorithm instead of default"}
 
int m_totLayers = 0
 
ORAlgo m_algo {ORAlgo::Normal}
 
ServiceHandle< IFPGATrackSimMappingSvcm_FPGATrackSimMapping {this,"FPGATrackSimMappingSvc","FPGATrackSimMappingSvc"}
 
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
 

Detailed Description

Remove (mark) duplicate tracks This tool takes FPGATrackSimTrack as input and mark their status of passing/failing the overlap removal criteria.

Definition at line 32 of file FPGATrackSimOverlapRemovalTool.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

◆ FPGATrackSimOverlapRemovalTool() [1/2]

FPGATrackSimOverlapRemovalTool::FPGATrackSimOverlapRemovalTool ( const std::string &  algname,
const std::string &  name,
const IInterface *  ifc 
)

Definition at line 14 of file FPGATrackSimOverlapRemovalTool.cxx.

14  :
15  AthAlgTool(algname, name, ifc)
16 {
17 }

◆ FPGATrackSimOverlapRemovalTool() [2/2]

FPGATrackSimOverlapRemovalTool::FPGATrackSimOverlapRemovalTool ( )
delete

Member Function Documentation

◆ compareTrackQuality()

bool FPGATrackSimOverlapRemovalTool::compareTrackQuality ( const FPGATrackSimTrack track1,
const FPGATrackSimTrack track2 
)
static

Definition at line 400 of file FPGATrackSimOverlapRemovalTool.cxx.

401 {
402  std::vector<const FPGATrackSimHit*> hitsInTrack1;
403  for ( auto& hit : track1.getFPGATrackSimHits()) {
404  if (hit.isReal()) hitsInTrack1.push_back(&hit);
405  }
406 
407  std::vector<const FPGATrackSimHit*> hitsInTrack2;
408  for ( auto& hit: track2.getFPGATrackSimHits()){
409  if (hit.isReal()) hitsInTrack2.push_back(&hit);
410  }
411 
412  // If one track has more hits than the other, it's better.
413  // Return true if track 2 is better than track 1.
414  // Otherwise, decide based on chi2.
415  bool goodOrder = true;
416  if (hitsInTrack1.size() == hitsInTrack2.size()) {
417  // Surprising number of cases where the chi2 is actually identical.
418  // In these cases, let's default to the track ID number as the next most important property.
419  // So put it higher since we are considering later tracks to be better.
420  if (track1.getChi2ndof() == track2.getChi2ndof() && track1.getTrackID() < track2.getTrackID()) goodOrder = false;
421  // Now assuming they're different, we want them in decreasing chi2 order
422  else if (track1.getChi2ndof() < track2.getChi2ndof()) goodOrder = false;
423  } else if (hitsInTrack1.size() > hitsInTrack2.size()) {
424  goodOrder = false;
425  }
426 
427  return goodOrder;
428 
429 }

◆ 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

◆ findMinChi2MaxHit()

void FPGATrackSimOverlapRemovalTool::findMinChi2MaxHit ( const std::vector< int > &  duplicates,
std::vector< FPGATrackSimTrack > &  tracks 
)

Definition at line 182 of file FPGATrackSimOverlapRemovalTool.cxx.

183 {
184  // Hardcode the CHI2MAX for now, should change it later
185  float minChi2=100000.;
186  int prevID =-1;
187  int maxHitLayers=0;
188  for(auto dup: duplicates)
189  {
190  float t_chi2 = RMtracks.at(dup).getChi2ndof();
191  int t_nhitlayers = RMtracks.at(dup).getFPGATrackSimHits().size();
192  for(auto& hit : RMtracks.at(dup).getFPGATrackSimHits())
193  {
194  if(!hit.isReal())
195  {
196  t_nhitlayers--;
197  }
198  }
199 
200  if(t_nhitlayers>maxHitLayers)
201  {
202  if(prevID!=-1)
203  {
204  RMtracks.at(prevID).setPassedOR(0);
205  }
206  prevID=dup;
207  maxHitLayers=t_nhitlayers;
208  minChi2=t_chi2;
209  }
210  else if(t_nhitlayers==maxHitLayers)
211  {
212  if(t_chi2<minChi2)
213  {
214  if(prevID!=-1)
215  {
216  RMtracks.at(prevID).setPassedOR(0);
217  }
218  prevID=dup;
219  minChi2=t_chi2;
220  }
221  else
222  {
223  RMtracks.at(dup).setPassedOR(0);
224  }
225  }
226  else
227  {
228  RMtracks.at(dup).setPassedOR(0);
229  }
230  }
231 }

◆ findNCommonHits()

int FPGATrackSimOverlapRemovalTool::findNCommonHits ( const FPGATrackSimTrack Track1,
const FPGATrackSimTrack Track2 
)

Definition at line 233 of file FPGATrackSimOverlapRemovalTool.cxx.

234 {
235  int nCommHits=0;
236 
237  // Loop through all layers
238  for(unsigned int i = 0; i < Track1.getFPGATrackSimHits().size(); ++i)
239  {
240  const FPGATrackSimHit& hit1 = Track1.getFPGATrackSimHits().at(i);
241  const FPGATrackSimHit& hit2 = Track2.getFPGATrackSimHits().at(i);
242 
243  // Check if hit is missing
244  if(!hit1.isReal() || !hit2.isReal())
245  {
246  continue;
247  }
248  // Check if hit on the same plane
249  else if(hit1.getLayer() != hit2.getLayer())
250  {
251  continue;
252  }
253  // Check if two hits have the same hashID
254  else if(hit1.getIdentifierHash() != hit2.getIdentifierHash())
255  {
256  continue;
257  }
258  // Check if two hits have same coordinate. this is difficult due to spacepoints,
259  // since the same hit can be used to make multiple spacepoints.
260  else if (hit1.getHitType() == HitType::spacepoint && hit2.getHitType() == HitType::spacepoint) {
261  if ((hit1.getX() == hit2.getX()) && (hit1.getY() == hit2.getY()) && (hit1.getZ() == hit2.getZ())) {
262  nCommHits++;
263  } else {
264  continue;
265  }
266  }
267  // If both hits aren't spacepoints, we should be able to do this comparison.
268  else if (hit1.getPhiCoord() == hit2.getPhiCoord()
269  && hit1.getEtaCoord() == hit2.getEtaCoord()) {
270  nCommHits++;
271  }
272  else
273  {
274  continue;
275  }
276  }
277  return nCommHits;
278 }

◆ findNonOverlapHits()

int FPGATrackSimOverlapRemovalTool::findNonOverlapHits ( const FPGATrackSimTrack Track1,
const FPGATrackSimTrack Track2 
)

Definition at line 280 of file FPGATrackSimOverlapRemovalTool.cxx.

281 {
282  int nonOverlapHits=0;
283 
284  // Loop through all layers
285  for(unsigned int i = 0; i < Track1.getFPGATrackSimHits().size(); ++i)
286  {
287  const FPGATrackSimHit& hit1 = Track1.getFPGATrackSimHits().at(i);
288  const FPGATrackSimHit& hit2 = Track2.getFPGATrackSimHits().at(i);
289  // First make sure we are looking at real hits
290  if(!hit1.isReal() || !hit2.isReal())
291  {
292  continue;
293  }
294  // Check if two hits are on the same plane
295  else if(hit1.getLayer() != hit2.getLayer())
296  {
297  nonOverlapHits++;
298  }
299  // Check if two hits have the same hashID
300  else if(hit1.getIdentifierHash() != hit2.getIdentifierHash())
301  {
302  nonOverlapHits++;
303  }
304  // Check if two hits have same coordinate. this is difficult due to spacepoints,
305  // since the same hit can be used to make multiple spacepoints.
306  else if (hit1.getHitType() == HitType::spacepoint && hit2.getHitType() == HitType::spacepoint) {
307  if ((hit1.getX() != hit2.getX()) || (hit1.getY() == hit2.getY()) || (hit1.getZ() == hit2.getZ())) {
308  nonOverlapHits++;
309  } else {
310  continue;
311  }
312  }
313  else if(hit1.getPhiCoord() != hit1.getPhiCoord()
314  || hit1.getEtaCoord() != hit1.getEtaCoord())
315  {
316  nonOverlapHits++;
317  }
318  else
319  {
320  continue;
321  }
322  }
323  return nonOverlapHits;
324 }

◆ getAlgorithm()

ORAlgo FPGATrackSimOverlapRemovalTool::getAlgorithm ( ) const
inline

Definition at line 48 of file FPGATrackSimOverlapRemovalTool.h.

48 {return m_algo;}

◆ getDoSecondStage()

bool FPGATrackSimOverlapRemovalTool::getDoSecondStage ( ) const
inline

Definition at line 47 of file FPGATrackSimOverlapRemovalTool.h.

47 { return m_do2ndStage; }

◆ initialize()

StatusCode FPGATrackSimOverlapRemovalTool::initialize ( )
override

Definition at line 19 of file FPGATrackSimOverlapRemovalTool.cxx.

20 {
21  ATH_MSG_INFO( "FPGATrackSimOverlapRemovalTool::initialize()" );
22  // Check if this is 2nd stage
23  if(m_do2ndStage)
24  {
25  m_totLayers = m_FPGATrackSimMapping->PlaneMap_2nd()->getNLogiLayers();;
26  }
27  else
28  {
29  m_totLayers = m_FPGATrackSimMapping->PlaneMap_1st()->getNLogiLayers();;
30  }
31  ATH_MSG_DEBUG("Total number of layer: " << m_totLayers);
32 
33  // Check road OR
35  ATH_MSG_WARNING("LocalMaxOR only being run per hough slice (i.e. this tool does nothing) since roadSliceOR is turned off");
36 
37 
38  // Setup OR algorithm
39  if(m_algorithm == "Normal") m_algo=ORAlgo::Normal;
40  else if(m_algorithm == "Invert") m_algo=ORAlgo::InvertGrouping;
41  else
42  {
43  ATH_MSG_ERROR("initialize(): OR algorithm doesn't exist. ");
44  return StatusCode::FAILURE;
45  }
46  ATH_MSG_DEBUG("Overlap removal algorithm is "<<m_algorithm.value());
47 
48  return StatusCode::SUCCESS;
49 }

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

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

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

◆ removeOverlapping()

StatusCode FPGATrackSimOverlapRemovalTool::removeOverlapping ( FPGATrackSimTrack track1,
FPGATrackSimTrack track2 
)

Definition at line 327 of file FPGATrackSimOverlapRemovalTool.cxx.

327  {
328 
329  // Hit comparison
330  struct HitCompare {
331  bool operator()(const FPGATrackSimHit* a, const FPGATrackSimHit* b) const {
332  auto hash_a = a->getIdentifierHash();
333  auto hash_b = b->getIdentifierHash();
334  if ( hash_a == hash_b ) {
335  auto phi_a = a->getPhiCoord();
336  auto phi_b = b->getPhiCoord();
337  if ( phi_a == phi_b ) {
338  auto eta_a = a->getEtaCoord();
339  auto eta_b = b->getEtaCoord();
340  if ( eta_a == eta_b) {
341  auto layer_a = a->getLayer();
342  auto layer_b = b->getLayer();
343  return layer_a < layer_b;
344  }
345  return eta_a < eta_b;
346  }
347  return phi_a < phi_b;
348  }
349  return hash_a < hash_b;
350  }
351  };
352 
353  std::set<const FPGATrackSimHit*, HitCompare > hitsInTrack1;
354  for ( auto& hit : track1.getFPGATrackSimHits()) {
355  if (hit.isReal()) hitsInTrack1.insert(&hit);
356  }
357 
358  std::set<const FPGATrackSimHit*, HitCompare> hitsInTrack2;
359  for ( auto& hit: track2.getFPGATrackSimHits()){
360  if (hit.isReal()) hitsInTrack2.insert(&hit);
361  }
362 
363  std::vector<const FPGATrackSimHit*> sharedHits;
364  std::set_intersection( hitsInTrack1.begin(), hitsInTrack1.end(),
365  hitsInTrack2.begin(), hitsInTrack2.end(),
366  std::back_inserter(sharedHits),
367  HitCompare() );
368 
369  // Number of real hits in track 1, number of real hits in track 2, number of shared hits, number of non-shared hits (?)
370  int nHitsInTrack1 = hitsInTrack1.size();
371  int nHitsInTrack2 = hitsInTrack2.size();
372  int nSharedHits = sharedHits.size();
373  // Original version seems to be only track 1; I want to compare each pair only once so
374  // let's make this the most conservative option (i.e. smallest number) ?
375  int nonOverlappingHits = std::min(nHitsInTrack1 - nSharedHits, nHitsInTrack2 - nSharedHits);
376 
377  // Now check if these pass our criteria for overlapping. If not, just return.
378  if(getAlgorithm() == ORAlgo::Normal) {
379  // Here decision is based on number of overlapping hits.
380  // Consider these overlapping if they share >= m_NumOfHitPerGrouping
381  if(nSharedHits < m_NumOfHitPerGrouping) return StatusCode::SUCCESS;
382 
383  } else if(getAlgorithm() == ORAlgo::InvertGrouping) {
384  // This is the opposite: duplicates of number of unique hits is <= m_NumOfHitPerGrouping.
385  if(nonOverlappingHits > m_NumOfHitPerGrouping) return StatusCode::SUCCESS;
386 
387  } else {
388  // Unknown.
389  return StatusCode::FAILURE;
390  }
391 
392  // Made it here: these tracks are overlapping.
393  // But we already sorted them such that track 2 is the one
394  // we want to keep, so we can just set track 1 to be removed.
395  track1.setPassedOR(0);
396 
397  return StatusCode::SUCCESS;
398 }

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

◆ runOverlapRemoval() [1/2]

StatusCode FPGATrackSimOverlapRemovalTool::runOverlapRemoval ( std::vector< FPGATrackSimTrack > &  tracks)

Definition at line 110 of file FPGATrackSimOverlapRemovalTool.cxx.

111 {
112 
113  // Do fast OR instead of requested
114  if (m_doFastOR) return runOverlapRemoval_fast(tracks);
115 
116  // Otherwise, proceed
117  ATH_MSG_DEBUG("Beginning runOverlapRemoval()");
118 
119  // Create tracks to hold and compare
120  FPGATrackSimTrack fit1, fit2;
121  for(unsigned int i=0; i<tracks.size();i++)
122  {
123  fit1=tracks.at(i);
124  // Apply Chi2 cut
125  if(fit1.getChi2ndof()>m_minChi2)
126  {
127  // Only consider track with chi2 smaller than m_minChi2
128  tracks.at(i).setPassedOR(0);
129  continue;
130  }
131 
132  // Create vector for holding duplicate track list
133  std::vector<int> duplicates(1,i);
134 
135  // Loop through the remaning tracks
136  for(unsigned int j=i+1; j<tracks.size(); j++)
137  {
138  if(i!=j)
139  {
140  fit2=tracks.at(j);
141  // Apply Chi2 cut
142  if(fit2.getChi2ndof()>m_minChi2)
143  {
144  // Only consider track with chi2 smaller than m_minChi2
145  tracks.at(j).setPassedOR(0);
146  continue;
147  }
148  // Based on the algorithm choose common hit of non-common hit
150  {
151  // Find the number of common hits between two tracks
152  int nOverlappingHits = 0;
153  nOverlappingHits=findNCommonHits(fit1,fit2);
154 
155  // Group overlapping tracks into a vector for removal if at least [m_NumOfHitPerGrouping] hits are the same
156  if(nOverlappingHits >= m_NumOfHitPerGrouping)
157  {
158  duplicates.push_back(j);
159  }
160  }
162  {
163  // Find the number of non-common hits between two tracks
164  int nNotOverlappingHits=0;
165  nNotOverlappingHits=findNonOverlapHits(fit1, fit2);
166 
167  // If the number of non-overlapping hit is [m_NumOfHitPerGrouping] or less
168  if(nNotOverlappingHits <= m_NumOfHitPerGrouping)
169  {
170  duplicates.push_back(j);
171  }
172  }
173  }
174  }
175 
176  findMinChi2MaxHit(duplicates, tracks);
177  }
178 
179  return StatusCode::SUCCESS;
180 }

◆ runOverlapRemoval() [2/2]

StatusCode FPGATrackSimOverlapRemovalTool::runOverlapRemoval ( std::vector< std::shared_ptr< const FPGATrackSimRoad >> &  roads)

Definition at line 74 of file FPGATrackSimOverlapRemovalTool.cxx.

75 {
76  if (roads.empty()) return StatusCode::SUCCESS;
77 
78  if (!m_roadSliceOR) return StatusCode::SUCCESS;
79  size_t in = roads.size();
80 
81  // Hough image
83 
84  // Slice-wise duplicate removal: accept only one road (with most hits) per bin
85  for (auto &r: roads)
86  {
87  FPGATrackSimRoad* & old = acc(r->getYBin(), r->getXBin());
88  if (!old) old = new FPGATrackSimRoad (*r.get());
89  else if (r->getNHitLayers() > old->getNHitLayers()) *old = *r.get();
90  else if (r->getNHitLayers() == old->getNHitLayers() && r->getNHits() > old->getNHits()) *old = *r.get();
91  }
92 
93  // Reformat to vector
94  roads.clear();
95  for (unsigned y = 0; y < m_imageSize_y; y++)
96  for (unsigned x = 0; x < m_imageSize_x; x++)
97  if (FPGATrackSimRoad *tempPtr = acc(y, x); tempPtr && isLocalMax(acc, x, y, m_localMaxWindowSize)/*All-slices local max*/) {
98  roads.emplace_back(std::shared_ptr<const FPGATrackSimRoad>(tempPtr));
99  acc(y, x) = nullptr;
100  }
101  else {
102  delete acc(y,x);
103  acc(y,x) = nullptr;
104  }
105 
106  ATH_MSG_DEBUG("Input: " << in << " Output: " << roads.size());
107  return StatusCode::SUCCESS;
108 }

◆ runOverlapRemoval_fast()

StatusCode FPGATrackSimOverlapRemovalTool::runOverlapRemoval_fast ( std::vector< FPGATrackSimTrack > &  tracks)
private

Definition at line 431 of file FPGATrackSimOverlapRemovalTool.cxx.

432 {
433  ATH_MSG_DEBUG("Beginning fast overlap removal");
434 
435  // Sort tracks in order of increasing quality.
436  // This way, once a track has been eliminated in a comparison, we don't
437  // need to check it against any other tracks - they will always be
438  // better than it.
439  std::sort(std::begin(tracks),
440  std::end(tracks),
442 
443  // Now compare every pair of tracks.
444  // Set passedOR to 0 for the worst one (first one)
445  // if they are found to overlap.
446  for (unsigned int i=0; i < tracks.size(); i++) {
447 
448  // Skip track i if bad chi2.
449  if (tracks.at(i).getChi2ndof() > m_minChi2) {
450  tracks.at(i).setPassedOR(0);
451  continue;
452  }
453 
454  // Now check against all other tracks.
455  for (unsigned int j=i+1; j< tracks.size(); j++) {
456 
457  // Uniquely comparing tracks i and j here.
458 
459  // If have set track i to 0 in a previous comparison,
460  // no need to look at it any more - we're done with it.
461  if (!tracks.at(i).passedOR()) break;
462 
463  // Ignore j if its chi2 is bad.
464  if (tracks.at(j).getChi2ndof() > m_minChi2) tracks.at(j).setPassedOR(0);
465 
466  // If we just set track j to zero for bad chi2,
467  // no need to do the comparison.
468  if (!tracks.at(j).passedOR()) continue;
469 
470  // If we're still here, two at least semi-decent tracks.
471  // Compare them and remove one if necessary.
472  ATH_CHECK(removeOverlapping(tracks.at(i),tracks.at(j)));
473 
474  }
475  }
476 
477  return StatusCode::SUCCESS;
478 }

◆ setDoSecondStage()

void FPGATrackSimOverlapRemovalTool::setDoSecondStage ( bool  v)
inline

Definition at line 46 of file FPGATrackSimOverlapRemovalTool.h.

46 { m_do2ndStage = v; }

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

ORAlgo FPGATrackSimOverlapRemovalTool::m_algo {ORAlgo::Normal}
private

Definition at line 72 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_algorithm

Gaudi::Property<std::string> FPGATrackSimOverlapRemovalTool::m_algorithm { this, "ORAlgo", "Normal", "Overlap removal algorithm"}
private

Definition at line 68 of file FPGATrackSimOverlapRemovalTool.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_do2ndStage

Gaudi::Property<bool> FPGATrackSimOverlapRemovalTool::m_do2ndStage { this, "DoSecondStage", false, "Do second stage of not?"}
private

Definition at line 61 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_doFastOR

Gaudi::Property<bool> FPGATrackSimOverlapRemovalTool::m_doFastOR { this, "doFastOR", false, "Use fast overlap removal algorithm instead of default"}
private

Definition at line 69 of file FPGATrackSimOverlapRemovalTool.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_FPGATrackSimMapping

ServiceHandle<IFPGATrackSimMappingSvc> FPGATrackSimOverlapRemovalTool::m_FPGATrackSimMapping {this,"FPGATrackSimMappingSvc","FPGATrackSimMappingSvc"}
private

Definition at line 78 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_imageSize_x

Gaudi::Property<unsigned> FPGATrackSimOverlapRemovalTool::m_imageSize_x { this, "nBins_x", 0, "number of bins in, eg, phi_track"}
private

Definition at line 66 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_imageSize_y

Gaudi::Property<unsigned> FPGATrackSimOverlapRemovalTool::m_imageSize_y { this, "nBins_y", 0, "number of bins in, eg, q/pT"}
private

Definition at line 67 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_localMaxWindowSize

Gaudi::Property<int> FPGATrackSimOverlapRemovalTool::m_localMaxWindowSize { this, "localMaxWindowSize", 0, "Only create roads that are a local maximum within this window size. Set this to 0 to turn off local max filtering"}
private

Definition at line 65 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_minChi2

Gaudi::Property<float> FPGATrackSimOverlapRemovalTool::m_minChi2 { this, "MinChi2", 40, "Minimum chi2 requirement for tracks being considered in OR"}
private

Definition at line 63 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_NumOfHitPerGrouping

Gaudi::Property<int> FPGATrackSimOverlapRemovalTool::m_NumOfHitPerGrouping { this, "NumOfHitPerGrouping", 5, "Number of hits pre grouping"}
private

Definition at line 62 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_roadSliceOR

Gaudi::Property<bool> FPGATrackSimOverlapRemovalTool::m_roadSliceOR { this, "roadSliceOR", true, "Do slice-wise overlap removal for roads (Hough-only)"}
private

Definition at line 64 of file FPGATrackSimOverlapRemovalTool.h.

◆ m_totLayers

int FPGATrackSimOverlapRemovalTool::m_totLayers = 0
private

Definition at line 71 of file FPGATrackSimOverlapRemovalTool.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:
beamspotman.r
def r
Definition: beamspotman.py:676
FPGATrackSimOverlapRemovalTool::m_NumOfHitPerGrouping
Gaudi::Property< int > m_NumOfHitPerGrouping
Definition: FPGATrackSimOverlapRemovalTool.h:62
getMenu.algname
algname
Definition: getMenu.py:54
FPGATrackSimTrack::getTrackID
int getTrackID() const
Definition: FPGATrackSimTrack.h:33
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
FPGATrackSimOverlapRemovalTool::m_do2ndStage
Gaudi::Property< bool > m_do2ndStage
Definition: FPGATrackSimOverlapRemovalTool.h:61
FPGATrackSimTrack
Definition: FPGATrackSimTrack.h:18
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
FPGATrackSimHit::getX
float getX() const
Definition: FPGATrackSimHit.h:130
FPGATrackSimOverlapRemovalTool::getAlgorithm
ORAlgo getAlgorithm() const
Definition: FPGATrackSimOverlapRemovalTool.h:48
FPGATrackSimHit::isReal
bool isReal() const
Definition: FPGATrackSimHit.cxx:37
FPGATrackSimOverlapRemovalTool::m_doFastOR
Gaudi::Property< bool > m_doFastOR
Definition: FPGATrackSimOverlapRemovalTool.h:69
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
FPGATrackSimHit::getLayer
unsigned getLayer() const
Definition: FPGATrackSimHit.cxx:74
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
FPGATrackSimTrack::setPassedOR
void setPassedOR(unsigned int)
Definition: FPGATrackSimTrack.cxx:260
ORAlgo::Normal
@ Normal
HitType::spacepoint
@ spacepoint
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
FPGATrackSimOverlapRemovalTool::findNCommonHits
int findNCommonHits(const FPGATrackSimTrack &, const FPGATrackSimTrack &)
Definition: FPGATrackSimOverlapRemovalTool.cxx:233
FPGATrackSimOverlapRemovalTool::m_imageSize_x
Gaudi::Property< unsigned > m_imageSize_x
Definition: FPGATrackSimOverlapRemovalTool.h:66
FPGATrackSimOverlapRemovalTool::m_imageSize_y
Gaudi::Property< unsigned > m_imageSize_y
Definition: FPGATrackSimOverlapRemovalTool.h:67
x
#define x
isLocalMax
bool isLocalMax(vector2D< FPGATrackSimRoad * > const &acc, unsigned x, unsigned y, int localMaxWindowSize)
Definition: FPGATrackSimOverlapRemovalTool.cxx:51
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
FPGATrackSimHit
Definition: FPGATrackSimHit.h:41
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
FPGATrackSimTrack::getFPGATrackSimHits
const std::vector< FPGATrackSimHit > & getFPGATrackSimHits() const
Definition: FPGATrackSimTrack.h:63
FPGATrackSimHit::getPhiCoord
float getPhiCoord() const
Definition: FPGATrackSimHit.h:108
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
vector2D
Definition: FPGATrackSimVectors.h:28
AthCommonDataStore
Definition: AthCommonDataStore.h:52
FPGATrackSimOverlapRemovalTool::m_roadSliceOR
Gaudi::Property< bool > m_roadSliceOR
Definition: FPGATrackSimOverlapRemovalTool.h:64
FPGATrackSimTrack::getChi2ndof
float getChi2ndof() const
Definition: FPGATrackSimTrack.h:46
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:85
FPGATrackSimOverlapRemovalTool::m_algorithm
Gaudi::Property< std::string > m_algorithm
Definition: FPGATrackSimOverlapRemovalTool.h:68
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
FPGATrackSimOverlapRemovalTool::m_totLayers
int m_totLayers
Definition: FPGATrackSimOverlapRemovalTool.h:71
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
FPGATrackSimOverlapRemovalTool::m_minChi2
Gaudi::Property< float > m_minChi2
Definition: FPGATrackSimOverlapRemovalTool.h:63
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
FPGATrackSimHit::getY
float getY() const
Definition: FPGATrackSimHit.h:131
FPGATrackSimHit::getIdentifierHash
unsigned getIdentifierHash() const
Definition: FPGATrackSimHit.h:81
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
FPGATrackSimHit::getZ
float getZ() const
Definition: FPGATrackSimHit.h:132
FPGATrackSimOverlapRemovalTool::m_localMaxWindowSize
Gaudi::Property< int > m_localMaxWindowSize
Definition: FPGATrackSimOverlapRemovalTool.h:65
min
#define min(a, b)
Definition: cfImp.cxx:40
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
FPGATrackSimOverlapRemovalTool::findNonOverlapHits
int findNonOverlapHits(const FPGATrackSimTrack &, const FPGATrackSimTrack &)
Definition: FPGATrackSimOverlapRemovalTool.cxx:280
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
FPGATrackSimOverlapRemovalTool::m_FPGATrackSimMapping
ServiceHandle< IFPGATrackSimMappingSvc > m_FPGATrackSimMapping
Definition: FPGATrackSimOverlapRemovalTool.h:78
FPGATrackSimOverlapRemovalTool::m_algo
ORAlgo m_algo
Definition: FPGATrackSimOverlapRemovalTool.h:72
FPGATrackSimOverlapRemovalTool::compareTrackQuality
static bool compareTrackQuality(const FPGATrackSimTrack &track1, const FPGATrackSimTrack &track2)
Definition: FPGATrackSimOverlapRemovalTool.cxx:400
FPGATrackSimOverlapRemovalTool::runOverlapRemoval_fast
StatusCode runOverlapRemoval_fast(std::vector< FPGATrackSimTrack > &tracks)
Definition: FPGATrackSimOverlapRemovalTool.cxx:431
FPGATrackSimHit::getEtaCoord
float getEtaCoord() const
Definition: FPGATrackSimHit.h:109
python.PyAthena.v
v
Definition: PyAthena.py:154
FPGATrackSimOverlapRemovalTool::removeOverlapping
StatusCode removeOverlapping(FPGATrackSimTrack &track1, FPGATrackSimTrack &track2)
Definition: FPGATrackSimOverlapRemovalTool.cxx:327
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
h
CSV_InDetExporter.old
old
Definition: CSV_InDetExporter.py:145
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
FPGATrackSimOverlapRemovalTool::findMinChi2MaxHit
void findMinChi2MaxHit(const std::vector< int > &duplicates, std::vector< FPGATrackSimTrack > &tracks)
Definition: FPGATrackSimOverlapRemovalTool.cxx:182
set_intersection
Set * set_intersection(Set *set1, Set *set2)
Perform an intersection of two sets.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
ORAlgo::InvertGrouping
@ InvertGrouping
generateReferenceFile.duplicates
duplicates
Definition: generateReferenceFile.py:24
FPGATrackSimRoad
Definition: FPGATrackSimRoad.h:30
FPGATrackSimHit::getHitType
HitType getHitType() const
Definition: FPGATrackSimHit.h:57
fitman.k
k
Definition: fitman.py:528