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

Algorithm which selectively copies hits from an input PixelRDO_Container. More...

#include <PixelDefectsEmulatorAlg.h>

Inheritance diagram for InDet::PixelDefectsEmulatorAlg:
Collaboration diagram for InDet::PixelDefectsEmulatorAlg:

Public Types

using T_ID_Helper = DefectsEmulatorTraits< PixelRDO_Container >::ID_Helper
 
using T_ID_Adapter = DefectsEmulatorTraits< PixelRDO_Container >::IDAdapter
 Adapter to support different types of RDO collections, and ID helpers. More...
 
using T_DefectsData = DefectsEmulatorTraits< PixelRDO_Container >::DefectsData
 
using T_RDORawData = DefectsEmulatorTraits< PixelRDO_Container >::RDORawData
 
using T_ModuleHelper = DefectsEmulatorTraits< PixelRDO_Container >::ModuleHelper
 
using T_ModuleDesign = DefectsEmulatorTraits< PixelRDO_Container >::ModuleDesign
 

Public Member Functions

virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
 DefectsEmulatorBase (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initializeBase (unsigned int wafer_hash_max)
 
virtual StatusCode finalize () override
 
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 > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Attributes

static constexpr ActsTrk::DetectorType DETECTOR_TYPE
 

Protected Types

enum  EHistType { kRejectedHits, kNoiseHits, kNHistTypes }
 

Protected Member Functions

virtual bool setModuleData (const ActsDetectorElement &acts_detector_element, ModuleIdentifierMatchUtil::ModuleData_t &module_data) const override
 Set the module data for matching for the given detector element. More...
 
std::tuple< TH2 *, TH2 *, TH1 * > findHist (unsigned int n_rows, unsigned int n_cols) const
 Get rejected hits and noise histograms for a certain module design. More...
 
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

ServiceHandle< ITHistSvc > m_histSvc {this,"HistSvc","THistSvc"}
 
Gaudi::Property< std::string > m_histogramGroupName {this,"HistogramGroupName","", "Histogram group name or empty to disable histogramming"}
 
Gaudi::Property< std::vector< std::vector< int > > > m_modulePattern
 
Gaudi::Property< std::vector< float > > m_noiseProbability {this,"NoiseProbability",0., "Probability for a cell to produce a spurious hit per module pattern"}
 
Gaudi::Property< std::vector< std::vector< double > > > m_noiseShape {this,"NoiseShape",{}, "Shape of noise distribution (e.g. used for Pixel tot distribution or strip time bin distribution."}
 
std::mutex m_histMutex
 
std::vector< unsigned int > m_dimPerHist ATLAS_THREAD_SAFE
 
std::array< TH2 *, kNHistTypes > m_moduleHist ATLAS_THREAD_SAFE {}
 
std::array< std::vector< TH2 * >, 2 > m_hist ATLAS_THREAD_SAFE
 
std::vector< TH1 * > m_noiseShapeHist ATLAS_THREAD_SAFE
 
std::atomic< std::size_t > m_rejectedRDOs {}
 
std::atomic< std::size_t > m_totalRDOs {}
 
std::atomic< std::size_t > m_splitRDOs {}
 
std::atomic< std::size_t > m_totalNoise {}
 
ToolHandle< IActsTrackingGeometryToolm_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}
 
ServiceHandle< IAthRNGSvcm_rndmSvc {this, "RndmSvc", "AthRNGSvc", ""}
 
std::string m_rngName
 
std::vector< unsigned short > m_noiseParamIdx
 
std::vector< std::vector< float > > m_noiseShapeCummulative
 
unsigned int m_maxNShape {}
 
bool m_histogrammingEnabled = false
 

Static Protected Attributes

static const std::array< std::string_view, kNHistTypess_histNames
 
static const std::array< std::string_view, kNHistTypess_histTitles
 

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

