ATLAS Offline Software
PixelClusteringTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #include "PixelClusteringTool.h"
5 
6 #include <Acts/Clusterization/Clusterization.hpp>
7 
13 #include <TrkSurfaces/Surface.h>
14 
15 #include <unordered_set>
16 #include <stdexcept>
17 
18 using CLHEP::micrometer;
19 
20 // Helper functions for use with ACTS clusterization
21 // Put these in the InDet namespace so that ACTS can find them
22 // via ADL.
23 //
24 namespace ActsTrk {
25  static inline int getCellRow(const typename PixelClusteringTool::Cell& cell) { return cell.ROW; }
26  static inline int getCellColumn(const typename PixelClusteringTool::Cell& cell) { return cell.COL; }
27  static inline void clusterReserve(PixelClusteringTool::Cluster& cl,
28  std::size_t n)
29  {
30  cl.ids.reserve(n);
31  cl.tots.reserve(n);
32  }
33  static inline void clusterAddCell(PixelClusteringTool::Cluster& cl,
34  const PixelClusteringTool::Cell& cell)
35  {
36  cl.ids.push_back(cell.ID);
37  cl.tots.push_back(cell.TOT);
38  if (cell.LVL1 < cl.lvl1min)
39  cl.lvl1min = cell.LVL1;
40  }
41 
43 {
44  ATH_MSG_DEBUG("Initializing " << name() << " ...");
45 
46  ATH_MSG_DEBUG(" " << m_addCorners );
50 
52  ATH_CHECK(m_pixelReadout.retrieve());
53 
55 
56  ATH_MSG_INFO(" Charge Data Key:" << m_chargeDataKey);
57 
58  ATH_CHECK( detStore()->retrieve(m_pixelID, "PixelID") );
59 
60  ATH_MSG_DEBUG(name() << " successfully initialized");
61  return StatusCode::SUCCESS;
62 }
63 
65  const std::string& type, const std::string& name, const IInterface* parent)
66  : base_class(type,name,parent)
67 {}
68 
70 PixelClusteringTool::makeCluster(const EventContext& ctx,
71  PixelClusteringTool::Cluster &cluster,
72  const InDetDD::SiDetectorElement* element,
73  const InDetDD::PixelModuleDesign& design,
74  const PixelChargeCalibCondData *calibData,
76  xAOD::PixelCluster& xaodcluster) const
77 {
78 
79  Amg::Vector2D pos_acc(0,0);
80  int tot_acc = 0;
81 
82  std::vector<float> chargeList;
83  if (calibData) chargeList.reserve(cluster.ids.size());
84 
93 
94  // We temporary comment this since it is not used
95  // bool hasGanged = false;
96 
97  IdentifierHash moduleHash = element->identifyHash();
98 
99  for (size_t i = 0; i < cluster.ids.size(); i++) {
100 
101  //Construct the identifier class
102  Identifier id = Identifier(cluster.ids[i]);
103 
104  // We temporary comment this since it is not used
105  // TODO: Check how the ganged info is used in legacy
106  // if (multiChip) {
107  // hasGanged = hasGanged ||
108  // m_pixelRDOTool->isGanged(id, element).has_value();
109  // }
110 
111  int tot = cluster.tots.at(i);
112  float charge = tot;
113 
114  std::array<InDetDD::PixelDiodeTree::CellIndexType,2> diode_idx
116  m_pixelID->eta_index(id));
118 
119  if (calibData) {
120  if (m_isITk){
122  ATH_MSG_ERROR("Chip type is not recognized!");
123  return StatusCode::FAILURE;
124  }
125 
126  // The calibration strategy is updated for each element
127  // Retrieving the calibration only depends on FE and not per cell (can be further optimized)
128  // Single FE modules could have an optimized getCharge function where the calib constants are cached
129  std::uint32_t feValue = design.getFE(si_param);
130  auto diode_type = design.getDiodeType(si_param);
131 
132  charge = calibData->getCharge(diode_type,
133  calibStrategy,
134  moduleHash,
135  feValue,
136  tot);
137  chargeList.push_back(charge);
138  } else {
139  Identifier moduleID = m_pixelID->wafer_id(id);
140  IdentifierHash moduleHash = m_pixelID->wafer_hash(moduleID);
141  charge = calibData->getCharge(m_pixelReadout->getDiodeType(id),
142  moduleHash,
143  m_pixelReadout->getFE(id, moduleID),
144  tot);
145 
146  // These numbers are taken from the Cluster Maker Tool
147  if (design.getReadoutTechnology() != InDetDD::PixelReadoutTechnology::RD53 && (moduleHash < 12 or moduleHash > 2035)) {
148  charge = tot/8.0*(8000.0-1200.0)+1200.0;
149  }
150  chargeList.push_back(charge);
151  }
152  }
153 
154  const InDetDD::PixelDiodeTree::CellIndexType &row = diode_idx[0];
155  const InDetDD::PixelDiodeTree::CellIndexType &col = diode_idx[1];
156  if (row>rowmax) {
157  rowmax=row;
158  rowmax_diode = si_param;
159  }
160  if (row<rowmin) {
161  rowmin=row;
162  rowmin_diode = si_param;
163  }
164  if (col>colmax) {
165  colmax=col;
166  colmax_diode = si_param;
167  }
168  if (col<colmin) {
169  colmin=col;
170  colmin_diode = si_param;
171  }
172 
173  // We compute the digital position as a sum of all RDO positions
174  // all with the same weight of 1
175  // We do not compute a charge-weighted center of gravity here (by default) since
176  // we observe it to be worse than the digital position
177  // ToT-weighted center of gravity must not be used
178  if (m_useWeightedPos) {
179  pos_acc += charge * si_param.position();
180  tot_acc += charge;
181  } else {
182  pos_acc += si_param.position();
183  tot_acc += 1;
184  }
185 
186  }
187 
188  if (tot_acc > 0)
189  pos_acc /= tot_acc;
190 
191 
192  const int colWidth = colmax - colmin + 1;
193  const int rowWidth = rowmax - rowmin + 1;
194 
195  double etaWidth = colmax_diode.xEtaMax() - colmin_diode.xEtaMin(); // design.widthFromColumnRange(colmin, colmax);
196  double phiWidth = rowmax_diode.xPhiMax() - rowmin_diode.xPhiMin(); // design.widthFromColumnRange(colmin, colmax);
197 
198  // ask for Lorentz correction, get global position
199  double shift = m_pixelLorentzAngleTool->getLorentzShift(moduleHash, ctx);
200  const Amg::Vector2D localPos = pos_acc;
201  Amg::Vector2D locpos(localPos[Trk::locX]+shift, localPos[Trk::locY]);
202  // find global position of element
203  const Amg::Transform3D& T = element->surface().transform();
204  double Ax[3] = {T(0,0),T(1,0),T(2,0)};
205  double Ay[3] = {T(0,1),T(1,1),T(2,1)};
206  double R [3] = {T(0,3),T(1,3),T(2,3)};
207 
208  const Amg::Vector2D& M = locpos;
209  Amg::Vector3D globalPos(M[0]*Ax[0]+M[1]*Ay[0]+R[0],M[0]*Ax[1]+M[1]*Ay[1]+R[1],M[0]*Ax[2]+M[1]*Ay[2]+R[2]);
210 
211  // Compute error matrix
212  float width0, width1;
213  if (m_broadErrors) {
214  // Use cluster width
215  width0 = phiWidth;
216  width1 = etaWidth;
217  } else {
218  // Use average pixel width
219  width0 = phiWidth / rowWidth;
220  width1 = etaWidth / colWidth;
221  }
222 
223  // Actually create the cluster (i.e. fill the values)
224 
225  Eigen::Matrix<float,2,1> localPosition(locpos.x(), locpos.y());
226  Eigen::Matrix<float,2,2> localCovariance = Eigen::Matrix<float,2,2>::Zero();
227  localCovariance(0, 0) = width0 * width0 / 12.0f;
228  localCovariance(1, 1) = width1 * width1 / 12.0f;
229 
230  xaodcluster.setMeasurement<2>(moduleHash, localPosition, localCovariance);
231  xaodcluster.setIdentifier( cluster.ids.front() );
232  xaodcluster.setRDOlist(std::move(cluster.ids));
233  xaodcluster.globalPosition() = globalPos.cast<float>();
235  xaodcluster.setToTlist(std::move(cluster.tots));
237  xaodcluster.setChargelist(std::move(chargeList));
238  xaodcluster.setLVL1A(cluster.lvl1min);
239  xaodcluster.setChannelsInPhiEta(rowWidth,colWidth);
240  xaodcluster.setWidthInEta(static_cast<float>(etaWidth));
241  xaodcluster.setIsSplit(false);
242  xaodcluster.setSplitProbabilities(0.0, 0.0);
243 
244  return StatusCode::SUCCESS;
245 }
246 
248 PixelClusteringTool::clusterize(const EventContext& /*ctx*/,
249  const RawDataCollection& RDOs,
250  const InDet::SiDetectorElementStatus& pixelDetElStatus,
251  const InDetDD::SiDetectorElement& element,
252  Acts::Ccl::ClusteringData& data,
253  std::vector<ClusterCollection>& collection) const
254 {
255  IdentifierHash idHash = RDOs.identifyHash();
256  collection.emplace_back();
257  if ( not pixelDetElStatus.isGood(idHash) ) {
258  // the module being flagged as bad is not a failure
259  // An empty cluster collection needs to be added because the assumption
260  // is that there is one element per element RawDataCollection.
261  return StatusCode::SUCCESS;
262  }
263 
264  // Retrieve the cells from the detector element
265  CellCollection cells = unpackRDOs(RDOs, pixelDetElStatus, element);
266 
267  Acts::Ccl::createClusters<CellCollection, ClusterCollection, 2>
268  (data, cells, collection.back(), Acts::Ccl::DefaultConnect<Cell, 2>(m_addCorners));
269 
270  return StatusCode::SUCCESS;
271 }
272 
273 
275 PixelClusteringTool::makeClusters(const EventContext& ctx,
277  const InDetDD::SiDetectorElement& element,
278  typename ClusterContainer::iterator itrContainer) const
279 {
280  // We'd need a smarter move here!!!
281 
282  // Retrieve the calibration data
283  const PixelChargeCalibCondData *calibData = nullptr;
284  if (not m_chargeDataKey.empty()) {
286  calibData = calibDataHandle.cptr();
287 
288  if (!calibData) {
289  ATH_MSG_ERROR("PixelChargeCalibCondData requested but couldn't be retrieved from " << m_chargeDataKey.key());
290  return StatusCode::FAILURE;
291  }
292  }
293 
294  // Get the element design
295  const InDetDD::PixelModuleDesign& design =
296  static_cast<const InDetDD::PixelModuleDesign&>(element.design());
297 
298  // Get the calibration strategy for this module.
299  // Default to RD53 if the calibData is not available. That is fine because it won't be used anyway
300  auto calibrationStrategy = calibData ? calibData->getCalibrationStrategy(element.identifyHash()) : PixelChargeCalibCondData::CalibrationStrategy::RD53;
301 
302  for (typename IPixelClusteringTool::Cluster& cl : clusters) {
303  xAOD::PixelCluster* xaodCluster = *itrContainer;
305  cl,
306  &element,
307  design,
308  calibData,
309  calibrationStrategy,
310  *xaodCluster));
311  ++itrContainer;
312  }
313 
314  return StatusCode::SUCCESS;
315 }
316 
318 PixelClusteringTool::unpackRDOs(const RawDataCollection& RDOs,
319  const InDet::SiDetectorElementStatus& pixelDetElStatus,
320  const InDetDD::SiDetectorElement& element) const
321 {
322  // Get the element design
323  const InDetDD::PixelModuleDesign& design =
324  static_cast<const InDetDD::PixelModuleDesign&>(element.design());
325  CellCollection cells;
326  cells.reserve(300);
327 
328  const IdentifierHash& idHash = RDOs.identifyHash();
329  for (const auto *const rdo : RDOs) {
330  const Identifier& rdoID = rdo->identify();
331  std::array<InDetDD::PixelDiodeTree::CellIndexType,2> diode_idx
333  m_pixelID->eta_index(rdoID));
334  InDetDD::PixelDiodeTree::DiodeProxy si_param ( design.diodeProxyFromIdx(diode_idx));
335  std::uint32_t fe = design.getFE(si_param);
336 
337  // check if good RDO
338  // the pixel RDO tool here says always good if m_useModuleMap is false
339  if (not pixelDetElStatus.isChipGood(idHash, fe)) {
340  continue;
341  }
342 
343  const int lvl1 = rdo->getLVL1A();
344  const int tot = rdo->getToT();
345 
346  cells.emplace_back(m_pixelID->phi_index(rdoID),
347  m_pixelID->eta_index(rdoID),
348  tot,
349  lvl1,
350  rdoID.get_compact());
351 
352  if ( m_checkGanged ) {
353  std::optional<Identifier> gangedID = isGanged(rdoID, element);
354  if (gangedID.has_value()) {
355  cells.emplace_back(m_pixelID->phi_index(*gangedID),
356  m_pixelID->eta_index(*gangedID),
357  tot,
358  lvl1,
359  gangedID->get_compact());
360  }
361  }
362 
363  }
364 
365  return cells;
366 }
367 
368 inline std::optional<Identifier>
370  const InDetDD::SiDetectorElement& element)
371 {
372  // If the pixel is ganged, returns a new identifier for it
373  InDetDD::SiCellId cellID = element.cellIdFromIdentifier( rdoID );
374  if ( element.numberOfConnectedCells( cellID ) > 1 ) {
375  InDetDD::SiCellId gangedCellID = element.connectedCell( cellID, 1 );
376  return element.identifierFromCellId( gangedCellID );
377  }
378  return std::nullopt;
379 }
380 
381 } // namespace ActsTrk
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
ActsTrk::PixelClusteringTool::m_broadErrors
Gaudi::Property< bool > m_broadErrors
Definition: PixelClusteringTool.h:77
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:281
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
SiWidth.h
xAOD::PixelCluster_v1::setTotalCharge
void setTotalCharge(float totalCharge)
Sets the total charge.
ActsTrk::IPixelClusteringTool::Cluster
Definition: Tracking/Acts/ActsToolInterfaces/ActsToolInterfaces/IPixelClusteringTool.h:43
PixelID::phi_index
int phi_index(const Identifier &id) const
Definition: PixelID.h:639
InDetDD::SolidStateDetectorElementBase::connectedCell
SiCellId connectedCell(const SiCellId cellId, int number) const
Get the cell ids sharing the readout for this cell.
Definition: SolidStateDetectorElementBase.cxx:250
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
InDetDD::PixelDiodeTree::DiodeProxyWithPosition::position
const Vector2D & position() const
get the cached position of this diode
Definition: PixelDiodeTree.h:241
ActsTrk::PixelClusteringTool::m_pixelLorentzAngleTool
ToolHandle< ISiLorentzAngleTool > m_pixelLorentzAngleTool
Definition: PixelClusteringTool.h:70
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Trk::locX
@ locX
Definition: ParamDefs.h:37
InDetDD::PixelModuleDesign
Definition: PixelModuleDesign.h:45
Trk::locY
@ locY
local cartesian
Definition: ParamDefs.h:38
Surface.h
PixelClusteringTool.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
InDet::SiDetectorElementStatus::isChipGood
bool isChipGood(IdentifierHash hash, unsigned int chip) const
Definition: SiDetectorElementStatus.h:100
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
xAOD::xAODInDetMeasurement::Utilities::computeTotalToT
int computeTotalToT(const SG::AuxElement &cluster)
Definition: Event/xAOD/xAODInDetMeasurement/Root/Utilities.cxx:22
ActsTrk::PixelClusteringTool::m_isITk
Gaudi::Property< bool > m_isITk
Definition: PixelClusteringTool.h:79
InDetDD::SolidStateDetectorElementBase::surface
Trk::Surface & surface()
Element Surface.
InDetDD::PixelDiodeTree::CellIndexType
int CellIndexType
Definition: PixelDiodeTree.h:37
ActsTrk::IPixelClusteringTool::CellCollection
std::vector< Cell > CellCollection
Definition: Tracking/Acts/ActsToolInterfaces/ActsToolInterfaces/IPixelClusteringTool.h:41
Identifier::get_compact
value_type get_compact() const
Get the compact id.
xAOD::PixelCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition: PixelCluster_v1.cxx:32
PixelChargeCalibCondData::CalibrationStrategy::RD53
@ RD53
keylayer_zslicemap.row
row
Definition: keylayer_zslicemap.py:155
xAOD::PixelCluster_v1::setChargelist
void setChargelist(const std::vector< float > &charges)
Sets the list of charges of the channels building the cluster.
ActsTrk::PixelClusteringTool::m_pixelID
const PixelID * m_pixelID
Definition: PixelClusteringTool.h:80
xAOD::PixelCluster_v1::setIsSplit
void setIsSplit(bool isSplit)
Sets if the cluster is split or not.
ActsTrk::PixelClusteringTool::unpackRDOs
IPixelClusteringTool::CellCollection unpackRDOs(const RawDataCollection &RDOs, const InDet::SiDetectorElementStatus &stripDetElStatus, const InDetDD::SiDetectorElement &element) const
Definition: PixelClusteringTool.cxx:318
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
xAOD::PixelCluster_v1::setWidthInEta
void setWidthInEta(float widthInEta)
Sets the width of the cluster in eta (y) direction.
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
InDetDD::PixelModuleDesign::getFE
static unsigned int getFE(const PixelDiodeTree::DiodeProxy &diode_proxy)
Definition: PixelModuleDesign.h:258
InDetDD::PixelModuleDesign::diodeProxyFromIdx
PixelDiodeTree::DiodeProxy diodeProxyFromIdx(const std::array< PixelDiodeTree::IndexType, 2 > &idx) const
Definition: PixelModuleDesign.h:248
ActsTrk::PixelClusteringTool::m_useWeightedPos
Gaudi::Property< bool > m_useWeightedPos
Definition: PixelClusteringTool.h:76
InDetDD::PixelModuleDesign::diodeProxyFromIdxCachePosition
PixelDiodeTree::DiodeProxyWithPosition diodeProxyFromIdxCachePosition(const std::array< PixelDiodeTree::IndexType, 2 > &idx) const
Definition: PixelModuleDesign.h:251
xAOD::PixelCluster_v1::setTotalToT
void setTotalToT(int totalToT)
Sets the total ToT.
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
InDetDD::SolidStateDetectorElementBase::identifyHash
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:360
ActsTrk::PixelClusteringTool::m_addCorners
Gaudi::Property< bool > m_addCorners
Definition: PixelClusteringTool.h:75
InDetDD::PixelModuleDesign::getDiodeType
static InDetDD::PixelDiodeType getDiodeType(const PixelDiodeTree::DiodeProxy &diode_proxy)
Definition: PixelModuleDesign.h:261
InDetDD::PixelReadoutTechnology::RD53
@ RD53
xAOD::PixelCluster_v1::setSplitProbabilities
void setSplitProbabilities(float prob1, float prob2)
Sets the splitting probabilities for the cluster.
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:274
ActsTrk::PixelClusteringTool::m_chargeDataKey
SG::ReadCondHandleKey< PixelChargeCalibCondData > m_chargeDataKey
Definition: PixelClusteringTool.h:72
InDetDD::PixelDiodeTree::DiodeProxyWithPosition
A diode proxy which caches the position of a diode.
Definition: PixelDiodeTree.h:230
ActsTrk::PixelClusteringTool::PixelClusteringTool
PixelClusteringTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: PixelClusteringTool.cxx:64
xAOD::UncalibratedMeasurement_v1::setIdentifier
void setIdentifier(const DetectorIdentType measId)
Sets the full Identifier of the measurement.
InDetDD::SiDetectorElement::cellIdFromIdentifier
virtual SiCellId cellIdFromIdentifier(const Identifier &identifier) const override final
SiCellId from Identifier.
Definition: SiDetectorElement.cxx:120
ActsTrk::PixelClusteringTool::m_pixelReadout
ServiceHandle< InDetDD::IPixelReadoutManager > m_pixelReadout
Definition: PixelClusteringTool.h:67
InDetDD::SolidStateDetectorElementBase::numberOfConnectedCells
int numberOfConnectedCells(const SiCellId cellId) const
Test if readout cell has more than one diode associated with it.
Definition: SolidStateDetectorElementBase.cxx:243
PixelID::wafer_hash
IdentifierHash wafer_hash(Identifier wafer_id) const
wafer hash from id
Definition: PixelID.h:383
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ActsTrk::PixelClusteringTool::makeCluster
StatusCode makeCluster(const EventContext &ctx, PixelClusteringTool::Cluster &cluster, const InDetDD::SiDetectorElement *element, const InDetDD::PixelModuleDesign &design, const PixelChargeCalibCondData *calibData, const PixelChargeCalibCondData::CalibrationStrategy calibStrategy, xAOD::PixelCluster &container) const
Definition: PixelClusteringTool.cxx:70
PixelClusterAuxContainer.h
lumiFormat.i
int i
Definition: lumiFormat.py:85
InDet::SiDetectorElementStatus
Definition: SiDetectorElementStatus.h:62
beamspotman.n
n
Definition: beamspotman.py:727
python.SystemOfUnits.micrometer
float micrometer
Definition: SystemOfUnits.py:80
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
ActsTrk::PixelClusteringTool::initialize
virtual StatusCode initialize() override
Definition: PixelClusteringTool.cxx:42
PixelChargeCalibCondData
Definition: PixelChargeCalibCondData.h:24
PixelClusterContainer.h
InDetDD::SiDetectorElement::identifierFromCellId
virtual Identifier identifierFromCellId(const SiCellId &cellId) const override final
Identifier <-> SiCellId (ie strip number or pixel eta_index,phi_index) Identifier from SiCellId (ie s...
Definition: SiDetectorElement.cxx:89
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
xAOD::PixelCluster_v1::setToTlist
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ActsTrk::PixelClusteringTool::clusterize
virtual StatusCode clusterize(const EventContext &ctx, const RawDataCollection &RDOs, const InDet::SiDetectorElementStatus &pixelDetElStatus, const InDetDD::SiDetectorElement &element, Acts::Ccl::ClusteringData &data, std::vector< ClusterCollection > &collection) const override
Definition: PixelClusteringTool.cxx:248
PixelCluster.h
PixelID::eta_index
int eta_index(const Identifier &id) const
Definition: PixelID.h:645
PixelChargeCalibCondData::getCalibrationStrategy
CalibrationStrategy getCalibrationStrategy(unsigned int moduleHash) const
Definition: PixelChargeCalibCondData.cxx:254
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
PixelChargeCalibCondData::CalibrationStrategy
CalibrationStrategy
Definition: PixelChargeCalibCondData.h:34
xAOD::PixelCluster_v1::setLVL1A
void setLVL1A(int lvl1a)
Sets the LVL1 accept.
xAOD::xAODInDetMeasurement::Utilities::computeTotalCharge
float computeTotalCharge(const SG::AuxElement &cluster)
Definition: Event/xAOD/xAODInDetMeasurement/Root/Utilities.cxx:9
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
Utilities.h
InDet::SiDetectorElementStatus::isGood
bool isGood(IdentifierHash hash) const
Definition: SiDetectorElementStatus.h:97
xAOD::PixelCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the pixel cluster.
Definition: PixelCluster_v1.cxx:15
PixelCalibrationConfig.tot
tot
Definition: PixelCalibrationConfig.py:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
charge
double charge(const T &p)
Definition: AtlasPID.h:997
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
ActsTrk::PixelClusteringTool::makeClusters
virtual StatusCode makeClusters(const EventContext &ctx, typename IPixelClusteringTool::ClusterCollection &clusters, const InDetDD::SiDetectorElement &element, typename ClusterContainer::iterator itrContainer) const override
Definition: PixelClusteringTool.cxx:275
InDetDD::PixelModuleDesign::getReadoutTechnology
PixelReadoutTechnology getReadoutTechnology() const
Definition: PixelModuleDesign.h:391
InDetDD::SiCellId
Definition: SiCellId.h:29
ActsTrk::PixelClusteringTool::isGanged
static std::optional< Identifier > isGanged(const Identifier &rdoID, const InDetDD::SiDetectorElement &element)
Definition: PixelClusteringTool.cxx:369
xAOD::PixelCluster_v1
Definition: PixelCluster_v1.h:17
xAOD::UncalibratedMeasurement_v1::setMeasurement
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.
InDetDD::PixelDiodeTree::DiodeProxy
Helper class to access parameters of a diode.
Definition: PixelDiodeTree.h:183
xAOD::PixelCluster_v1::setChannelsInPhiEta
void setChannelsInPhiEta(int channelsInPhi, int channelsInEta)
Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
Definition: PixelCluster_v1.cxx:55
xAOD::phiWidth
phiWidth
Definition: RingSetConf_v1.cxx:606
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
PixelChargeCalibCondData::getCharge
float getCharge(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE, float ToT) const
Definition: PixelChargeCalibCondData.cxx:223
ActsTrk::PixelClusteringTool::m_checkGanged
Gaudi::Property< bool > m_checkGanged
Definition: PixelClusteringTool.h:78
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MdtCalibInput.h:31
ActsTrk::IPixelClusteringTool::ClusterCollection
std::vector< Cluster > ClusterCollection
Definition: Tracking/Acts/ActsToolInterfaces/ActsToolInterfaces/IPixelClusteringTool.h:48
InDetDD::PixelDiodeTree::makeCellIndex
static constexpr std::array< PixelDiodeTree::CellIndexType, 2 > makeCellIndex(T local_x_idx, T local_y_idx)
Create a 2D cell index from the indices in local-x (phi, row) and local-y (eta, column) direction.
Definition: PixelDiodeTree.h:320
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
InDetDD::SiDetectorElement::design
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
Trk::Surface::transform
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:25
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
SG::ReadCondHandle::cptr
const_pointer_type cptr()
Definition: ReadCondHandle.h:71
Identifier
Definition: IdentifierFieldParser.cxx:14