2 #include <fmt/format.h>
13 const int roll = detId.
roll();
17 chName +=
"_Backward";
40 const int sector = detId.
sector();
45 const int nsub = (ring == 1 and detId.
station() > 1) ? 3 : 6;
48 return fmt::format(
"RE{:+2d}_R{}_CH{:02d}", disk, ring, segment);
51 const int wheel = detId.
ring();
58 roll = (layer == 1) ?
"in" :
"out";
59 }
else if (station == 3) {
60 roll = (subsector == 1) ?
"-" :
"+";
63 const static std::array<std::string, 4> ssarr = {{
"--",
"-",
"+",
"++"}};
64 roll = ssarr[subsector - 1];
65 }
else if (sector != 9 && sector != 11) {
66 roll = (subsector == 1) ?
"-" :
"+";
70 return fmt::format(
"W{:+2d}_RB{:d}{}_S{:02d}", wheel, station, roll, sector);
77 if (region < -1 or region > 1)
static const std::array< std::string, 3 > regionNames
static std::string rollName(const RPCDetId &detId)
constexpr std::array< uint8_t, layerIndexSize > layer
static std::string regionName(const int region)
static std::string name(const RPCDetId &detId, const bool useRoll)
static std::string chamberName(const RPCDetId &detId)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.