SG::ReadCondHandleKey< T_DefectsDatam_emulatedDefects
 
SG::ReadHandleKey< PixelRDO_Containerm_origRdoContainerKey
 
SG::WriteHandleKey< PixelRDO_Containerm_rdoOutContainerKey
 
Gaudi::Property< std::string > m_idHelperName
 
T_ID_Helper m_idHelper
 
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

Algorithm which selectively copies hits from an input PixelRDO_Container.

Hits will be copied unless they are marked as defects in the "defects" conditions data. This is a specialization of DefectsEmulatorAlg for PixelRDOs

Definition at line 62 of file PixelDefectsEmulatorAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

◆ T_DefectsData

Definition at line 38 of file DefectsEmulatorAlg.h.

◆ T_ID_Adapter

Adapter to support different types of RDO collections, and ID helpers.

Must have the following traits:

  • The adapter is constructable from the ID_Helper
  • provides methods row_index and column_index to compute the row and column index from an Identifier
  • provides a method cloneOrRejectHit which returns the number of newly added hits and takes as arguments: a module helper and matching emulated defects conditions data, a module id hash, a row and column index, the input RDO, and the collection to which the "cloned" RDOs are added.

Definition at line 37 of file DefectsEmulatorAlg.h.

◆ T_ID_Helper

Definition at line 26 of file DefectsEmulatorAlg.h.

◆ T_ModuleDesign

Definition at line 41 of file DefectsEmulatorAlg.h.

◆ T_ModuleHelper

Definition at line 40 of file DefectsEmulatorAlg.h.

◆ T_RDORawData

Definition at line 39 of file DefectsEmulatorAlg.h.

Member Enumeration Documentation

◆ EHistType

enum InDet::DefectsEmulatorBase::EHistType
protectedinherited
Enumerator
kRejectedHits 
kNoiseHits 
kNHistTypes 

Definition at line 72 of file DefectsEmulatorBase.h.

72  {
74  kNoiseHits,
76  };

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 > &  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 > &  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 > &  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 > &  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 > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

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

◆ DefectsEmulatorBase()

InDet::DefectsEmulatorBase::DefectsEmulatorBase
inherited

Definition at line 45 of file DefectsEmulatorBase.cxx.

22  : AthReentrantAlgorithm(name, pSvcLocator)
23  {}

◆ 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()

virtual StatusCode InDet::DefectsEmulatorAlg< PixelRDO_Container >::execute ( const EventContext &  ctx) const
overridevirtualinherited

◆ 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 InDet::DefectsEmulatorBase::finalize ( )
overridevirtualinherited

Definition at line 158 of file DefectsEmulatorBase.cxx.

158  {
159  ATH_MSG_INFO( "Total number of rejected RDOs " << m_rejectedRDOs << ", kept " << m_totalRDOs
160  << (m_splitRDOs>0 ? (", split " + std::to_string(m_splitRDOs) ) : "")
161  << ", additional noise " << m_totalNoise);
162  return StatusCode::SUCCESS;
163  }

◆ findHist()

std::tuple< TH2 *, TH2 *, TH1 * > InDet::DefectsEmulatorBase::findHist ( unsigned int  n_rows,
unsigned int  n_cols 
) const
protectedinherited

Get rejected hits and noise histograms for a certain module design.

Parameters
n_rowsthe number of rows of the module design
n_colsthe number of columns of the module design
Returns
rejected_hits per cell, noise per cell, noise shape histograms calls during execute must be protected by m_histMutex

Definition at line 165 of file DefectsEmulatorBase.cxx.

