src
DQM
RPCMonitorClient
interface
RPCBookFolderStructure.h
Go to the documentation of this file.
1
7
#ifndef RPCBookFolderStructure_H
8
#define RPCBookFolderStructure_H
9
10
#include <
DataFormats/MuonDetId/interface/RPCDetId.h
>
11
#include <string>
12
#include <fmt/format.h>
13
14
struct
RPCBookFolderStructure
{
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
RPCDetId::sector
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition:
RPCDetId.h:81
RPCDetId.h
RPCDetId::ring
int ring() const
Definition:
RPCDetId.h:59
RPCBookFolderStructure
Definition:
RPCBookFolderStructure.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
dqm-mbProfile.format
format
Definition:
dqm-mbProfile.py:16
RPCDetId
Definition:
RPCDetId.h:16
RPCBookFolderStructure::folderStructure
static std::string folderStructure(const RPCDetId &detId)
Definition:
RPCBookFolderStructure.h:15
RPCDetId::station
int station() const
Definition:
RPCDetId.h:78
RPCDetId::region
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition:
RPCDetId.h:53
Generated for CMSSW Reference Manual by
1.8.14