Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
FPGATrackSimBinTool Class Reference

#include <FPGATrackSimBinTool.h>

Inheritance diagram for FPGATrackSimBinTool:
Collaboration diagram for FPGATrackSimBinTool:

Public Member Functions

 FPGATrackSimBinTool (const std::string &algname, const std::string &name, const IInterface *ifc)
 
virtual StatusCode initialize () override
 
const IFPGATrackSimBinDescbinDesc () const
 
const ToolHandleArray< FPGATrackSimBinStep > & steps () const
 
FPGATrackSimBinSteplastStep ()
 
const FPGATrackSimBinSteplastStep () const
 
const std::vector< std::string > & stepNames () const
 
ParSet center () const
 
double parRange (unsigned par) const
 
double parMin (unsigned par) const
 
double parMax (unsigned par) const
 
bool inRange (unsigned par, double val) const
 
bool inRange (const ParSet &pars) const
 
void initValidBins ()
 
void computeValidBins (const IFPGATrackSimEventSelectionSvc *evtSel)
 
void setValidBin (const std::vector< unsigned > &idx)
 
void printValidBin () 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
 

Public Attributes

friend FPGATrackSimBinStep
 

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

Gaudi::Property< double > m_d0FractionalPadding {this, "d0FractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
 
Gaudi::Property< double > m_z0FractionalPadding {this, "z0FractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
 
Gaudi::Property< double > m_etaFractionalPadding {this, "etaFractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
 
Gaudi::Property< double > m_phiFractionalPadding {this, "phiFractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
 
Gaudi::Property< double > m_qOverPtFractionalPadding {this, "qOverPtFractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
 
Gaudi::Property< std::vector< double > > m_parMinConfig {this, "parMin", {}, "Vector of minimum bounds of parameters (expect 5"}
 
Gaudi::Property< std::vector< double > > m_parMaxConfig {this, "parMax", {}, "Vector of maximum bounds of parameters (expect 5"}
 
ToolHandleArray< FPGATrackSimBinStepm_steps {this, "Steps", {}, "Array of FPGATrackSimBinStep: describes which parameters are binned at each step"}
 
ToolHandle< IFPGATrackSimBinDescm_binDesc {this, "BinDesc", "FPGATrackSimBinDescBase", "FPGATrackSimBinDescBase: describes binning track parameters"}
 
ParSet m_parMin {}
 
ParSet m_parMax {}
 
std::vector< std::string > m_stepNames
 
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 44 of file FPGATrackSimBinTool.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

◆ FPGATrackSimBinTool()

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

Definition at line 12 of file FPGATrackSimBinTool.cxx.

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

Member Function Documentation

◆ binDesc()

const IFPGATrackSimBinDesc* FPGATrackSimBinTool::binDesc ( ) const
inline

Definition at line 57 of file FPGATrackSimBinTool.h.

57 {return m_binDesc.get();}

◆ center()

ParSet FPGATrackSimBinTool::center ( ) const

◆ computeValidBins()

void FPGATrackSimBinTool::computeValidBins ( const IFPGATrackSimEventSelectionSvc evtSel)

Definition at line 90 of file FPGATrackSimBinTool.cxx.

90  {
91  // determine which bins are valid
92 
93  FPGATrackSimTrackPars min_padded;
94  FPGATrackSimTrackPars max_padded;
101  for (unsigned par = 0; par < FPGATrackSimTrackPars::NPARS; par++)
102  {
103  min_padded[par] = evtSel->getMin()[par] - padding[par] * (evtSel->getMax()[par]-evtSel->getMin()[par]);
104  max_padded[par] = evtSel->getMax()[par] + padding[par] * (evtSel->getMax()[par]-evtSel->getMin()[par]);
106  // working in units of GeV internally
107  min_padded[par] *= 1000;
108  max_padded[par] *= 1000;
109  }
110  ATH_MSG_INFO("Padded Parameter Range: " << FPGATrackSimTrackPars::parName(par)
111  << " min=" << min_padded[par] << " max=" << max_padded[par]);
112  }
113 
114  // iterator over the finest binning used which is the laststep
115  // setting lastSteps valid bins sets all the previous steps
116  auto laststep = lastStep();
117  for (FPGATrackSimBinArray<int>::Iterator bin : laststep->m_validBinFull)
118  {
119  // this finds the parameters at all 2^5 corners of the bin and then finds the min and max of those
120  std::vector<IdxSet> idxsets = FPGATrackSimBinUtil::makeVariationSet(std::vector<unsigned>({0,1,2,3,4}),bin.idx());
121  FPGATrackSimTrackPars minvals = m_binDesc->parSetToTrackPars(laststep->binCenter(bin.idx()));
122  FPGATrackSimTrackPars maxvals = m_binDesc->parSetToTrackPars(laststep->binCenter(bin.idx()));
123  for (IdxSet & idxset : idxsets) {
124  FPGATrackSimTrackPars trackpars = m_binDesc->parSetToTrackPars(laststep->binLowEdge(idxset));
125  for (unsigned par =0; par < FPGATrackSimTrackPars::NPARS; par++) {
126  minvals[par] = std::min(minvals[par],trackpars[par]);
127  maxvals[par] = std::max(maxvals[par],trackpars[par]);
128  }
129  }
130 
131  // make sure bin overlaps with active region
132  bool inRange = true;
133  for (unsigned par =0; par < FPGATrackSimTrackPars::NPARS; par++) {
134  inRange = inRange && (minvals[par] < max_padded[par]) && (maxvals[par] > min_padded[par]);
135  }
136  if (inRange)
137  {
138  setValidBin(bin.idx());
139  }
140 
141  if (bin.data() == false)
142  {
143  ATH_MSG_VERBOSE("Invalid bin: " << bin.idx() << " :" << m_binDesc->parSetToTrackPars(laststep->binCenter(bin.idx()))
144  << " minvals: " << minvals << " maxvals: " << maxvals );
145  }
146  }
147 }

◆ 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

◆ initialize()

StatusCode FPGATrackSimBinTool::initialize ( )
overridevirtual

Definition at line 22 of file FPGATrackSimBinTool.cxx.

22  {
23  // Dump the configuration to make sure it propagated through right
24  const std::vector<Gaudi::Details::PropertyBase*> props = this->getProperties();
25  for( Gaudi::Details::PropertyBase* prop : props ) {
26  if (prop->ownerTypeName()==this->type()) {
27  ATH_MSG_DEBUG("Property:\t" << prop->name() << "\t : \t" << prop->toString());
28  }
29  }
30 
31  // Retrieve
32  ATH_MSG_INFO("Using " << m_steps.size() << " steps");
33  ATH_CHECK(m_steps.retrieve());
34 
35  if (m_steps.empty()) {
36  ATH_MSG_FATAL("initialize() Step list empty");
37  return StatusCode::FAILURE;
38  }
39 
40  m_parMin = std::vector<double>(m_parMinConfig);
41  m_parMax = std::vector<double>(m_parMaxConfig);
42 
43  FPGATrackSimBinStep* prev = 0;
44  for (auto &step : m_steps) {
45  ATH_MSG_INFO("Got Binning Step " << step->stepName());
46  m_stepNames.push_back(step->stepName());
47  if (!step->setRanges(prev, m_parMin, m_parMax)) {
48  ATH_MSG_FATAL("Failed to setRange on step");
49  return StatusCode::FAILURE;
50  }
51  prev = step.get();
52  }
53 
54  return StatusCode::SUCCESS;
55 }

◆ initValidBins()

void FPGATrackSimBinTool::initValidBins ( )

Definition at line 78 of file FPGATrackSimBinTool.cxx.

78  {
79  for (auto& step: m_steps) step->initValidBins();
80 }

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

◆ inRange() [1/2]

bool FPGATrackSimBinTool::inRange ( const ParSet pars) const

◆ inRange() [2/2]

bool FPGATrackSimBinTool::inRange ( unsigned  par,
double  val 
) const
inline

Definition at line 78 of file FPGATrackSimBinTool.h.

78 { return ((val < m_parMax[par]) && (val > m_parMin[par])); }

◆ lastStep() [1/2]

FPGATrackSimBinStep* FPGATrackSimBinTool::lastStep ( )
inline

Definition at line 59 of file FPGATrackSimBinTool.h.

59 { return (--m_steps.end())->get(); }

◆ lastStep() [2/2]

const FPGATrackSimBinStep* FPGATrackSimBinTool::lastStep ( ) const
inline

Definition at line 60 of file FPGATrackSimBinTool.h.

60 { return (--m_steps.end())->get(); }

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

◆ parMax()

double FPGATrackSimBinTool::parMax ( unsigned  par) const
inline

Definition at line 75 of file FPGATrackSimBinTool.h.

75 { return m_parMax[par];}

◆ parMin()

double FPGATrackSimBinTool::parMin ( unsigned  par) const
inline

Definition at line 74 of file FPGATrackSimBinTool.h.

74 { return m_parMin[par];}

◆ parRange()

double FPGATrackSimBinTool::parRange ( unsigned  par) const
inline

Definition at line 73 of file FPGATrackSimBinTool.h.

73 { return m_parMax[par]-m_parMin[par];}

◆ printValidBin()

void FPGATrackSimBinTool::printValidBin ( ) const

Definition at line 82 of file FPGATrackSimBinTool.cxx.

82  {
83  for (auto &step : m_steps) {
84  step->printValidBin();
85  }
86 }

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

◆ setValidBin()

void FPGATrackSimBinTool::setValidBin ( const std::vector< unsigned > &  idx)

Definition at line 74 of file FPGATrackSimBinTool.cxx.

74  {
76 }

◆ stepNames()

const std::vector<std::string>& FPGATrackSimBinTool::stepNames ( ) const
inline

Definition at line 61 of file FPGATrackSimBinTool.h.

61 {return m_stepNames;}

◆ steps()

const ToolHandleArray<FPGATrackSimBinStep>& FPGATrackSimBinTool::steps ( ) const
inline

Definition at line 58 of file FPGATrackSimBinTool.h.

58 { return m_steps;}

◆ 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

◆ FPGATrackSimBinStep

friend FPGATrackSimBinTool::FPGATrackSimBinStep

Definition at line 46 of file FPGATrackSimBinTool.h.

◆ m_binDesc

ToolHandle<IFPGATrackSimBinDesc> FPGATrackSimBinTool::m_binDesc {this, "BinDesc", "FPGATrackSimBinDescBase", "FPGATrackSimBinDescBase: describes binning track parameters"}
private

Definition at line 106 of file FPGATrackSimBinTool.h.

◆ m_d0FractionalPadding

Gaudi::Property<double> FPGATrackSimBinTool::m_d0FractionalPadding {this, "d0FractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
private

Definition at line 97 of file FPGATrackSimBinTool.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_etaFractionalPadding

Gaudi::Property<double> FPGATrackSimBinTool::m_etaFractionalPadding {this, "etaFractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
private

Definition at line 99 of file FPGATrackSimBinTool.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_parMax

ParSet FPGATrackSimBinTool::m_parMax {}
private

Definition at line 114 of file FPGATrackSimBinTool.h.

◆ m_parMaxConfig

Gaudi::Property<std::vector<double> > FPGATrackSimBinTool::m_parMaxConfig {this, "parMax", {}, "Vector of maximum bounds of parameters (expect 5"}
private

Definition at line 103 of file FPGATrackSimBinTool.h.

◆ m_parMin

ParSet FPGATrackSimBinTool::m_parMin {}
private

Definition at line 113 of file FPGATrackSimBinTool.h.

◆ m_parMinConfig

Gaudi::Property<std::vector<double> > FPGATrackSimBinTool::m_parMinConfig {this, "parMin", {}, "Vector of minimum bounds of parameters (expect 5"}
private

Definition at line 102 of file FPGATrackSimBinTool.h.

◆ m_phiFractionalPadding

Gaudi::Property<double> FPGATrackSimBinTool::m_phiFractionalPadding {this, "phiFractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
private

Definition at line 100 of file FPGATrackSimBinTool.h.

◆ m_qOverPtFractionalPadding

Gaudi::Property<double> FPGATrackSimBinTool::m_qOverPtFractionalPadding {this, "qOverPtFractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
private

Definition at line 101 of file FPGATrackSimBinTool.h.

◆ m_stepNames

std::vector<std::string> FPGATrackSimBinTool::m_stepNames
private

Definition at line 117 of file FPGATrackSimBinTool.h.

◆ m_steps

ToolHandleArray<FPGATrackSimBinStep> FPGATrackSimBinTool::m_steps {this, "Steps", {}, "Array of FPGATrackSimBinStep: describes which parameters are binned at each step"}
private

Definition at line 105 of file FPGATrackSimBinTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_z0FractionalPadding

Gaudi::Property<double> FPGATrackSimBinTool::m_z0FractionalPadding {this, "z0FractionalPadding", {}, "Fractional padding used when calculating the valid range of bins"}
private

Definition at line 98 of file FPGATrackSimBinTool.h.


The documentation for this class was generated from the following files:
FPGATrackSimTrackPars::IHIP
@ IHIP
Definition: FPGATrackSimTrackPars.h:49
FPGATrackSimBinTool::m_parMin
ParSet m_parMin
Definition: FPGATrackSimBinTool.h:113
FPGATrackSimTrackPars::ID0
@ ID0
Definition: FPGATrackSimTrackPars.h:49
FPGATrackSimBinTool::m_parMax
ParSet m_parMax
Definition: FPGATrackSimBinTool.h:114
FPGATrackSimBinTool::m_d0FractionalPadding
Gaudi::Property< double > m_d0FractionalPadding
Definition: FPGATrackSimBinTool.h:97
getMenu.algname
algname
Definition: getMenu.py:54
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
FPGATrackSimBinStep
Definition: FPGATrackSimBinStep.h:49
FPGATrackSimBinTool::m_stepNames
std::vector< std::string > m_stepNames
Definition: FPGATrackSimBinTool.h:117
FPGATrackSimBinTool::m_binDesc
ToolHandle< IFPGATrackSimBinDesc > m_binDesc
Definition: FPGATrackSimBinTool.h:106
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
FPGATrackSimTrackPars
Definition: FPGATrackSimTrackPars.h:22
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
FPGATrackSimTrackPars::IZ0
@ IZ0
Definition: FPGATrackSimTrackPars.h:49
FPGATrackSimBinTool::m_etaFractionalPadding
Gaudi::Property< double > m_etaFractionalPadding
Definition: FPGATrackSimBinTool.h:99
bin
Definition: BinsDiffFromStripMedian.h:43
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
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
FPGATrackSimBinTool::lastStep
FPGATrackSimBinStep * lastStep()
Definition: FPGATrackSimBinTool.h:59
FPGATrackSimBinTool::m_parMaxConfig
Gaudi::Property< std::vector< double > > m_parMaxConfig
Definition: FPGATrackSimBinTool.h:103
dqutils::padding
std::atomic< int > padding
Definition: MonitoringFile_MoveVertexMonitoring.cxx:20
FPGATrackSimBinStep::setValidBin
void setValidBin(const std::vector< unsigned > &idx)
Definition: FPGATrackSimBinStep.cxx:128
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
FPGATrackSimBinTool::m_phiFractionalPadding
Gaudi::Property< double > m_phiFractionalPadding
Definition: FPGATrackSimBinTool.h:100
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
FPGATrackSimBinTool::inRange
bool inRange(unsigned par, double val) const
Definition: FPGATrackSimBinTool.h:78
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
FPGATrackSimBinArray
Definition: FPGATrackSimBinArray.h:41
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
FPGATrackSimBinTool::m_parMinConfig
Gaudi::Property< std::vector< double > > m_parMinConfig
Definition: FPGATrackSimBinTool.h:102
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
FPGATrackSimBinTool::setValidBin
void setValidBin(const std::vector< unsigned > &idx)
Definition: FPGATrackSimBinTool.cxx:74
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
IFPGATrackSimEventSelectionSvc::getMin
virtual FPGATrackSimTrackPars getMin() const =0
FPGATrackSimBinUtil::makeVariationSet
std::vector< IdxSet > makeVariationSet(const std::vector< unsigned > &scanpars, const IdxSet &idx)
Definition: FPGATrackSimBinUtil.cxx:92
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
FPGATrackSimBinTool::m_z0FractionalPadding
Gaudi::Property< double > m_z0FractionalPadding
Definition: FPGATrackSimBinTool.h:98
FPGATrackSimTrackPars::parName
static std::string parName(unsigned i)
Definition: FPGATrackSimTrackPars.cxx:72
FPGATrackSimTrackPars::IPHI
@ IPHI
Definition: FPGATrackSimTrackPars.h:49
a
TList * a
Definition: liststreamerinfos.cxx:10
h
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
FPGATrackSimTrackPars::NPARS
@ NPARS
Definition: FPGATrackSimTrackPars.h:49
IFPGATrackSimEventSelectionSvc::getMax
virtual FPGATrackSimTrackPars getMax() const =0
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
LArCellBinning.step
step
Definition: LArCellBinning.py:158
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
FPGATrackSimBinTool::m_steps
ToolHandleArray< FPGATrackSimBinStep > m_steps
Definition: FPGATrackSimBinTool.h:105
FPGATrackSimBinUtil::IdxSet
Definition: FPGATrackSimBinUtil.h:50
FPGATrackSimBinTool::m_qOverPtFractionalPadding
Gaudi::Property< double > m_qOverPtFractionalPadding
Definition: FPGATrackSimBinTool.h:101
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
FPGATrackSimTrackPars::IETA
@ IETA
Definition: FPGATrackSimTrackPars.h:49