165  {
166  unsigned int key=(n_rows << 16) | n_cols;
167  std::vector<unsigned int>::const_iterator iter = std::find(m_dimPerHist.begin(),m_dimPerHist.end(), key );
168  if (iter == m_dimPerHist.end()) {
169  if (m_dimPerHist.size() == m_dimPerHist.capacity()) {
170  if (m_dimPerHist.capacity()==0) {
171  return std::make_tuple(nullptr,nullptr,nullptr);
172  }
173  else {
174  return std::make_tuple(m_hist[kRejectedHits].back(),
175  m_hist[kNoiseHits].empty() ? nullptr : m_hist[kNoiseHits].back(),
176  m_noiseShapeHist.empty() ? nullptr : m_noiseShapeHist.back());
177  }
178  }
179  else {
180  // if no "sensor" with this dimensions has been registered yet, create histograms
181  // and register it.
182  for (unsigned int hist_type_i=0; hist_type_i<kNHistTypes; ++hist_type_i) {
184  name << s_histNames.at(hist_type_i) << "_hits_" << n_rows << "_" << n_cols;
186  title << s_histTitles.at(hist_type_i) << "hits for " << n_rows << "(rows) #times " << n_cols << " (columns)";
187  {
189  m_hist.at(hist_type_i).push_back(new TH2F(name.str().c_str(), title.str().c_str(),
190  n_cols, -0.5, n_cols-0.5,
191  n_rows, -0.5, n_rows-0.5
192  ));
193  }
194  m_hist[hist_type_i].back()->GetXaxis()->SetTitle("offline column");
195  m_hist[hist_type_i].back()->GetYaxis()->SetTitle("offline row");
196  if ( m_histSvc->regHist(m_histogramGroupName.value() + name.str(),m_hist[hist_type_i].back()).isFailure() ) {
197  throw std::runtime_error("Failed to register histogram.");
198  }
199  }
200  {
201  std::stringstream name;
202  name << "noise_shape_" << n_rows << "_" << n_cols;
203  std::stringstream title;
204  title << "Noise shape for " << n_rows << "(rows) #times " << n_cols << " (columns)";
205  m_noiseShapeHist.push_back(new TH1F(name.str().c_str(), title.str().c_str(), m_maxNShape+1, -0.5, m_maxNShape+.5));
206  m_noiseShapeHist.back()->GetXaxis()->SetTitle("offline column");
207  m_noiseShapeHist.back()->GetYaxis()->SetTitle("offline row");
208  if ( m_histSvc->regHist(m_histogramGroupName.value() + name.str(),m_noiseShapeHist.back()).isFailure() ) {
209  throw std::runtime_error("Failed to register histogram.");
210  }
211  }
212  m_dimPerHist.push_back(key);
213  return std::make_tuple(m_hist[kRejectedHits].back(),
214  m_hist[kNoiseHits].empty() ? nullptr : m_hist[kNoiseHits].back(),
215  m_noiseShapeHist.empty() ? nullptr : m_noiseShapeHist.back()
216  );
217  }
218  }
219  else {
220  return std::make_tuple(m_hist[kRejectedHits].at(iter-m_dimPerHist.begin()),
221  m_hist[kNoiseHits].empty() ? nullptr : m_hist[kNoiseHits].at(iter-m_dimPerHist.begin()),
222  m_noiseShapeHist.empty() ? nullptr : m_noiseShapeHist.at(iter-m_dimPerHist.begin()));
223  }
224  }

◆ initialize()

virtual StatusCode InDet::DefectsEmulatorAlg< PixelRDO_Container >::initialize
overridevirtualinherited

◆ initializeBase()

StatusCode InDet::DefectsEmulatorBase::initializeBase ( unsigned int  wafer_hash_max)
inherited

Definition at line 25 of file DefectsEmulatorBase.cxx.

