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

Benchmark algorithm for FPGA integration and output conversion. More...

#include <F1X0XRTIntegrationAlg.h>

Inheritance diagram for EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg:
Collaboration diagram for EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg:

Public Member Functions

virtual StatusCode initialize () override final
 Detect the OpenCL devices and prepare OpenCL context. More...
 
virtual StatusCode execute (const EventContext &ctx) const override final
 Should be overriden by derived classes to perform meaningful work. More...
 
virtual StatusCode finalize () override final
 
StatusCode loadProgram (const std::string &xclbin)
 Find the xclbin file and load it into the OpenCL program object. More...
 
StatusCode precheck (const std::vector< Gaudi::Property< std::string >> &inputs) const
 Check if the the desired Gaudi properties are set. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) 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 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, V, H > &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...
 

Protected Attributes

cl::Device m_accelerator
 Device object for the accelerator card. More...
 
cl::Context m_context
 Context object for the application. More...
 
cl::Program m_program
 Program object containing the kernel. More...
 
Gaudi::Property< std::string > m_deviceBDF {this, "bdfID", "", "BDF ID of the accelerator card"}
 BDF ID of the accelerator card. More...
 
Gaudi::Property< bool > m_doEmulation {this, "doEmulation", false, "If software or hardware emulation is being used for debugging"}
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void getListofCUs (std::vector< std::string > &cuNames)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ServiceHandle< IChronoSvc > m_chronoSvc {"ChronoStatSvc", name()}
 Service for timing the algorithm. More...
 
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAPixelRDO {this, "FPGAEncodedPixelKey", "FPGAEncodedPixelRDOs", "Pixel RDO converted to FPGA format"}
 
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAStripRDO {this, "FPGAEncodedStripKey", "FPGAEncodedStripRDOs", "Strip RDO converted to FPGA format"}
 
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAPixelOutput {this, "FPGAOutputPixelKey", "FPGAPixelOutput", "Pixel output from FPGA format"}
 
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAStripOutput {this, "FPGAOutputStripKey", "FPGAStripOutput", "Strip output from FPGA format"}
 
Gaudi::Property< int > m_FPGAThreads {this, "FPGAThreads", 1, "number of FPGA threads to initialize"}
 
Gaudi::Property< std::string > m_xclbin
 Path and name of the xclbin file. More...
 
Gaudi::Property< bool > m_doF110
 Boolean to run F110 instead of F100. More...
 
Gaudi::Property< std::string > m_pixelEdmKernelName
 
Gaudi::Property< std::string > m_stripEdmKernelName
 
Gaudi::Property< std::string > m_pixelClusterKernelName
 
Gaudi::Property< std::string > m_stripClusterKernelName
 
Gaudi::Property< std::string > m_pixelL2GKernelName
 
Gaudi::Property< std::string > m_stripL2GKernelName
 
std::atomic< uint64_t > m_numEvents {0}
 Number of events processed. More...
 
std::atomic< uint64_t > m_pixelInputTime {0}
 Time for pixel input buffer write. More...
 
std::atomic< uint64_t > m_stripInputTime {0}
 Time for strip input buffer write. More...
 
std::atomic< uint64_t > m_pixelClusteringTime {0}
 Time for pixel clustering. More...
 
std::atomic< uint64_t > m_stripClusteringTime {0}
 Time for strip clustering. More...
 
std::atomic< uint64_t > m_pixelL2GTime {0}
 Time for pixel L2G (F100) More...
 
std::atomic< uint64_t > m_stripL2GTime {0}
 Time for strip L2G. More...
 
std::atomic< uint64_t > m_edmPrepTime {0}
 Time for EDM preparation (F100) More...
 
std::atomic< uint64_t > m_pixelEdmPrepTime {0}
 Time for pixel EDM preparation (F110) More...
 
std::atomic< uint64_t > m_stripEdmPrepTime {0}
 Time for strip EDM preparation (F110) More...
 
std::atomic< uint64_t > m_pixelOutputTime {0}
 Time for pixel output buffer read. More...
 
std::atomic< uint64_t > m_stripOutputTime {0}
 Time for strip output buffer read. More...
 
std::atomic< uint64_t > m_kernelTime {0}
 Time window covering kernel execution. More...
 
xrt::device m_xrtDevice
 
xrt::uuid m_xrtUuid
 
std::vector< xrt::kernel > m_pixelClusteringKernels ATLAS_THREAD_SAFE
 
std::vector< xrt::kernel > m_stripClusteringKernels ATLAS_THREAD_SAFE
 
std::vector< xrt::kernel > m_pixelL2GKernels ATLAS_THREAD_SAFE
 
std::vector< xrt::kernel > m_stripL2GKernels ATLAS_THREAD_SAFE
 
std::vector< xrt::kernel > m_pixelEdmPrepKernels ATLAS_THREAD_SAFE
 
std::vector< xrt::kernel > m_stripEdmPrepKernels ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_pixelClusterInputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_stripClusterInputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_pixelClusterOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_stripClusterOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_pixelClusterEDMOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_stripClusterEDMOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_pixelL2GOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_stripL2GOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_pixelL2GEDMOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_stripL2GEDMOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_edmPixelOutputBOList ATLAS_THREAD_SAFE
 
std::vector< xrt::bo > m_edmStripOutputBOList ATLAS_THREAD_SAFE
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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

Benchmark algorithm for FPGA integration and output conversion.

Uses native XRT API (no OpenCL).

Definition at line 43 of file F1X0XRTIntegrationAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::execute ( const EventContext &  ctx) const
finaloverridevirtual

Should be overriden by derived classes to perform meaningful work.

Reimplemented from IntegrationBase.

Definition at line 140 of file F1X0XRTIntegrationAlg.cxx.

