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

#include <FPGATrackSimTrackFitterTool.h>

Inheritance diagram for FPGATrackSimTrackFitterTool:
Collaboration diagram for FPGATrackSimTrackFitterTool:

Public Member Functions

 FPGATrackSimTrackFitterTool (const std::string &, const std::string &, const IInterface *)
 
 ~FPGATrackSimTrackFitterTool ()=default
 
StatusCode initialize () override
 
StatusCode getTracks (std::vector< FPGATrackSimRoad * > const &roads, std::vector< FPGATrackSimTrack > &tracks)
 
StatusCode getMissingHitsCheckTracks (std::vector< FPGATrackSimTrack > &tracks_guessed)
 
StatusCode getNFits (int &n)
 
StatusCode getNFitsMajority (int &n)
 
StatusCode getNFitsMajoritySCI (int &n)
 
StatusCode getNFitsMajorityPix (int &n)
 
StatusCode getNFitsRecovery (int &n)
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

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

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

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

std::unique_ptr< TrackFitterm_tfpobj
 
ServiceHandle< IFPGATrackSimMappingSvcm_FPGATrackSimMapping {this,"FPGATrackSimMappingSvc","FPGATrackSimMappingSvc"}
 
ServiceHandle< IFPGATrackSimBankSvcm_FPGATrackSimBank {this,"FPGATrackSimBankSvc","FPGATrackSimBankSvc"}
 
Gaudi::Property< int > m_chi2dof_recovery_min {this, "chi2DofRecoveryMin", 40, "min chi^2 cut for attempting recovery fits"}
 
Gaudi::Property< int > m_chi2dof_recovery_max {this, "chi2DofRecoveryMax", 1e8, "max chi^2 cut for attempting recovery fits"}
 
Gaudi::Property< bool > m_do2ndStage {this, "Do2ndStageTrackFit", false, "Do 2nd stage track fit"}
 
Gaudi::Property< int > m_doMajority {this, "doMajority", 1, "Do Majority fits"}
 
Gaudi::Property< int > m_maxNhitsPerPlane { this, "maxHitsPerPlane", -1, "if >0, max hits per plane to consider"}
 
Gaudi::Property< int > m_noRecoveryNHits { this, "nHits_noRecovery", -1, "nHits for no recovery"}
 
Gaudi::Property< bool > m_guessHits { this, "GuessHits", true, "If True then we Guess hits, if False then we use separate banks and don't guess"}
 
Gaudi::Property< bool > m_doDeltaGPhis { this, "DoDeltaGPhis", false, "If True will do the fit by the delta global phis method"}
 
Gaudi::Property< bool > m_doMissingHitsChecks {this, "DoMissingHitsChecks", false, "If True and we guess hits, when we have 8/8 we also drop hits and guess them to compare to true positions"}
 
Gaudi::Property< int > m_idealCoordFitType {this, "IdealCoordFitType", 2, "Fit type for idealized coordinates, 0 if off"}
 
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

Definition at line 27 of file FPGATrackSimTrackFitterTool.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

◆ FPGATrackSimTrackFitterTool()

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

Definition at line 14 of file FPGATrackSimTrackFitterTool.cxx.

14  :
16 {
17 }

◆ ~FPGATrackSimTrackFitterTool()

FPGATrackSimTrackFitterTool::~FPGATrackSimTrackFitterTool ( )
default

Member Function Documentation

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [4/4]

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

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

Definition at line 199 of file AthCommonDataStore.h.

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

◆ declareProperty() [1/6]

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

Declare a new Gaudi property.

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

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

Definition at line 245 of file AthCommonDataStore.h.

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

◆ declareProperty() [2/6]

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

Declare a new Gaudi property.

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

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

Definition at line 221 of file AthCommonDataStore.h.

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

◆ declareProperty() [3/6]

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

Definition at line 259 of file AthCommonDataStore.h.

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

◆ declareProperty() [4/6]

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

Declare a new Gaudi property.

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

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

Definition at line 333 of file AthCommonDataStore.h.

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

◆ declareProperty() [5/6]

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

Declare a new Gaudi property.

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

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

Definition at line 352 of file AthCommonDataStore.h.

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

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ getMissingHitsCheckTracks()

StatusCode FPGATrackSimTrackFitterTool::getMissingHitsCheckTracks ( std::vector< FPGATrackSimTrack > &  tracks_guessed)

