CMS 3D CMS Logo

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 
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
static std::string folderStructure(const RPCDetId &detId)