141 {
142  ATH_MSG_DEBUG("Executing F1X0XRTIntegrationAlg (XRT)");
143  m_numEvents++;
144 
145  // Inputs
146  const std::vector<uint64_t>* pixelInput{nullptr};
147  const std::vector<uint64_t>* stripInput{nullptr};
148  ATH_CHECK(SG::get(pixelInput, m_FPGAPixelRDO, ctx));
149  ATH_CHECK(SG::get(stripInput, m_FPGAStripRDO, ctx));
150 
151 
152  // Thread/buffer index
153  unsigned int nthreads = (m_FPGAThreads.value() < 1) ? SG::getNSlots() : m_FPGAThreads.value();
154  const size_t bufferIndex = ctx.slot() % nthreads;
155 
156  // Kernel indices
157  const size_t pixelClusterIndex = ctx.slot() % m_pixelClusteringKernels.size();
158  const size_t stripClusterIndex = ctx.slot() % m_stripClusteringKernels.size();
159  const size_t stripL2GIndex = ctx.slot() % m_stripL2GKernels.size();
160  const size_t pixelL2GIndex = m_pixelL2GKernels.empty() ? 0 : (ctx.slot() % m_pixelL2GKernels.size());
161  const size_t pixelEDMIndex = m_pixelEdmPrepKernels.empty() ? 0 : (ctx.slot() % m_pixelEdmPrepKernels.size());
162  const size_t stripEDMIndex = m_stripEdmPrepKernels.empty() ? 0 : (ctx.slot() % m_stripEdmPrepKernels.size());
163 
164  ATH_MSG_INFO("Thread number " << ctx.slot()
165  << " running on buffer " << bufferIndex
166  << " pixelClusterIndex: " << pixelClusterIndex
167  << " stripClusterIndex: " << stripClusterIndex
168  << " stripL2GIndex: " << stripL2GIndex
169  << " pixelL2GIndex: " << pixelL2GIndex
170  << " pixelEDMIndex: " << pixelEDMIndex
171  << " stripEDMIndex: " << stripEDMIndex);
172 
173  // BO aliases
174  auto& bo_pix_in = m_pixelClusterInputBOList[bufferIndex];
175  auto& bo_str_in = m_stripClusterInputBOList[bufferIndex];
176 
177  xrt::bo* bo_pix_cl_out = (!m_doF110) ? &m_pixelClusterOutputBOList[bufferIndex] : nullptr;
178  auto& bo_pix_cl_edm = m_pixelClusterEDMOutputBOList[bufferIndex];
179 
180  auto& bo_str_cl = m_stripClusterOutputBOList[bufferIndex];
181  auto& bo_str_cl_edm = m_stripClusterEDMOutputBOList[bufferIndex];
182 
183  xrt::bo* bo_pix_l2g_out = (!m_doF110) ? &m_pixelL2GOutputBOList[bufferIndex] : nullptr;
184  xrt::bo* bo_pix_l2g_edm = (!m_doF110) ? &m_pixelL2GEDMOutputBOList[bufferIndex] : nullptr;
185 
186  auto& bo_str_l2g_out = m_stripL2GOutputBOList[bufferIndex];
187  auto& bo_str_l2g_edm = m_stripL2GEDMOutputBOList[bufferIndex];
188 
189  auto& bo_pix_edm_cont = m_edmPixelOutputBOList[bufferIndex];
190  auto& bo_str_edm_cont = m_edmStripOutputBOList[bufferIndex];
191 
192  // Write inputs (and time them)
193  const auto t_wi0 = std::chrono::steady_clock::now();
194  bo_pix_in.write(pixelInput->data(), pixelInput->size() * sizeof(uint64_t), 0);
195  bo_pix_in.sync(XCL_BO_SYNC_BO_TO_DEVICE);
196  const auto t_wi1 = std::chrono::steady_clock::now();
197  m_pixelInputTime += ns_between(t_wi0, t_wi1);
198  ATH_MSG_DEBUG("Pixel input buffer write time: " << (ns_between(t_wi0, t_wi1) / 1e6) << " ms");
199 
200  const auto t_wi2 = std::chrono::steady_clock::now();
201  bo_str_in.write(stripInput->data(), stripInput->size() * sizeof(uint64_t), 0);
202  bo_str_in.sync(XCL_BO_SYNC_BO_TO_DEVICE);
203  const auto t_wi3 = std::chrono::steady_clock::now();
204  m_stripInputTime += ns_between(t_wi2, t_wi3);
205  ATH_MSG_DEBUG("Strip input buffer write time: " << (ns_between(t_wi2, t_wi3) / 1e6) << " ms");
206 
207  // Launch kernels
208  const auto t_k0 = std::chrono::steady_clock::now();
209 
210  // Pixel clustering
211  auto& k_pix_cl = m_pixelClusteringKernels[pixelClusterIndex];
212  xrt::run r_pix_cl{k_pix_cl};
213  r_pix_cl.set_arg(0, bo_pix_in);
214  if (m_doF110) {
215  r_pix_cl.set_arg(1, bo_pix_cl_edm);
216  } else {
217  r_pix_cl.set_arg(1, *bo_pix_cl_out);
218  r_pix_cl.set_arg(2, bo_pix_cl_edm);
219 
220  // extra size args (bytes), rounded to 256 elements
221  int rounded = static_cast<int>(std::ceil(static_cast<double>(pixelInput->size()) / 256.0)) * 256;
222  uint32_t hit_bytes = static_cast<uint32_t>(sizeof(uint64_t) * rounded);
223  uint32_t cluster_bytes = static_cast<uint32_t>(sizeof(uint64_t) * rounded);
224  uint32_t edm_bytes = static_cast<uint32_t>(sizeof(uint64_t) * rounded * 8);
225  r_pix_cl.set_arg(3, hit_bytes);
226  r_pix_cl.set_arg(4, cluster_bytes);
227  r_pix_cl.set_arg(5, edm_bytes);
228  }
229  const auto t_pc_start = std::chrono::steady_clock::now();
230  r_pix_cl.start();
231  // Strip clustering
232  auto& k_str_cl = m_stripClusteringKernels[stripClusterIndex];
233  xrt::run r_str_cl{k_str_cl};
234  r_str_cl.set_arg(0, bo_str_in);
235  r_str_cl.set_arg(1, bo_str_cl);
236  r_str_cl.set_arg(2, bo_str_cl_edm);
237  r_str_cl.set_arg(3, static_cast<unsigned int>(stripInput->size()));
238  const auto t_sc_start = std::chrono::steady_clock::now();
239  r_str_cl.start();
240 
241  r_pix_cl.wait();
242  const auto t_pc_done = std::chrono::steady_clock::now();
243  m_pixelClusteringTime += ns_between(t_pc_start, t_pc_done);
244  ATH_MSG_DEBUG("Pixel clustering time: " << (ns_between(t_pc_start, t_pc_done) / 1e6) << " ms");
245 
246  r_str_cl.wait();
247  const auto t_sc_done = std::chrono::steady_clock::now();
248  m_stripClusteringTime += ns_between(t_sc_start, t_sc_done);
249  ATH_MSG_DEBUG("Strip clustering time: " << (ns_between(t_sc_start, t_sc_done) / 1e6) << " ms");
250 
251  // Pixel L2G (only for F100)
252  std::chrono::steady_clock::time_point t_pl2g_done = t_pc_done;
253  if (!m_doF110) {
254  auto& k_pix_l2g = m_pixelL2GKernels[pixelL2GIndex];
255  xrt::run r_pix_l2g{k_pix_l2g};
256  r_pix_l2g.set_arg(0, *bo_pix_cl_out);
257  r_pix_l2g.set_arg(1, bo_pix_cl_edm);
258  r_pix_l2g.set_arg(2, *bo_pix_l2g_out);
259  r_pix_l2g.set_arg(3, *bo_pix_l2g_edm);
260  const auto t_pl2g_start = std::chrono::steady_clock::now();
261  r_pix_l2g.start();
262  r_pix_l2g.wait();
263  t_pl2g_done = std::chrono::steady_clock::now();
264  m_pixelL2GTime += ns_between(t_pl2g_start, t_pl2g_done);
265  ATH_MSG_DEBUG("Pixel L2G time: " << (ns_between(t_pl2g_start, t_pl2g_done) / 1e6) << " ms");
266  }
267 
268  // Strip L2G
269  auto& k_str_l2g = m_stripL2GKernels[stripL2GIndex];
270  xrt::run r_str_l2g{k_str_l2g};
271  r_str_l2g.set_arg(0, bo_str_cl);
272  r_str_l2g.set_arg(1, bo_str_cl_edm);
273  r_str_l2g.set_arg(2, bo_str_l2g_out);
274  r_str_l2g.set_arg(3, bo_str_l2g_edm);
275  const auto t_sl2g_start = std::chrono::steady_clock::now();
276  r_str_l2g.start();
277  r_str_l2g.wait();
278  const auto t_sl2g_done = std::chrono::steady_clock::now();
279  m_stripL2GTime += ns_between(t_sl2g_start, t_sl2g_done);
280  ATH_MSG_DEBUG("Strip L2G time: " << (ns_between(t_sl2g_start, t_sl2g_done) / 1e6) << " ms");
281 
282  // EDM Prep (always use PixelEDM and StripEDM kernels)
283  auto& k_pedm = m_pixelEdmPrepKernels[pixelEDMIndex];
284  auto& k_sedm = m_stripEdmPrepKernels[stripEDMIndex];
285 
286  xrt::run r_pedm{k_pedm};
287  r_pedm.set_arg(0, bo_pix_cl_edm);
288  r_pedm.set_arg(1, bo_pix_edm_cont);
289 
290  xrt::run r_sedm{k_sedm};
291  r_sedm.set_arg(0, bo_str_l2g_edm);
292  r_sedm.set_arg(1, bo_str_edm_cont);
293 
294  // Respect dependencies:
295  // - PixelEDM depends on pixel clustering (F110) or pixel L2G (F100)
296  // - StripEDM depends on strip L2G
297  const auto t_pedm_start = std::chrono::steady_clock::now();
298  r_pedm.start();
299 
300  const auto t_sedm_start = std::chrono::steady_clock::now();
301  // already waited for r_str_l2g
302  r_sedm.start();
303 
304  r_pedm.wait();
305  const auto t_pedm_done = std::chrono::steady_clock::now();
306  m_pixelEdmPrepTime += ns_between(t_pedm_start, t_pedm_done);
307  ATH_MSG_DEBUG("PixelEDMPrep time: " << (ns_between(t_pedm_start, t_pedm_done) / 1e6) << " ms");
308 
309  r_sedm.wait();
310  const auto t_sedm_done = std::chrono::steady_clock::now();
311  m_stripEdmPrepTime += ns_between(t_sedm_start, t_sedm_done);
312  ATH_MSG_DEBUG("StripEDMPrep time: " << (ns_between(t_sedm_start, t_sedm_done) / 1e6) << " ms");
313 
314  // Kernel window = [first start, last end]
315  const auto t_kend = std::max(t_pedm_done, t_sedm_done);
316  m_kernelTime += ns_between(t_k0, t_kend);
317  ATH_MSG_DEBUG("Kernel execution time: " << (ns_between(t_k0, t_kend) / 1e6) << " ms");
318 
319  // Output handles and readbacks
321  ATH_CHECK(FPGAPixelOutput.record(std::make_unique<std::vector<uint64_t>>(EFTrackingTransient::PIXEL_CONTAINER_BUF_SIZE, 0)));
322 
324  ATH_CHECK(FPGAStripOutput.record(std::make_unique<std::vector<uint64_t>>(EFTrackingTransient::STRIP_CONTAINER_BUF_SIZE, 0)));
325 
326  const auto t_ro0 = std::chrono::steady_clock::now();
327  bo_pix_edm_cont.sync(XCL_BO_SYNC_BO_FROM_DEVICE);
328  bo_pix_edm_cont.read(FPGAPixelOutput->data(), FPGAPixelOutput->size() * sizeof(uint64_t), 0);
329  const auto t_ro1 = std::chrono::steady_clock::now();
330  m_pixelOutputTime += ns_between(t_ro0, t_ro1);
331  ATH_MSG_DEBUG("Pixel output buffer read time: " << (ns_between(t_ro0, t_ro1) / 1e6) << " ms");
332 
333  const auto t_ro2 = std::chrono::steady_clock::now();
334  bo_str_edm_cont.sync(XCL_BO_SYNC_BO_FROM_DEVICE);
335  bo_str_edm_cont.read(FPGAStripOutput->data(), FPGAStripOutput->size() * sizeof(uint64_t), 0);
336  const auto t_ro3 = std::chrono::steady_clock::now();
337  m_stripOutputTime += ns_between(t_ro2, t_ro3);
338  ATH_MSG_DEBUG("Strip output buffer read time: " << (ns_between(t_ro2, t_ro3) / 1e6) << " ms");
339 
340 
341  if(pixelInput->size() == 6) (*FPGAPixelOutput)[0] = 0; // if no pixel input, set the first element to 0
342  if(stripInput->size() == 6) (*FPGAStripOutput)[0] = 0; // if no strip input, set the first element to 0
343 
344  return StatusCode::SUCCESS;
345 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ finalize()

StatusCode EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::finalize ( )
finaloverridevirtual

Definition at line 347 of file F1X0XRTIntegrationAlg.cxx.

348 {
349  ATH_MSG_INFO("Finalizing F1X0XRTIntegrationAlg");
350  ATH_MSG_INFO("Number of events: " << m_numEvents);
351 
352  if (m_numEvents > 0) {
353  ATH_MSG_INFO("Pixel input ave time: " << m_pixelInputTime / m_numEvents / 1e6 << " ms");
354  ATH_MSG_INFO("Strip input ave time: " << m_stripInputTime / m_numEvents / 1e6 << " ms");
355  ATH_MSG_INFO("Pixel clustering ave time: " << m_pixelClusteringTime / m_numEvents / 1e6 << " ms");
356  ATH_MSG_INFO("Strip clustering ave time: " << m_stripClusteringTime / m_numEvents / 1e6 << " ms");
357  if (!m_doF110) {
358  ATH_MSG_INFO("Pixel L2G ave time: " << m_pixelL2GTime / m_numEvents / 1e6 << " ms");
359  }
360  ATH_MSG_INFO("Strip L2G ave time: " << m_stripL2GTime / m_numEvents / 1e6 << " ms");
361  ATH_MSG_INFO("PixelEDMPrep ave time: " << m_pixelEdmPrepTime / m_numEvents / 1e6 << " ms");
362  ATH_MSG_INFO("StripEDMPrep ave time: " << m_stripEdmPrepTime / m_numEvents / 1e6 << " ms");
363  ATH_MSG_INFO("Kernel execution ave time: " << m_kernelTime / m_numEvents / 1e6 << " ms");
364  ATH_MSG_INFO("Pixel output ave time: " << m_pixelOutputTime / m_numEvents / 1e6 << " ms");
365  ATH_MSG_INFO("Strip output ave time: " << m_stripOutputTime / m_numEvents / 1e6 << " ms");
366  }
367 
368  return StatusCode::SUCCESS;
369 }

◆ getListofCUs()

void EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::getListofCUs ( std::vector< std::string > &  cuNames)
private

Definition at line 371 of file F1X0XRTIntegrationAlg.cxx.

372 {
373  xrt::xclbin xrt_xclbin(m_xclbin);
374 
375  ATH_MSG_INFO("xsa name: " << xrt_xclbin.get_xsa_name());
376  ATH_MSG_INFO("fpga name: " << xrt_xclbin.get_fpga_device_name());
377  ATH_MSG_INFO("uuid: " << xrt_xclbin.get_uuid().to_string());
378 
379  for (const xrt::xclbin::kernel &kernel : xrt_xclbin.get_kernels()) {
380  const std::string& kernelName = kernel.get_name();
381  ATH_MSG_INFO("kernelName: " << kernelName);
382  for (const xrt::xclbin::ip &computeUnit : kernel.get_cus()) {
383  const std::string& computeUnitName = computeUnit.get_name();
384  const std::string computeUnitIsolatedName = computeUnitName.substr(kernelName.size() + 1);
385  const std::string computeUnitUsableName = kernelName + ":{" + computeUnitIsolatedName + "}";
386  ATH_MSG_INFO("CU name: " << computeUnitUsableName);
387  cuNames.push_back(computeUnitUsableName);
388  }
389  }
390 }

◆ initialize()

StatusCode EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::initialize ( )
finaloverridevirtual

Detect the OpenCL devices and prepare OpenCL context.

This should always be called by derived classes when running on the FPGA accelerator.

Reimplemented from IntegrationBase.

Definition at line 28 of file F1X0XRTIntegrationAlg.cxx.

29 {
30  ATH_MSG_INFO("Running on the FPGA accelerator (XRT native)");
31 
33  ATH_CHECK(m_chronoSvc.retrieve());
34 
35  // Open device and load xclbin
36  {
37  Athena::Chrono chrono("XRT::device open", m_chronoSvc.get());
38  // TODO: expose as configurable if you need a different board index
39  m_xrtDevice = xrt::device(0);
40  }
41  {
42  Athena::Chrono chrono("XRT::load_xclbin", m_chronoSvc.get());
43  xrt::xclbin xb(m_xclbin);
44  m_xrtUuid = m_xrtDevice.load_xclbin(xb);
45  }
46  ATH_MSG_INFO("loading " << m_xclbin);
47 
52 
53  // Enumerate CUs
54  std::vector<std::string> listofCUs;
55  getListofCUs(listofCUs);
56 
57  // Create kernels (per CU)
58  for (const auto& cuName : listofCUs) {
59  try {
60  if (cuName.find(m_pixelClusterKernelName.value()) != std::string::npos)
61  m_pixelClusteringKernels.emplace_back(xrt::kernel{m_xrtDevice, m_xrtUuid, cuName.c_str()});
62  else if (cuName.find(m_stripClusterKernelName.value()) != std::string::npos)
63  m_stripClusteringKernels.emplace_back(xrt::kernel{m_xrtDevice, m_xrtUuid, cuName.c_str()});
64  else if (!m_doF110 && cuName.find(m_pixelL2GKernelName.value()) != std::string::npos)
65  m_pixelL2GKernels.emplace_back(xrt::kernel{m_xrtDevice, m_xrtUuid, cuName.c_str()});
66  else if (cuName.find(m_stripL2GKernelName.value()) != std::string::npos)
67  m_stripL2GKernels.emplace_back(xrt::kernel{m_xrtDevice, m_xrtUuid, cuName.c_str()});
68  else if (cuName.find(m_pixelEdmKernelName.value()) != std::string::npos)
69  m_pixelEdmPrepKernels.emplace_back(xrt::kernel{m_xrtDevice, m_xrtUuid, cuName.c_str()});
70  else if (cuName.find(m_stripEdmKernelName.value()) != std::string::npos)
71  m_stripEdmPrepKernels.emplace_back(xrt::kernel{m_xrtDevice, m_xrtUuid, cuName.c_str()});
72  else
73  ATH_MSG_WARNING("Do not recognize kernel name: " << cuName);
74  } catch (const std::exception& e) {
75  ATH_MSG_ERROR("Failed to create kernel for CU '" << cuName << "': " << e.what());
76  return StatusCode::FAILURE;
77  }
78  }
79 
80  ATH_MSG_INFO(m_pixelClusterKernelName.value() << " size: " << m_pixelClusteringKernels.size());
81  ATH_MSG_INFO(m_stripClusterKernelName.value() << " size: " << m_stripClusteringKernels.size());
82  ATH_MSG_INFO(m_pixelL2GKernelName.value() << " size: " << m_pixelL2GKernels.size());
83  ATH_MSG_INFO(m_stripL2GKernelName.value() << " size: " << m_stripL2GKernels.size());
84  ATH_MSG_INFO(m_pixelEdmKernelName.value() << " size: " << m_pixelEdmPrepKernels.size());
85  ATH_MSG_INFO(m_stripEdmKernelName.value() << " size: " << m_stripEdmPrepKernels.size());
86 
87  // ---------------------------------------------------------------------------
88  // Allocate BOs per "thread" (slot). Bind each BO to the bank inferred from
89  // the kernel's group_id(argument_index). If kernel vector is empty, fall back to bank 0.
90  // ---------------------------------------------------------------------------
91  unsigned int nthreads = (m_FPGAThreads.value() < 1) ? SG::getNSlots() : m_FPGAThreads.value();
92 
93  auto choose = [](const std::vector<xrt::kernel>& ks) -> const xrt::kernel* {
94  return ks.empty() ? nullptr : &ks.front();
95  };
96 
97  const xrt::kernel* kPC = choose(m_pixelClusteringKernels);
98  const xrt::kernel* kSC = choose(m_stripClusteringKernels);
99  const xrt::kernel* kPL2G = choose(m_pixelL2GKernels);
100  const xrt::kernel* kSL2G = choose(m_stripL2GKernels);
101  const xrt::kernel* kPEDM = choose(m_pixelEdmPrepKernels);
102  const xrt::kernel* kSEDM = choose(m_stripEdmPrepKernels);
103 
104  auto gid = [](const xrt::kernel* k, unsigned arg_index)->unsigned {
105  return k ? k->group_id(arg_index) : 0;
106  };
107 
108  for (unsigned i = 0; i < nthreads; ++i) {
109  // Inputs
110  m_pixelClusterInputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::PIXEL_CONTAINER_INPUT_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kPC, 0)});
111  m_stripClusterInputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::STRIP_CONTAINER_INPUT_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kSC, 0)});
112 
113  // Clustering outputs
114  if (!m_doF110) m_pixelClusterOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE * sizeof(uint64_t),xrt::bo::flags::normal, gid(kPC, 1)});
115 
116  m_stripClusterOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kSC, 1)});
117 
118  // Pixel clustering EDM output: arg index depends on F110 usage
119  m_pixelClusterEDMOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kPC, m_doF110 ? 1u : 2u)});
120 
121  m_stripClusterEDMOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kSC, 2)});
122 
123  // L2G outputs
124  if (!m_doF110) {
125  m_pixelL2GOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kPL2G, 2)});
126  m_pixelL2GEDMOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE * sizeof(uint64_t),xrt::bo::flags::normal, gid(kPL2G, 3)});
127  }
128  m_stripL2GOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kSL2G, 2)});
129  m_stripL2GEDMOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::STRIP_BLOCK_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kSL2G, 3)});
130 
131  // Final EDM containers (outputs)
132  // PixelEDM(arg1) and StripEDM(arg1) are the output BOs
133  m_edmPixelOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::PIXEL_CONTAINER_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kPEDM, 1)});
134  m_edmStripOutputBOList.emplace_back(xrt::bo{m_xrtDevice, EFTrackingTransient::STRIP_CONTAINER_BUF_SIZE * sizeof(uint64_t), xrt::bo::flags::normal, gid(kSEDM, 1)});
135  }
136 
137  return StatusCode::SUCCESS;
138 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ loadProgram()

