CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPCBookFolderStructure.h
Go to the documentation of this file.
1 
7 #ifndef RPCBookFolderStructure_H
8 #define RPCBookFolderStructure_H
9 
11 #include <string>
12 #include <fmt/format.h>
13 
15  static std::string folderStructure(const RPCDetId& detId) {
16  if (detId.region() == 0)
17  return fmt::format("Barrel/Wheel_{}/sector_{}/station_{}", detId.ring(), detId.sector(), detId.station());
18  else if (detId.region() == -1)
19  return fmt::format("Endcap-/Disk_-{}/ring_{}/sector_{}", detId.station(), detId.ring(), detId.sector());
20  else if (detId.region() == 1)
21  return fmt::format("Endcap+/Disk_{}/ring_{}/sector_{}", detId.station(), detId.ring(), detId.sector());
22  return "Error/Folder/Creation";
23  }
24 };
25 
26 #endif
int ring() const
Definition: RPCDetId.h:59
static std::string folderStructure(const RPCDetId &detId)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition: RPCDetId.h:81
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:53
int station() const
Definition: RPCDetId.h:78