ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace PixelChargeCalib{
12 std::pair<int, int>
13 getBecAndLayer(const PixelID * pPixelId, IdentifierHash hash){
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}
This is an Identifier helper class for the Pixel subdetector.
This is a "hash" representation of an Identifier.
Class used to describe the design of a module (diode segmentation and readout scheme)
PixelReadoutTechnology getReadoutTechnology() const
int numberOfCircuits() const
Total number of circuits:
Class to hold geometrical description of a silicon detector element.
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67
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
std::pair< size_t, InDetDD::PixelReadoutTechnology > numChipsAndTechnology(const InDetDD::SiDetectorElement *element)
std::pair< int, int > getBecAndLayer(const PixelID *pPixelId, IdentifierHash hash)