ATLAS Offline Software
Loading...
Searching...
No Matches
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
8namespace 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}
Message Stream Member.
std::string PixelModuleTypeName(const PixelModuleType &t)
std::string PixelDiodeTypeName(const PixelDiodeType &t)
constexpr std::size_t enum2uint(T n, std::string_view callingFunctionName="")
Convert an enum class to size_t for use as an array index.
std::string PixelReadoutTechnologyName(const PixelReadoutTechnology &t)