StatusCode IntegrationBase::loadProgram ( const std::string &  xclbin)
inherited

Find the xclbin file and load it into the OpenCL program object.

Definition at line 115 of file IntegrationBase.cxx.

116 {
117  // Open binary object in binary mode
118  std::ifstream bin_file(xclbin, std::ios_base::binary);
119  if (!bin_file)
120  {
121  ATH_MSG_ERROR("Couldn't find the xclbin file: " << xclbin);
122  return StatusCode::FAILURE;
123  }
124  // Get the size of the binary file
125  bin_file.seekg(0, bin_file.end);
126  unsigned bin_size = bin_file.tellg();
127  // Reset the reference point back to the beginning
128  bin_file.seekg(0, bin_file.beg);
129  // Create a new pointer for the binary buffer and get the set a pointer to the binary buffer
130  std::vector<char> buf(bin_size);
131  bin_file.read(buf.data(), bin_size);
132 
133  // Create binary object and program object
134  cl_int err = 0;
135  std::vector<cl_int> binaryStatus;
136  cl::Program::Binaries bins{{buf.data(), bin_size}};
137  m_program = cl::Program(m_context, {m_accelerator}, bins, &binaryStatus, &err);
138 
139  bin_file.close();
140 
141  if (err == CL_SUCCESS && binaryStatus.at(0) == CL_SUCCESS)
142  {
143  ATH_MSG_INFO("Successfully loaded xclbin file into " << m_accelerator.getInfo<CL_DEVICE_NAME>());
144  }
145  else
146  {
147  ATH_MSG_ERROR("Error loading xclbin file (" << xclbin << ") into " << m_accelerator.getInfo<CL_DEVICE_NAME>() <<". Error code: " << err);
148  return StatusCode::FAILURE;
149  }
150 
151  return StatusCode::SUCCESS;
152 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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.

◆ precheck()

StatusCode IntegrationBase::precheck ( const std::vector< Gaudi::Property< std::string >> &  inputs) const
inherited

Check if the the desired Gaudi properties are set.

Definition at line 154 of file IntegrationBase.cxx.

155 {
156  for(const auto &item : inputs)
157  {
158  if(item.empty())
159  {
160  ATH_MSG_FATAL(item.documentation()<<" is empty. Please set it to a valid value");
161  return StatusCode::FAILURE;
162  }
163  }
164 
165  // Always check if bdf is set
166  if (m_deviceBDF.empty())
167  {
168  ATH_MSG_WARNING("Device BDF is not set. Using the first found accelerator card. Set property 'bdfID' to specify the BDF of the device.");
169  }
170 
171  return StatusCode::SUCCESS;
172 }

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/18]