25  {
26  ATH_CHECK( m_trackingGeometryTool.retrieve( DisableTool{m_noiseProbability.empty()} ));
27  if (!m_noiseProbability.value().empty()) {
28  if (m_modulePattern.value().size() != m_noiseProbability.value().size()) {
29  ATH_MSG_FATAL("Number of module patterns and noise probabilities differs: "
30  << m_modulePattern.value().size() << " != " << m_noiseProbability.size() );
31  return StatusCode::FAILURE;
32  }
33 
34  if (m_noiseProbability.value().size() != m_noiseShape.value().size()) {
35  ATH_MSG_FATAL("Number of noise probabilities and number of noise shapes differs: "
36  << m_noiseProbability.size() << " != " << m_noiseShape.size());
37  return StatusCode::FAILURE;
38  }
39  ATH_CHECK(m_rndmSvc.retrieve());
40  m_rngName = name()+"RandomEngine";
41 
42  if (wafer_hash_max>std::numeric_limits<unsigned short>::max()) {
43  ATH_MSG_FATAL("Maximjum wafer hash too large (" << wafer_hash_max
44  << "). This algorithm only supports wafer hashes up to "
46  return StatusCode::FAILURE;
47  }
48  m_noiseParamIdx.resize(wafer_hash_max, static_cast<unsigned short>(m_noiseProbability.size()));
49  m_maxNShape=0;
50  std::shared_ptr<const Acts::TrackingGeometry> tracking_geometry = m_trackingGeometryTool->trackingGeometry();
51 
53  std::vector<unsigned int> module_pattern_idx;
54  module_pattern_idx.reserve( m_modulePattern.value().size() );
55 
56  // Associate noise probabilities and noise shapes to module identifier hashes.
57  // The association is done according to the module match criteria. The derived
58  // class has to ensure that only modules with umambigous identifier hash are
59  // considered.
60  using Counter = struct { unsigned int n_detector_elements, n_missing_detector_elements, n_wrong_type,
61  n_no_matching_pattern, n_detector_elements_of_correct_type; };
62  Counter counter {0u,0u,0u,0u,0u};
63  tracking_geometry->visitSurfaces([&counter, &module_data, &module_pattern_idx, this](const Acts::Surface *surface_ptr) {
64  if (!surface_ptr) return;
65  const Acts::Surface &surface = *surface_ptr;
66  const Acts::DetectorElementBase*detector_element = surface.associatedDetectorElement();
67  if (detector_element) {
68  const ActsDetectorElement *acts_detector_element = dynamic_cast<const ActsDetectorElement*>(detector_element);
69  if (acts_detector_element) {
70  if (setModuleData(*acts_detector_element, module_data)) {
71  ModuleIdentifierMatchUtil::moduleMatches(m_modulePattern.value(), module_data, module_pattern_idx);
72  if (module_pattern_idx.empty()) {
73  ++counter.n_no_matching_pattern;
74  }
75  else {
76  m_noiseParamIdx.at(acts_detector_element->identifyHash()) = module_pattern_idx.front();
77  }
78  ++counter.n_detector_elements_of_correct_type;
79  }
80  }
81  else {
82  ++counter.n_wrong_type;
83  }
84  ++counter.n_detector_elements;
85  }
86  else {
87  ++counter.n_missing_detector_elements;
88  }
89  }, true /*sensitive surfaces*/);
90  ATH_MSG_DEBUG("Visited surfaces with " << counter.n_detector_elements << " / "
91  << (counter.n_missing_detector_elements + counter.n_detector_elements)
92  << " (wrong type " << counter.n_wrong_type << ")"
93  << " expected detector type " << counter.n_detector_elements_of_correct_type
94  << " without match " << counter.n_no_matching_pattern);
95  if (counter.n_missing_detector_elements || counter.n_wrong_type>0) {
96  ATH_MSG_ERROR("Encountered " << counter.n_wrong_type << " associated detector elements with wrong type and "
97  << counter.n_missing_detector_elements << " surfaces without detector element.");
98  }
99 
100  // create normalised cummulative distributions of noise shape distributions
101  m_noiseShapeCummulative.resize( m_noiseShape.size());
102  unsigned int pattern_i=0;
103  for (const std::vector<double> &shape : m_noiseShape.value()) {
104  m_noiseShapeCummulative[pattern_i].reserve( shape.size());
105  double scale=std::accumulate(shape.begin(), shape.end(),0.);
106  if (std::abs(scale-1.)>1e-5) {
107  ATH_MSG_FATAL("Noise shape integral for pattern " << pattern_i << " not 1. but " << scale);
108  return StatusCode::FAILURE;
109  }
110  scale = 1./scale;
111  double sum =0.;
112  for (double value : shape) {
113  sum += value * scale;
114  m_noiseShapeCummulative[pattern_i].push_back( sum );
115  }
116  m_maxNShape=std::max(m_maxNShape,static_cast<unsigned int>(shape.size()));
117  ++pattern_i;
118  }
120  }
121 
122  if (!m_histSvc.name().empty() && !m_histogramGroupName.value().empty()) {
123  ATH_CHECK( m_histSvc.retrieve() );
124  // reserve space for histograms for 6 different sensor types
125  constexpr unsigned int n_different_pixel_matrices_max=6;
126  m_dimPerHist.reserve(n_different_pixel_matrices_max);
127  for (unsigned int hist_type_i=0; hist_type_i<kNHistTypes; ++hist_type_i) {
128  m_hist[hist_type_i].reserve(n_different_pixel_matrices_max);
129  }
130 
131  // create per id-hash histograms
132  m_noiseShapeHist.reserve(n_different_pixel_matrices_max);
133 
134  unsigned int max_y_axis = (((wafer_hash_max+99)/100+9)/10)*10;
135  for (unsigned int hist_type_i=0; hist_type_i<kNHistTypes; ++hist_type_i) {
136  {
137  HistUtil::StringCat hist_name;
138  hist_name << s_histNames.at(hist_type_i) << "_hits_per_module";
139  HistUtil::StringCat hist_title;
140  hist_title << s_histTitles.at(hist_type_i) << " hits per module";
141 
143  m_moduleHist.at(hist_type_i) = new TH2F(hist_name.str().c_str(), hist_title.str().c_str(),
144  100, -0.5, 100-0.5,
145  max_y_axis, -0.5, max_y_axis-0.5
146  );
147  }
148  m_moduleHist[hist_type_i]->GetXaxis()->SetTitle("ID hash % 100");
149  m_moduleHist[hist_type_i]->GetYaxis()->SetTitle("ID hash / 100");
150  if ( m_histSvc->regHist(m_histogramGroupName.value() + m_moduleHist[hist_type_i]->GetName(),m_moduleHist[hist_type_i]).isFailure() ) {
151  return StatusCode::FAILURE;
152  }
153  }
155  }
156  return StatusCode::SUCCESS;
157  }

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

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

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

◆ setModuleData()

virtual bool InDet::DefectsEmulatorAlg< PixelRDO_Container >::setModuleData ( const ActsDetectorElement acts_detector_element,
ModuleIdentifierMatchUtil::ModuleData_t module_data 
) const
overrideprotectedvirtualinherited

Set the module data for matching for the given detector element.

Parameters
acts_detector_elementthe detector element in question
module_datadestination for the module data for matching
Returns
True if the given module is to be considered for matching. The implementation has to ensure that only modules are considered which have unique identifier hashes i.e. modules of one detector type.

Implements InDet::DefectsEmulatorBase.

◆ 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/4]

