ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
PixelConditionsData
src
PixelChargeCalibUtils.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
PixelConditionsData/PixelChargeCalibUtils.h
"
5
#include "
InDetIdentifier/PixelID.h
"
6
#include "Identifier/Identifier.h"
7
#include "
PixelReadoutGeometry/PixelModuleDesign.h
"
8
#include "
InDetReadoutGeometry/SiDetectorElement.h
"
9
10
11
namespace
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>
19
numChipsAndTechnology
(
const
InDetDD::SiDetectorElement
*element){
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
}
PixelChargeCalibUtils.h
PixelID.h
This is an Identifier helper class for the Pixel subdetector.
PixelModuleDesign.h
SiDetectorElement.h
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::PixelModuleDesign
Class used to describe the design of a module (diode segmentation and readout scheme).
Definition
PixelModuleDesign.h:45
InDetDD::PixelModuleDesign::getReadoutTechnology
PixelReadoutTechnology getReadoutTechnology() const
Definition
PixelModuleDesign.h:391
InDetDD::PixelModuleDesign::numberOfCircuits
int numberOfCircuits() const
Total number of circuits:
Definition
PixelModuleDesign.h:306
InDetDD::SiDetectorElement
Class to hold geometrical description of a silicon detector element.
Definition
SiDetectorElement.h:109
InDetDD::SiDetectorElement::design
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
PixelID::layer_disk
int layer_disk(const Identifier &id) const
Definition
PixelID.h:602
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:355
PixelID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0).
Definition
PixelID.h:595
Identifier
Definition
IdentifierFieldParser.cxx:14
PixelChargeCalib
Definition
IChargeCalibrationParser.h:30
PixelChargeCalib::numChipsAndTechnology
std::pair< size_t, InDetDD::PixelReadoutTechnology > numChipsAndTechnology(const InDetDD::SiDetectorElement *element)
Definition
PixelChargeCalibUtils.cxx:19
PixelChargeCalib::getBecAndLayer
std::pair< int, int > getBecAndLayer(const PixelID *pPixelId, IdentifierHash hash)
Definition
PixelChargeCalibUtils.cxx:13
Generated on
for ATLAS Offline Software by
1.17.0