std::vector<xrt::kernel> m_pixelClusteringKernels EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 107 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [2/18]

std::vector<xrt::kernel> m_stripClusteringKernels EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 108 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [3/18]

std::vector<xrt::kernel> m_pixelL2GKernels EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 111 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [4/18]

std::vector<xrt::kernel> m_stripL2GKernels EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 112 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [5/18]

std::vector<xrt::kernel> m_pixelEdmPrepKernels EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 115 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [6/18]

std::vector<xrt::kernel> m_stripEdmPrepKernels EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 116 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [7/18]

std::vector<xrt::bo> m_pixelClusterInputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 119 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [8/18]

std::vector<xrt::bo> m_stripClusterInputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 120 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [9/18]

std::vector<xrt::bo> m_pixelClusterOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 122 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [10/18]

std::vector<xrt::bo> m_stripClusterOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 123 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [11/18]

std::vector<xrt::bo> m_pixelClusterEDMOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 124 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [12/18]

std::vector<xrt::bo> m_stripClusterEDMOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 125 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [13/18]

std::vector<xrt::bo> m_pixelL2GOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 127 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [14/18]

std::vector<xrt::bo> m_stripL2GOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 128 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [15/18]

std::vector<xrt::bo> m_pixelL2GEDMOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 129 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [16/18]