std::vector<unsigned int> m_dimPerHist InDet::DefectsEmulatorBase::ATLAS_THREAD_SAFE
mutableprotectedinherited

Definition at line 82 of file DefectsEmulatorBase.h.

◆ ATLAS_THREAD_SAFE [2/4]

std::array<TH2 *,kNHistTypes> m_moduleHist InDet::DefectsEmulatorBase::ATLAS_THREAD_SAFE {}
mutableprotectedinherited

Definition at line 83 of file DefectsEmulatorBase.h.

◆ ATLAS_THREAD_SAFE [3/4]

std::array<std::vector< TH2 *>,2> m_hist InDet::DefectsEmulatorBase::ATLAS_THREAD_SAFE
mutableprotectedinherited

Definition at line 84 of file DefectsEmulatorBase.h.

◆ ATLAS_THREAD_SAFE [4/4]

std::vector< TH1 *> m_noiseShapeHist InDet::DefectsEmulatorBase::ATLAS_THREAD_SAFE
mutableprotectedinherited

Definition at line 85 of file DefectsEmulatorBase.h.

◆ DETECTOR_TYPE

constexpr ActsTrk::DetectorType InDet::DefectsEmulatorAlg< PixelRDO_Container >::DETECTOR_TYPE
staticconstexprinherited

