ATLAS Offline Software
PixelChargeCalibUtils.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
6 #include "Identifier/Identifier.h"
9 
10 
11 namespace PixelChargeCalib{
12  std::pair<int, int>
14  const Identifier waferId = pPixelId->wafer_id(hash);
15  return {pPixelId->barrel_ec(waferId), pPixelId->layer_disk(waferId)};
16  }
17 
18  std::pair<size_t, InDetDD::PixelReadoutTechnology>
20  static constexpr int halfModuleThreshold{8};
21  const InDetDD::PixelModuleDesign *pDesign = static_cast<const InDetDD::PixelModuleDesign*>(&element->design());
22  const unsigned int n = (pDesign->numberOfCircuits() < halfModuleThreshold) ? pDesign->numberOfCircuits() : 2 * pDesign->numberOfCircuits();
23  return {n, pDesign->getReadoutTechnology()};
24  }
25 
26 }
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
InDetDD::PixelModuleDesign
Definition: PixelModuleDesign.h:48
PixelID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: PixelID.h:619
PixelChargeCalib::getBecAndLayer
std::pair< int, int > getBecAndLayer(const PixelID *pPixelId, IdentifierHash hash)
Definition: PixelChargeCalibUtils.cxx:13
PixelChargeCalib::numChipsAndTechnology
std::pair< size_t, InDetDD::PixelReadoutTechnology > numChipsAndTechnology(const InDetDD::SiDetectorElement *element)
Definition: PixelChargeCalibUtils.cxx:19
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:364
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
beamspotman.n
n
Definition: beamspotman.py:731
InDetDD::PixelModuleDesign::numberOfCircuits
int numberOfCircuits() const
Total number of circuits:
Definition: PixelModuleDesign.h:297
PixelChargeCalibUtils.h
PixelID::layer_disk
int layer_disk(const Identifier &id) const
Definition: PixelID.h:626
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
InDetDD::PixelModuleDesign::getReadoutTechnology
PixelReadoutTechnology getReadoutTechnology() const
Definition: PixelModuleDesign.h:368
SiDetectorElement.h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
PixelModuleDesign.h
PixelChargeCalib
Definition: IChargeCalibrationParser.h:30
IdentifierHash
Definition: IdentifierHash.h:38
InDetDD::SiDetectorElement::design
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
PixelID
Definition: PixelID.h:67