std::vector<xrt::bo> m_stripL2GEDMOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 130 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [17/18]

std::vector<xrt::bo> m_edmPixelOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 132 of file F1X0XRTIntegrationAlg.h.

◆ ATLAS_THREAD_SAFE [18/18]

std::vector<xrt::bo> m_edmStripOutputBOList EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 133 of file F1X0XRTIntegrationAlg.h.

◆ m_accelerator

cl::Device IntegrationBase::m_accelerator
protectedinherited

Device object for the accelerator card.

Definition at line 66 of file IntegrationBase.h.

◆ m_chronoSvc

ServiceHandle<IChronoSvc> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_chronoSvc {"ChronoStatSvc", name()}
private

Service for timing the algorithm.

Definition at line 52 of file F1X0XRTIntegrationAlg.h.

◆ m_context

cl::Context IntegrationBase::m_context
protectedinherited

Context object for the application.

Definition at line 67 of file IntegrationBase.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_deviceBDF

Gaudi::Property<std::string> IntegrationBase::m_deviceBDF {this, "bdfID", "", "BDF ID of the accelerator card"}
protectedinherited

BDF ID of the accelerator card.

Definition at line 69 of file IntegrationBase.h.

◆ m_doEmulation

Gaudi::Property<bool> IntegrationBase::m_doEmulation {this, "doEmulation", false, "If software or hardware emulation is being used for debugging"}
protectedinherited