Definition at line 101 of file FPGATrackSimTrackFitterTool.cxx.

102 {
103  // only call this after we first fit the tracks!
104  tracks_guessed = m_tfpobj->getMissingHitsCheckTracks();
105  return StatusCode::SUCCESS;
106 }

◆ getNFits()

StatusCode FPGATrackSimTrackFitterTool::getNFits ( int &  n)
inline

Definition at line 39 of file FPGATrackSimTrackFitterTool.h.

39 { n = m_tfpobj->getNFits(); return StatusCode::SUCCESS; }

◆ getNFitsMajority()

StatusCode FPGATrackSimTrackFitterTool::getNFitsMajority ( int &  n)
inline

Definition at line 40 of file FPGATrackSimTrackFitterTool.h.

40 { n = m_tfpobj->getNFitsMajority(); return StatusCode::SUCCESS; }

◆ getNFitsMajorityPix()

StatusCode FPGATrackSimTrackFitterTool::getNFitsMajorityPix ( int &  n)
inline

Definition at line 42 of file FPGATrackSimTrackFitterTool.h.

42 { n = m_tfpobj->getNFitsMajorityPix(); return StatusCode::SUCCESS; }

◆ getNFitsMajoritySCI()

StatusCode FPGATrackSimTrackFitterTool::getNFitsMajoritySCI ( int &  n)
inline

Definition at line 41 of file FPGATrackSimTrackFitterTool.h.

41 { n = m_tfpobj->getNFitsMajoritySCI(); return StatusCode::SUCCESS; }

◆ getNFitsRecovery()

StatusCode FPGATrackSimTrackFitterTool::getNFitsRecovery ( int &  n)
inline

Definition at line 43 of file FPGATrackSimTrackFitterTool.h.

43 { n = m_tfpobj->getNFitsRecovery(); return StatusCode::SUCCESS; }

◆ getTracks()

StatusCode FPGATrackSimTrackFitterTool::getTracks ( std::vector< FPGATrackSimRoad * > const roads,
std::vector< FPGATrackSimTrack > &  tracks 
)

Definition at line 82 of file FPGATrackSimTrackFitterTool.cxx.

82  {
83  // elaborate the next event
84 
85  int status = m_tfpobj->fitTracks(roads,tracks);
86  if (status != FITTRACKS_OK) return StatusCode::FAILURE;
87 
88  if (msgLvl(MSG::DEBUG))
89  {
90  ATH_MSG_DEBUG("getTracks() returning " << tracks.size() << " tracks:");
91  for (auto & t : tracks)
92  ATH_MSG_DEBUG("\tchi2 = " << t.getChi2() << " and phi = " << t.getPhi()
93  << " and eta = " << t.getEta() << " and d0 = " << t.getD0()
94  << " and z0 = " << t.getZ0() << "and pt = " << t.getPt());
95  }
96 
97  return StatusCode::SUCCESS;
98 }

◆ initialize()

StatusCode FPGATrackSimTrackFitterTool::initialize ( )
override

Definition at line 21 of file FPGATrackSimTrackFitterTool.cxx.

