Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DQM
RPCMonitorDigi
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 <sstream>
13
class
RPCBookFolderStructure
{
14
public
:
15
explicit
RPCBookFolderStructure
() {};
16
~RPCBookFolderStructure
(){};
17
18
std::string
folderStructure
(
RPCDetId
detId){
19
20
std::stringstream myStream ;
21
myStream.str(
""
);
22
23
if
(detId.
region
() == 0)
24
myStream <<
"Barrel/Wheel_"
<<detId.
ring
()<<
"/sector_"
<<detId.
sector
()<<
"/station_"
<<detId.
station
();
25
else
if
(detId.
region
() == -1)
26
myStream <<
"Endcap-/Disk_-"
<<detId.
station
()<<
"/ring_"
<<detId.
ring
()<<
"/sector_"
<<detId.
sector
();
27
else
if
(detId.
region
() == 1)
28
myStream <<
"Endcap+/Disk_"
<<detId.
station
()<<
"/ring_"
<<detId.
ring
()<<
"/sector_"
<<detId.
sector
();
29
else
myStream <<
"Error/Folder/Creation"
;
30
31
return
myStream.str();
32
}
33
};
34
#endif
RPCBookFolderStructure::~RPCBookFolderStructure
~RPCBookFolderStructure()
Definition:
RPCBookFolderStructure.h:16
RPCDetId.h
RPCBookFolderStructure
Definition:
RPCBookFolderStructure.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
RPCDetId::ring
int ring() const
Definition:
RPCDetId.h:72
RPCDetId
Definition:
RPCDetId.h:16
RPCBookFolderStructure::folderStructure
std::string folderStructure(RPCDetId detId)
Definition:
RPCBookFolderStructure.h:18
RPCDetId::sector
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition:
RPCDetId.h:102
RPCBookFolderStructure::RPCBookFolderStructure
RPCBookFolderStructure()
Definition:
RPCBookFolderStructure.h:15
RPCDetId::region
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition:
RPCDetId.h:63
RPCDetId::station
int station() const
Definition:
RPCDetId.h:96
Generated for CMSSW Reference Manual by
1.8.5