Definition at line 70 of file IntegrationBase.h.

◆ m_doF110

Gaudi::Property<bool> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_doF110
private
Initial value:
{
this, "doF110", false, "Run F110 instead of F100"}

Boolean to run F110 instead of F100.

Definition at line 65 of file F1X0XRTIntegrationAlg.h.

◆ m_edmPrepTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_edmPrepTime {0}
mutableprivate

Time for EDM preparation (F100)

Definition at line 94 of file F1X0XRTIntegrationAlg.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_FPGAPixelOutput

SG::WriteHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAPixelOutput {this, "FPGAOutputPixelKey", "FPGAPixelOutput", "Pixel output from FPGA format"}
private

Definition at line 57 of file F1X0XRTIntegrationAlg.h.

◆ m_FPGAPixelRDO

SG::ReadHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAPixelRDO {this, "FPGAEncodedPixelKey", "FPGAEncodedPixelRDOs", "Pixel RDO converted to FPGA format"}
private

Definition at line 54 of file F1X0XRTIntegrationAlg.h.

◆ m_FPGAStripOutput

SG::WriteHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAStripOutput {this, "FPGAOutputStripKey", "FPGAStripOutput", "Strip output from FPGA format"}
private

Definition at line 58 of file F1X0XRTIntegrationAlg.h.

◆ m_FPGAStripRDO