22 {
23  ATH_MSG_DEBUG("FPGATrackSimTrackFitterTool::initialize()");
24 
25  ATH_CHECK(m_FPGATrackSimMapping.retrieve());
26  ATH_CHECK(m_FPGATrackSimBank.retrieve());
27 
28  const FPGATrackSimFitConstantBank* nominalbank;
29  std::vector<const FPGATrackSimFitConstantBank*> bankvec;
30 
31  if(!m_do2ndStage){
32  nominalbank = m_FPGATrackSimBank->FitConstantBank_1st();
33  if (!m_guessHits) {
34  for (unsigned int iplane = 0; iplane < m_FPGATrackSimMapping->PlaneMap_1st()->getNLogiLayers(); iplane++) {
35  const FPGATrackSimFitConstantBank* bank = m_FPGATrackSimBank->FitConstantBank_1st(iplane);
36  bankvec.push_back(bank);
37  }
38  }
39  }
40  else {
41  nominalbank = m_FPGATrackSimBank->FitConstantBank_2nd();
42  if (!m_guessHits) {
43  for (unsigned int iplane = 0; iplane < m_FPGATrackSimMapping->PlaneMap_2nd()->getNLogiLayers(); iplane++) {
44  const FPGATrackSimFitConstantBank* bank = m_FPGATrackSimBank->FitConstantBank_2nd(iplane);
45  bankvec.push_back(bank);
46  }
47  }
48  }
49 
50  MsgStream m(msgSvc(), "TrackFitter");
51  m.setLevel(msg().level());
52  m_tfpobj = std::unique_ptr<TrackFitter>(new TrackFitter(nominalbank, bankvec, m_guessHits));
53 
54  if(!m_do2ndStage) {
55  m_tfpobj->setPlaneMap(m_FPGATrackSimMapping->PlaneMap_1st());
56  m_tfpobj->setRegionMap(m_FPGATrackSimMapping->RegionMap_1st());
57  } else {
58  m_tfpobj->setPlaneMap(m_FPGATrackSimMapping->PlaneMap_2nd());
59  m_tfpobj->setRegionMap(m_FPGATrackSimMapping->RegionMap_2nd());
60  }
61 
62  // set parameter object to TrackFitter
63  m_tfpobj->setChi2DofRecoveryMin(m_chi2dof_recovery_min);
64  m_tfpobj->setChi2DofRecoveryMax(m_chi2dof_recovery_max);
65 
66  m_tfpobj->setDoMajority(m_doMajority);
67 
68  m_tfpobj->setRequireFirst(0);
69  m_tfpobj->setDoSecondStage(m_do2ndStage);
70 
71  m_tfpobj->setNorecoveryNhits(m_noRecoveryNHits);
72 
73  if (!m_guessHits && m_doMissingHitsChecks) ATH_MSG_WARNING("We can't do missing hits check if we don't guess hits");
74  m_tfpobj->setDoMissingHitsCheck(m_doMissingHitsChecks);
75  m_tfpobj->setIdealCoordFitType(static_cast<TrackCorrType>(m_idealCoordFitType.value()));
76  m_tfpobj->setDoDeltaGPhis(m_doDeltaGPhis);
77 
78  return StatusCode::SUCCESS;
79 }

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

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

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

Perform system initialization for an algorithm.

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

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

◆ sysStart()

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

Handle START transition.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ m_chi2dof_recovery_max

Gaudi::Property<int> FPGATrackSimTrackFitterTool::m_chi2dof_recovery_max {this, "chi2DofRecoveryMax", 1e8, "max chi^2 cut for attempting recovery fits"}
private

Definition at line 52 of file FPGATrackSimTrackFitterTool.h.

◆ m_chi2dof_recovery_min

Gaudi::Property<int> FPGATrackSimTrackFitterTool::m_chi2dof_recovery_min {this, "chi2DofRecoveryMin", 40, "min chi^2 cut for attempting recovery fits"}
private

Definition at line 51 of file FPGATrackSimTrackFitterTool.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> FPGATrackSimTrackFitterTool::m_do2ndStage {this, "Do2ndStageTrackFit", false, "Do 2nd stage track fit"}
private

Definition at line 53 of file FPGATrackSimTrackFitterTool.h.

◆ m_doDeltaGPhis

Gaudi::Property<bool> FPGATrackSimTrackFitterTool::m_doDeltaGPhis { this, "DoDeltaGPhis", false, "If True will do the fit by the delta global phis method"}
private

Definition at line 58 of file FPGATrackSimTrackFitterTool.h.

◆ m_doMajority

Gaudi::Property<int> FPGATrackSimTrackFitterTool::m_doMajority {this, "doMajority", 1, "Do Majority fits"}
private

Definition at line 54 of file FPGATrackSimTrackFitterTool.h.

◆ m_doMissingHitsChecks

Gaudi::Property<bool> FPGATrackSimTrackFitterTool::m_doMissingHitsChecks {this, "DoMissingHitsChecks", false, "If True and we guess hits, when we have 8/8 we also drop hits and guess them to compare to true positions"}
private

Definition at line 59 of file FPGATrackSimTrackFitterTool.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_FPGATrackSimBank

ServiceHandle<IFPGATrackSimBankSvc> FPGATrackSimTrackFitterTool::m_FPGATrackSimBank {this,"FPGATrackSimBankSvc","FPGATrackSimBankSvc"}
private

Definition at line 49 of file FPGATrackSimTrackFitterTool.h.

◆ m_FPGATrackSimMapping

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

Definition at line 48 of file FPGATrackSimTrackFitterTool.h.

◆ m_guessHits