Definition at line 43 of file DefectsEmulatorAlg.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_emulatedDefects

Definition at line 56 of file DefectsEmulatorAlg.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_histMutex

std::mutex InDet::DefectsEmulatorBase::m_histMutex
mutableprotectedinherited

Definition at line 80 of file DefectsEmulatorBase.h.

◆ m_histogramGroupName

Gaudi::Property<std::string> InDet::DefectsEmulatorBase::m_histogramGroupName {this,"HistogramGroupName","", "Histogram group name or empty to disable histogramming"}
protectedinherited

Definition at line 58 of file DefectsEmulatorBase.h.

◆ m_histogrammingEnabled

bool InDet::DefectsEmulatorBase::m_histogrammingEnabled = false
protectedinherited

Definition at line 103 of file DefectsEmulatorBase.h.

◆ m_histSvc

ServiceHandle<ITHistSvc> InDet::DefectsEmulatorBase::m_histSvc {this,"HistSvc","THistSvc"}
protectedinherited

Definition at line 56 of file DefectsEmulatorBase.h.

◆ m_idHelper

T_ID_Helper InDet::DefectsEmulatorAlg< PixelRDO_Container >::m_idHelper
privateinherited

Definition at line 65 of file DefectsEmulatorAlg.h.

◆ m_idHelperName

Gaudi::Property<std::string> InDet::DefectsEmulatorAlg< PixelRDO_Container >::m_idHelperName
privateinherited

Definition at line 62 of file DefectsEmulatorAlg.h.

◆ m_maxNShape

unsigned int InDet::DefectsEmulatorBase::m_maxNShape {}
protectedinherited

Definition at line 101 of file DefectsEmulatorBase.h.

◆ m_modulePattern

Gaudi::Property<std::vector<std::vector<int> > > InDet::DefectsEmulatorBase::m_modulePattern
protectedinherited
Initial value:
{this,"ModulePatterns", {},
"Integer ranges to select: (0-1) barrel/end-cap range, (2-3) layer, (4-5) eta index range, (6-7) phi index range, "
"(8-9) module number of columns or strips, (10) both sides (0,1), (11) all rows (0,1)" }

Definition at line 61 of file DefectsEmulatorBase.h.

◆ m_noiseParamIdx

std::vector<unsigned short> InDet::DefectsEmulatorBase::m_noiseParamIdx
protectedinherited

Definition at line 98 of file DefectsEmulatorBase.h.

◆ m_noiseProbability

Gaudi::Property<std::vector<float> > InDet::DefectsEmulatorBase::m_noiseProbability {this,"NoiseProbability",0., "Probability for a cell to produce a spurious hit per module pattern"}
protectedinherited

Definition at line 66 of file DefectsEmulatorBase.h.

◆ m_noiseShape

Gaudi::Property<std::vector<std::vector<double> > > InDet::DefectsEmulatorBase::m_noiseShape {this,"NoiseShape",{}, "Shape of noise distribution (e.g. used for Pixel tot distribution or strip time bin distribution."}
protectedinherited

Definition at line 68 of file DefectsEmulatorBase.h.

◆ m_noiseShapeCummulative