SG::ReadHandleKey<std::vector<uint64_t> > EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAStripRDO {this, "FPGAEncodedStripKey", "FPGAEncodedStripRDOs", "Strip RDO converted to FPGA format"}
private

Definition at line 55 of file F1X0XRTIntegrationAlg.h.

◆ m_FPGAThreads

Gaudi::Property<int> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAThreads {this, "FPGAThreads", 1, "number of FPGA threads to initialize"}
private

Definition at line 60 of file F1X0XRTIntegrationAlg.h.

◆ m_kernelTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_kernelTime {0}
mutableprivate

Time window covering kernel execution.

Definition at line 99 of file F1X0XRTIntegrationAlg.h.

◆ m_numEvents

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_numEvents {0}
mutableprivate

Number of events processed.

Definition at line 87 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelClusteringTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelClusteringTime {0}
mutableprivate

Time for pixel clustering.

Definition at line 90 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelClusterKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelClusterKernelName
private
Initial value:
{
this, "PixelClusterKernelName", "", "Name of the pixel clustering kernel"}

Definition at line 74 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelEdmKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelEdmKernelName
private
Initial value:
{
this, "PixelEDMPrepKernelName", "", "Name of the Pixel EDM kernel"}

Definition at line 68 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelEdmPrepTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelEdmPrepTime {0}
mutableprivate

Time for pixel EDM preparation (F110)

Definition at line 95 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelInputTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelInputTime {0}
mutableprivate

Time for pixel input buffer write.

Definition at line 88 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelL2GKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelL2GKernelName
private
Initial value:
{
this, "PixelL2GKernelName", "", "Name of the pixel L2G kernel"}

Definition at line 80 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelL2GTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelL2GTime {0}
mutableprivate

Time for pixel L2G (F100)

Definition at line 92 of file F1X0XRTIntegrationAlg.h.

◆ m_pixelOutputTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelOutputTime {0}
mutableprivate

Time for pixel output buffer read.

Definition at line 97 of file F1X0XRTIntegrationAlg.h.

◆ m_program

cl::Program IntegrationBase::m_program
protectedinherited

Program object containing the kernel.

Definition at line 68 of file IntegrationBase.h.

◆ m_stripClusteringTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripClusteringTime {0}
mutableprivate

Time for strip clustering.

Definition at line 91 of file F1X0XRTIntegrationAlg.h.

◆ m_stripClusterKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripClusterKernelName
private
Initial value:
{
this, "StripClusterKernelName", "", "Name of the strip clustering kernel"}

Definition at line 77 of file F1X0XRTIntegrationAlg.h.

◆ m_stripEdmKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripEdmKernelName
private
Initial value:
{
this, "StripEDMPrepKernelName", "", "Name of the Strip EDM kernel"}

Definition at line 71 of file F1X0XRTIntegrationAlg.h.

◆ m_stripEdmPrepTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripEdmPrepTime {0}
mutableprivate

Time for strip EDM preparation (F110)

Definition at line 96 of file F1X0XRTIntegrationAlg.h.

◆ m_stripInputTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripInputTime {0}
mutableprivate

Time for strip input buffer write.

Definition at line 89 of file F1X0XRTIntegrationAlg.h.

◆ m_stripL2GKernelName

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripL2GKernelName
private
Initial value:
{
this, "StripL2GKernelName", "", "Name of the strip L2G kernel"}

Definition at line 83 of file F1X0XRTIntegrationAlg.h.

◆ m_stripL2GTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripL2GTime {0}
mutableprivate

Time for strip L2G.

Definition at line 93 of file F1X0XRTIntegrationAlg.h.

◆ m_stripOutputTime

std::atomic<uint64_t> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripOutputTime {0}
mutableprivate

Time for strip output buffer read.

Definition at line 98 of file F1X0XRTIntegrationAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_xclbin

Gaudi::Property<std::string> EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_xclbin
private
Initial value:
{
this, "xclbin", "", "xclbin path and name"}

Path and name of the xclbin file.

Definition at line 62 of file F1X0XRTIntegrationAlg.h.

◆ m_xrtDevice

xrt::device EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_xrtDevice
private

Definition at line 102 of file F1X0XRTIntegrationAlg.h.

◆ m_xrtUuid

xrt::uuid EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_xrtUuid
private

Definition at line 103 of file F1X0XRTIntegrationAlg.h.


