4#ifndef InDet_PixelDefectsEmulatorAlg_H
5#define InDet_PixelDefectsEmulatorAlg_H
24 template <
typename T_ModuleHelper>
25 std::unique_ptr<Pixel1RawData>
createNoiseHit(
const T_ModuleHelper &helper,
const Identifier &identifier,
unsigned int cell_idx,
unsigned int tot) {
26 unsigned int row_aka_phi=cell_idx % helper.rows();
27 unsigned int col_aka_eta=cell_idx / helper.rows();
28 return std::make_unique<Pixel1RawData>(
m_idHelper->pixel_id(identifier,row_aka_phi, col_aka_eta),
40 unsigned int n_new=0u;
41 if (!emulated_defects.
isDefect(module_helper, idHash, row_idx, col_idx)) {
42 dest.push_back(std::make_unique<Pixel1RawData>(
dynamic_cast<const Pixel1RawData &
>(rdo)).
release() );
This is an Identifier helper class for the Pixel subdetector.
InDetRawDataContainer< InDetRawDataCollection< PixelRDORawData > > PixelRDO_Container
Class used to describe the design of a module (diode segmentation and readout scheme)
Algorithm template to selectivly copy RDOs from an InDetRawDataCollection.
bool isDefect(const T_ModuleHelper &helper, unsigned int id_hash, KEY_TYPE key) const
Test whether a pixel or strip on a certain module is marked as defect.
Algorithm which selectively copies hits from an input PixelRDO_Container.
Specialization of emulated defects conditions data for ITk pixels Defect conditions data for defects ...
Helper class to convert between offline column, row and hardware chip, column, row coordinates.
This is an Identifier helper class for the Pixel subdetector.
static std::string release
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ Pixel
Inner detector legacy.
std::unique_ptr< Pixel1RawData > createNoiseHit(const T_ModuleHelper &helper, const Identifier &identifier, unsigned int cell_idx, unsigned int tot)
IDAdapter(ID_Helper helper)
unsigned int cloneOrRejectHit(const PixelModuleHelper &module_helper, const PixelEmulatedDefects &emulated_defects, unsigned int idHash, unsigned int row_idx, unsigned int col_idx, const PixelRDORawData &rdo, InDetRawDataCollection< PixelRDORawData > &dest)
int col_index(const Identifier &rdoID) const
int row_index(const Identifier &rdoID) const
PixelRDORawData RDORawData
InDetDD::PixelModuleDesign ModuleDesign
const PixelID * ID_Helper
PixelModuleHelper ModuleHelper
PixelEmulatedDefects DefectsData
static constexpr ActsTrk::DetectorType DETECTOR_TYPE