std::vector<std::vector<float> > InDet::DefectsEmulatorBase::m_noiseShapeCummulative
protectedinherited

Definition at line 99 of file DefectsEmulatorBase.h.

◆ m_origRdoContainerKey

Definition at line 58 of file DefectsEmulatorAlg.h.

◆ m_rdoOutContainerKey

Definition at line 60 of file DefectsEmulatorAlg.h.

◆ m_rejectedRDOs

std::atomic<std::size_t> InDet::DefectsEmulatorBase::m_rejectedRDOs {}
mutableprotectedinherited

Definition at line 88 of file DefectsEmulatorBase.h.

◆ m_rndmSvc

ServiceHandle<IAthRNGSvc> InDet::DefectsEmulatorBase::m_rndmSvc {this, "RndmSvc", "AthRNGSvc", ""}
protectedinherited

Definition at line 96 of file DefectsEmulatorBase.h.

◆ m_rngName

std::string InDet::DefectsEmulatorBase::m_rngName
protectedinherited

Definition at line 97 of file DefectsEmulatorBase.h.

◆ m_splitRDOs

std::atomic<std::size_t> InDet::DefectsEmulatorBase::m_splitRDOs {}
mutableprotectedinherited

Definition at line 90 of file DefectsEmulatorBase.h.

◆ m_totalNoise

std::atomic<std::size_t> InDet::DefectsEmulatorBase::m_totalNoise {}
mutableprotectedinherited

Definition at line 91 of file DefectsEmulatorBase.h.

◆ m_totalRDOs

std::atomic<std::size_t> InDet::DefectsEmulatorBase::m_totalRDOs {}
mutableprotectedinherited

Definition at line 89 of file DefectsEmulatorBase.h.

◆ m_trackingGeometryTool

ToolHandle<IActsTrackingGeometryTool> InDet::DefectsEmulatorBase::m_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}
protectedinherited

Definition at line 93 of file DefectsEmulatorBase.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.

◆ s_histNames

const std::array< std::string_view, DefectsEmulatorBase::kNHistTypes > InDet::DefectsEmulatorBase::s_histNames
staticprotectedinherited
Initial value:
{
"rejected",
"noise"
}

Definition at line 77 of file DefectsEmulatorBase.h.

◆ s_histTitles

const std::array< std::string_view, DefectsEmulatorBase::kNHistTypes > InDet::DefectsEmulatorBase::s_histTitles
staticprotectedinherited
Initial value:
{
"Rejected",
"Noise"
}

Definition at line 78 of file DefectsEmulatorBase.h.


