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 hcalRecHitTable_cff::detId, and dqm-mbProfile::format.

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  }