ATLAS Offline Software
Loading...
Searching...
No Matches
LUTChargeCalibParser.cxx File Reference
Include dependency graph for LUTChargeCalibParser.cxx:

Go to the source code of this file.

Namespaces

namespace  PixelChargeCalib

Functions

std::pair< int, int > getBecAndLayer (const PixelID *pPixelId, IdentifierHash hash)
std::pair< size_t, InDetDD::PixelReadoutTechnologynumChipsAndTechnology (const InDetDD::SiDetectorElement *element)

Function Documentation

◆ getBecAndLayer()

std::pair< int, int > PixelChargeCalib::getBecAndLayer ( const PixelID * pPixelId,
IdentifierHash hash )

Definition at line 13 of file PixelChargeCalibUtils.cxx.

13 {
14 const Identifier waferId = pPixelId->wafer_id(hash);
15 return {pPixelId->barrel_ec(waferId), pPixelId->layer_disk(waferId)};
16 }
int layer_disk(const Identifier &id) const
Definition PixelID.h:607
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition PixelID.h:360
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition PixelID.h:600

◆ numChipsAndTechnology()

std::pair< size_t, InDetDD::PixelReadoutTechnology > PixelChargeCalib::numChipsAndTechnology ( const InDetDD::SiDetectorElement * element)

Definition at line 19 of file PixelChargeCalibUtils.cxx.

19 {
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 }
Class used to describe the design of a module (diode segmentation and readout scheme)
PixelReadoutTechnology getReadoutTechnology() const
int numberOfCircuits() const
Total number of circuits:
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):