The documentation for this class was generated from the following file:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
InDet::DefectsEmulatorBase::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Definition: DefectsEmulatorBase.h:57
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
InDet::DefectsEmulatorBase::m_rngName
std::string m_rngName
Definition: DefectsEmulatorBase.h:97
InDet::DefectsEmulatorBase::m_totalRDOs
std::atomic< std::size_t > m_totalRDOs
Definition: DefectsEmulatorBase.h:89
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
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
python.ROOTUtils.protect
def protect(obj)
Definition: python/ROOTUtils.py:14
InDet::DefectsEmulatorBase::m_maxNShape
unsigned int m_maxNShape
Definition: DefectsEmulatorBase.h:101
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
athena.value
value
Definition: athena.py:124
HistUtil::StringCat
Definition: HistUtil.h:41
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
InDet::DefectsEmulatorBase::m_trackingGeometryTool
ToolHandle< IActsTrackingGeometryTool > m_trackingGeometryTool
Definition: DefectsEmulatorBase.h:94
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
InDet::DefectsEmulatorBase::setModuleData
virtual bool setModuleData(const ActsDetectorElement &acts_detector_element, ModuleIdentifierMatchUtil::ModuleData_t &module_data) const =0
Set the module data for matching for the given detector element.
InDet::DefectsEmulatorBase::m_noiseShape
Gaudi::Property< std::vector< std::vector< double > > > m_noiseShape
Definition: DefectsEmulatorBase.h:69
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
InDet::DefectsEmulatorBase::s_histNames
static const std::array< std::string_view, kNHistTypes > s_histNames
Definition: DefectsEmulatorBase.h:77
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
InDet::DefectsEmulatorBase::kNoiseHits
@ kNoiseHits
Definition: DefectsEmulatorBase.h:74
InDet::ModuleIdentifierMatchUtil::ModuleData_t
std::array< int, ModuleIdentifierMatchUtil::kAllRows/2 > ModuleData_t
Definition: ModuleIdentifierMatchUtil.h:67
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
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
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
InDet::DefectsEmulatorBase::m_noiseProbability
Gaudi::Property< std::vector< float > > m_noiseProbability
Definition: DefectsEmulatorBase.h:67
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
InDet::DefectsEmulatorBase::m_noiseShapeCummulative
std::vector< std::vector< float > > m_noiseShapeCummulative
Definition: DefectsEmulatorBase.h:99
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
covarianceTool.title
title
Definition: covarianceTool.py:542
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
InDet::DefectsEmulatorBase::m_histogrammingEnabled
bool m_histogrammingEnabled
Definition: DefectsEmulatorBase.h:103
ActsDetectorElement
Definition: ActsDetectorElement.h:42
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
InDet::DefectsEmulatorBase::s_histTitles
static const std::array< std::string_view, kNHistTypes > s_histTitles
Definition: DefectsEmulatorBase.h:78
InDet::DefectsEmulatorBase::m_splitRDOs
std::atomic< std::size_t > m_splitRDOs
Definition: DefectsEmulatorBase.h:90
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
InDet::DefectsEmulatorBase::m_totalNoise
std::atomic< std::size_t > m_totalNoise
Definition: DefectsEmulatorBase.h:91
InDet::DefectsEmulatorBase::kNHistTypes
@ kNHistTypes
Definition: DefectsEmulatorBase.h:75
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
ActsDetectorElement::identifyHash
IdentifierHash identifyHash() const
Identifier hash.
Definition: ActsDetectorElement.h:73
InDet::DefectsEmulatorBase::m_modulePattern
Gaudi::Property< std::vector< std::vector< int > > > m_modulePattern
Definition: DefectsEmulatorBase.h:62
InDet::ModuleIdentifierMatchUtil::moduleMatches
void moduleMatches(const std::vector< std::vector< int > > &module_pattern, const ModuleData_t &module_data, std::vector< unsigned int > &module_pattern_idx)
Test whether an identifier, which is split into various parts, matches some of the given patterns.
Definition: ModuleIdentifierMatchUtil.h:150
InDet::DefectsEmulatorBase::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Definition: DefectsEmulatorBase.h:96
a
TList * a
Definition: liststreamerinfos.cxx:10
columnar::empty
bool empty() const noexcept
Definition: ObjectRange.h:129
h
InDet::DefectsEmulatorBase::m_histogramGroupName
Gaudi::Property< std::string > m_histogramGroupName
Definition: DefectsEmulatorBase.h:59
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
HistUtil::ProtectHistogramCreation
Definition: HistUtil.h:14
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
InDet::DefectsEmulatorBase::kRejectedHits
@ kRejectedHits
Definition: DefectsEmulatorBase.h:73
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
InDet::DefectsEmulatorBase::m_rejectedRDOs
std::atomic< std::size_t > m_rejectedRDOs
Definition: DefectsEmulatorBase.h:88
test_pyathena.counter
counter
Definition: test_pyathena.py:15
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDet::DefectsEmulatorBase::m_noiseParamIdx
std::vector< unsigned short > m_noiseParamIdx
Definition: DefectsEmulatorBase.h:98
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
HistUtil::StringCat::str
const std::string & str() const
Definition: HistUtil.h:47