The documentation for this class was generated from the following files:
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_doF110
Gaudi::Property< bool > m_doF110
Boolean to run F110 instead of F100.
Definition: F1X0XRTIntegrationAlg.h:65
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
IntegrationBase::m_accelerator
cl::Device m_accelerator
Device object for the accelerator card.
Definition: IntegrationBase.h:66
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_chronoSvc
ServiceHandle< IChronoSvc > m_chronoSvc
Service for timing the algorithm.
Definition: F1X0XRTIntegrationAlg.h:52
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelClusteringTime
std::atomic< uint64_t > m_pixelClusteringTime
Time for pixel clustering.
Definition: F1X0XRTIntegrationAlg.h:90
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripL2GTime
std::atomic< uint64_t > m_stripL2GTime
Time for strip L2G.
Definition: F1X0XRTIntegrationAlg.h:93
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelOutputTime
std::atomic< uint64_t > m_pixelOutputTime
Time for pixel output buffer read.
Definition: F1X0XRTIntegrationAlg.h:97
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAPixelRDO
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAPixelRDO
Definition: F1X0XRTIntegrationAlg.h:54
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAThreads
Gaudi::Property< int > m_FPGAThreads
Definition: F1X0XRTIntegrationAlg.h:60
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripClusterKernelName
Gaudi::Property< std::string > m_stripClusterKernelName
Definition: F1X0XRTIntegrationAlg.h:77
EFTrackingTransient::PIXEL_CONTAINER_BUF_SIZE
constexpr unsigned long PIXEL_CONTAINER_BUF_SIZE
Definition: EFTrackingTransient.h:36
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_xrtUuid
xrt::uuid m_xrtUuid
Definition: F1X0XRTIntegrationAlg.h:103
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_kernelTime
std::atomic< uint64_t > m_kernelTime
Time window covering kernel execution.
Definition: F1X0XRTIntegrationAlg.h:99
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_xrtDevice
xrt::device m_xrtDevice
Definition: F1X0XRTIntegrationAlg.h:102
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripInputTime
std::atomic< uint64_t > m_stripInputTime
Time for strip input buffer write.
Definition: F1X0XRTIntegrationAlg.h:89
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelL2GTime
std::atomic< uint64_t > m_pixelL2GTime
Time for pixel L2G (F100)
Definition: F1X0XRTIntegrationAlg.h:92
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelInputTime
std::atomic< uint64_t > m_pixelInputTime
Time for pixel input buffer write.
Definition: F1X0XRTIntegrationAlg.h:88
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelEdmKernelName
Gaudi::Property< std::string > m_pixelEdmKernelName
Definition: F1X0XRTIntegrationAlg.h:68
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::getListofCUs
void getListofCUs(std::vector< std::string > &cuNames)
Definition: F1X0XRTIntegrationAlg.cxx:371
IntegrationBase::m_context
cl::Context m_context
Context object for the application.
Definition: IntegrationBase.h:67
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
postInclude.inputs
inputs
Definition: postInclude.SortInput.py:15
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelClusterKernelName
Gaudi::Property< std::string > m_pixelClusterKernelName
Definition: F1X0XRTIntegrationAlg.h:74
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAStripRDO
SG::ReadHandleKey< std::vector< uint64_t > > m_FPGAStripRDO
Definition: F1X0XRTIntegrationAlg.h:55
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
EFTrackingTransient::PIXEL_BLOCK_BUF_SIZE
constexpr unsigned long PIXEL_BLOCK_BUF_SIZE
Definition: EFTrackingTransient.h:34
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_numEvents
std::atomic< uint64_t > m_numEvents
Number of events processed.
Definition: F1X0XRTIntegrationAlg.h:87
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
EFTrackingTransient::STRIP_CONTAINER_BUF_SIZE
constexpr unsigned long STRIP_CONTAINER_BUF_SIZE
Definition: EFTrackingTransient.h:37
python.handimod.now
now
Definition: handimod.py:674
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripEdmPrepTime
std::atomic< uint64_t > m_stripEdmPrepTime
Time for strip EDM preparation (F110)
Definition: F1X0XRTIntegrationAlg.h:96
Athena::Chrono
Exception-safe IChronoSvc caller.
Definition: Chrono.h:50
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:183
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
python.DecayParser.buf
buf
print ("=> [%s]"cmd)
Definition: DecayParser.py:26
SG::get
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
Definition: ReadCondHandle.h:287
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelL2GKernelName
Gaudi::Property< std::string > m_pixelL2GKernelName
Definition: F1X0XRTIntegrationAlg.h:80
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
EFTrackingTransient::PIXEL_CONTAINER_INPUT_BUF_SIZE
constexpr unsigned long PIXEL_CONTAINER_INPUT_BUF_SIZE
Definition: EFTrackingTransient.h:42
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
calibdata.exception
exception
Definition: calibdata.py:495
IntegrationBase::m_deviceBDF
Gaudi::Property< std::string > m_deviceBDF
BDF ID of the accelerator card.
Definition: IntegrationBase.h:69
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
plotting.yearwise_luminosity_vs_mu.bins
bins
Definition: yearwise_luminosity_vs_mu.py:30
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
IntegrationBase::precheck
StatusCode precheck(const std::vector< Gaudi::Property< std::string >> &inputs) const
Check if the the desired Gaudi properties are set.
Definition: IntegrationBase.cxx:154
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
gid
Acts::GeometryIdentifier gid
Definition: ActsWriteTrackingGeometryTransforms.cxx:30
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_xclbin
Gaudi::Property< std::string > m_xclbin
Path and name of the xclbin file.
Definition: F1X0XRTIntegrationAlg.h:62
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripOutputTime
std::atomic< uint64_t > m_stripOutputTime
Time for strip output buffer read.
Definition: F1X0XRTIntegrationAlg.h:98
EFTrackingTransient::STRIP_CONTAINER_INPUT_BUF_SIZE
constexpr unsigned long STRIP_CONTAINER_INPUT_BUF_SIZE
Definition: EFTrackingTransient.h:43
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:240
DataModelTestDataCommonDict::xb
DMTest::CView::Pers_t xb
Definition: DataModelTestDataCommonDict.h:55
EFTrackingTransient::STRIP_BLOCK_BUF_SIZE
constexpr unsigned long STRIP_BLOCK_BUF_SIZE
Definition: EFTrackingTransient.h:35
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAPixelOutput
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAPixelOutput
Definition: F1X0XRTIntegrationAlg.h:57
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
SG::getNSlots
size_t getNSlots()
Return the number of event slots.
Definition: SlotSpecificObj.cxx:64
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripEdmKernelName
Gaudi::Property< std::string > m_stripEdmKernelName
Definition: F1X0XRTIntegrationAlg.h:71
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripL2GKernelName
Gaudi::Property< std::string > m_stripL2GKernelName
Definition: F1X0XRTIntegrationAlg.h:83
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_pixelEdmPrepTime
std::atomic< uint64_t > m_pixelEdmPrepTime
Time for pixel EDM preparation (F110)
Definition: F1X0XRTIntegrationAlg.h:95
IntegrationBase::m_program
cl::Program m_program
Program object containing the kernel.
Definition: IntegrationBase.h:68
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_FPGAStripOutput
SG::WriteHandleKey< std::vector< uint64_t > > m_FPGAStripOutput
Definition: F1X0XRTIntegrationAlg.h:58
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
EFTrackingFPGAIntegration::F1X0XRTIntegrationAlg::m_stripClusteringTime
std::atomic< uint64_t > m_stripClusteringTime
Time for strip clustering.
Definition: F1X0XRTIntegrationAlg.h:91