Gaudi::Property<bool> FPGATrackSimTrackFitterTool::m_guessHits { this, "GuessHits", true, "If True then we Guess hits, if False then we use separate banks and don't guess"}
private

Definition at line 57 of file FPGATrackSimTrackFitterTool.h.

◆ m_idealCoordFitType

Gaudi::Property<int> FPGATrackSimTrackFitterTool::m_idealCoordFitType {this, "IdealCoordFitType", 2, "Fit type for idealized coordinates, 0 if off"}
private

Definition at line 60 of file FPGATrackSimTrackFitterTool.h.

◆ m_maxNhitsPerPlane

Gaudi::Property<int> FPGATrackSimTrackFitterTool::m_maxNhitsPerPlane { this, "maxHitsPerPlane", -1, "if >0, max hits per plane to consider"}
private

Definition at line 55 of file FPGATrackSimTrackFitterTool.h.

◆ m_noRecoveryNHits

Gaudi::Property<int> FPGATrackSimTrackFitterTool::m_noRecoveryNHits { this, "nHits_noRecovery", -1, "nHits for no recovery"}
private

Definition at line 56 of file FPGATrackSimTrackFitterTool.h.

◆ m_tfpobj

std::unique_ptr<TrackFitter> FPGATrackSimTrackFitterTool::m_tfpobj
private

Definition at line 46 of file FPGATrackSimTrackFitterTool.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:
FPGATrackSimTrackFitterTool::m_FPGATrackSimBank
ServiceHandle< IFPGATrackSimBankSvc > m_FPGATrackSimBank
Definition: FPGATrackSimTrackFitterTool.h:49
getMenu.algname
algname
Definition: getMenu.py:53
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
FPGATrackSimTrackFitterTool::m_idealCoordFitType
Gaudi::Property< int > m_idealCoordFitType
Definition: FPGATrackSimTrackFitterTool.h:60
xAOD::TrackFitter
TrackFitter
Enums to identify who created this track and which properties does it have.
Definition: TrackingPrimitives.h:39
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
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
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
FPGATrackSimTrackFitterTool::m_guessHits
Gaudi::Property< bool > m_guessHits
Definition: FPGATrackSimTrackFitterTool.h:57
FPGATrackSimTrackFitterTool::m_chi2dof_recovery_max
Gaudi::Property< int > m_chi2dof_recovery_max
Definition: FPGATrackSimTrackFitterTool.h:52
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
FPGATrackSimTrackFitterTool::m_tfpobj
std::unique_ptr< TrackFitter > m_tfpobj
Definition: FPGATrackSimTrackFitterTool.h:46
FPGATrackSimTrackFitterTool::m_do2ndStage
Gaudi::Property< bool > m_do2ndStage
Definition: FPGATrackSimTrackFitterTool.h:53
FITTRACKS_OK
#define FITTRACKS_OK
Definition: FPGATrackSimTypes.h:15
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
FPGATrackSimTrackFitterTool::m_chi2dof_recovery_min
Gaudi::Property< int > m_chi2dof_recovery_min
Definition: FPGATrackSimTrackFitterTool.h:51
FPGATrackSimTrackFitterTool::m_doMissingHitsChecks
Gaudi::Property< bool > m_doMissingHitsChecks
Definition: FPGATrackSimTrackFitterTool.h:59
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
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
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
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
FPGATrackSimTrackFitterTool::m_FPGATrackSimMapping
ServiceHandle< IFPGATrackSimMappingSvc > m_FPGATrackSimMapping
Definition: FPGATrackSimTrackFitterTool.h:48
FPGATrackSimFitConstantBank
Definition: FPGATrackSimFitConstantBank.h:24
FPGATrackSimTrackFitterTool::m_doMajority
Gaudi::Property< int > m_doMajority
Definition: FPGATrackSimTrackFitterTool.h:54
FPGATrackSimTrackFitterTool::m_noRecoveryNHits
Gaudi::Property< int > m_noRecoveryNHits
Definition: FPGATrackSimTrackFitterTool.h:56
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
merge.status
status
Definition: merge.py:17
TrackCorrType
TrackCorrType
Definition: FPGATrackSimTypes.h:37
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
FPGATrackSimTrackFitterTool::m_doDeltaGPhis
Gaudi::Property< bool > m_doDeltaGPhis
Definition: FPGATrackSimTrackFitterTool.h:58
fitman.k
k
Definition: fitman.py:528