ATLAS Offline Software
InnerDetector
InDetDetDescr
PixelReadoutDefinitions
src
PixelReadoutDefinitions.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
PixelReadoutDefinitions/PixelReadoutDefinitions.h
"
5
#include <array>
6
7
8
namespace
InDetDD
{
9
std::string
10
PixelModuleTypeName
(
const
PixelModuleType
&
t
){
11
if
(
t
==
PixelModuleType::NONE
)
return
"unknown"
;
12
static
const
std::array
<std::string,
enum2uint
(
PixelModuleType::N_PIXELMODULETYPES
)> PixelModuleTypeNames{
13
"DBM"
,
"IBL_PLANAR"
,
"IBL_3D"
,
"PIX_BARREL"
,
"PIX_ENDCAP"
14
};
15
return
PixelModuleTypeNames[
enum2uint
(
t
)];
16
}
17
18
std::string
19
PixelDiodeTypeName
(
const
PixelDiodeType
&
t
){
20
if
(
t
==
PixelDiodeType::NONE
)
return
"unknown"
;
21
static
const
std::array
<std::string,
enum2uint
(
PixelDiodeType::N_DIODETYPES
)> PixelDiodeTypeNames{
22
"NORMAL"
,
"LONG"
,
"GANGED"
,
"LARGE"
23
};
24
return
PixelDiodeTypeNames[
enum2uint
(
t
)];
25
}
26
27
std::string
28
PixelReadoutTechnologyName
(
const
PixelReadoutTechnology
&
t
){
29
if
(
t
==
PixelReadoutTechnology::NONE
)
return
"unknown"
;
30
static
const
std::array
<std::string,
enum2uint
(
PixelReadoutTechnology::N_TECHNOLOGIES
)> PixelReadoutTechnologyNames{
31
"FEI3"
,
"FEI4"
,
"RD53"
32
};
33
return
PixelReadoutTechnologyNames[
enum2uint
(
t
)];
34
}
35
}
InDetDD::PixelReadoutTechnology::N_TECHNOLOGIES
@ N_TECHNOLOGIES
InDetDD::PixelReadoutTechnology
PixelReadoutTechnology
Definition:
PixelReadoutDefinitions.h:34
InDetDD::PixelModuleTypeName
std::string PixelModuleTypeName(const PixelModuleType &t)
Definition:
PixelReadoutDefinitions.cxx:10
InDetDD::enum2uint
constexpr std::size_t enum2uint(T n, const std::string &callingFunctionName="")
Convert an enum class to size_t for use as an array index.
Definition:
PixelReadoutDefinitions.h:48
InDetDD::PixelDiodeType
PixelDiodeType
Definition:
PixelReadoutDefinitions.h:25
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
InDetDD::PixelModuleType::N_PIXELMODULETYPES
@ N_PIXELMODULETYPES
InDetDD::PixelDiodeType::N_DIODETYPES
@ N_DIODETYPES
InDetDD::PixelReadoutTechnology::NONE
@ NONE
InDetDD::PixelModuleType::NONE
@ NONE
InDetDD::PixelModuleType
PixelModuleType
Definition:
PixelReadoutDefinitions.h:15
lumiFormat.array
array
Definition:
lumiFormat.py:91
PixelReadoutDefinitions.h
InDetDD
Message Stream Member.
Definition:
FakeTrackBuilder.h:8
InDetDD::PixelDiodeType::NONE
@ NONE
InDetDD::PixelReadoutTechnologyName
std::string PixelReadoutTechnologyName(const PixelReadoutTechnology &t)
Definition:
PixelReadoutDefinitions.cxx:28
InDetDD::PixelDiodeTypeName
std::string PixelDiodeTypeName(const PixelDiodeType &t)
Definition:
PixelReadoutDefinitions.cxx:19
Generated on Thu Nov 7 2024 21:23:55 for ATLAS Offline Software by
1.8.18