CMS 3D CMS Logo

List of all members | Static Public Member Functions
RPCBookFolderStructure Class Reference

#include <RPCBookFolderStructure.h>

Static Public Member Functions

static std::string folderStructure (const RPCDetId &detId)
 

Detailed Description

Author
Anna Cimmino (INFN Napoli)

Create folder structure for DQM histo saving

Definition at line 14 of file RPCBookFolderStructure.h.

Member Function Documentation

◆ folderStructure()

static std::string RPCBookFolderStructure::folderStructure ( const RPCDetId detId)
inlinestatic

Definition at line 15 of file RPCBookFolderStructure.h.

References dqm-mbProfile::format, RPCDetId::region(), RPCDetId::ring(), RPCDetId::sector(), and RPCDetId::station().

Referenced by RPCMonitorDigi::bookRollME(), and RPCDqmClient::getMonitorElements().

15  {
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  }
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition: RPCDetId.h:81
int ring() const
Definition: RPCDetId.h:59
int station() const
Definition: RPCDetId.h:78
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:53