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.h
RPCBookFolderStructure
Definition:
RPCBookFolderStructure.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
dqm-mbProfile.format
format
Definition:
dqm-mbProfile.py:16
hcalRecHitTable_cff.detId
detId
Definition:
hcalRecHitTable_cff.py:12
RPCDetId
Definition:
RPCDetId.h:16
RPCBookFolderStructure::folderStructure
static std::string folderStructure(const RPCDetId &detId)
Definition:
RPCBookFolderStructure.h:15
Generated for CMSSW Reference Manual by
1.8.14