ATLAS Offline Software
PixelReadoutDefinitions.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
5 #include <array>
6 
7 
8 namespace InDetDD{
9  std::string
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
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
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