Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQM
RPCMonitorDigi
interface
RPCBookFolderStructure.h
Go to the documentation of this file.
1
9
#ifndef RPCBookFolderStructure_H
10
#define RPCBookFolderStructure_H
11
12
#include <
DataFormats/MuonDetId/interface/RPCDetId.h
>
13
#include<string>
14
#include <sstream>
15
class
RPCBookFolderStructure
{
16
public
:
17
explicit
RPCBookFolderStructure
() {};
18
~RPCBookFolderStructure
(){};
19
20
std::string
folderStructure
(
RPCDetId
detId){
21
22
std::stringstream myStream ;
23
myStream.str(
""
);
24
25
if
(detId.
region
() == 0)
26
myStream <<
"Barrel/Wheel_"
<<detId.
ring
()<<
"/sector_"
<<detId.
sector
()<<
"/station_"
<<detId.
station
();
27
else
if
(detId.
region
() == -1)
28
myStream <<
"Endcap-/Disk_-"
<<detId.
station
()<<
"/ring_"
<<detId.
ring
()<<
"/sector_"
<<detId.
sector
();
29
else
if
(detId.
region
() == 1)
30
myStream <<
"Endcap+/Disk_"
<<detId.
station
()<<
"/ring_"
<<detId.
ring
()<<
"/sector_"
<<detId.
sector
();
31
else
myStream <<
"Error/Folder/Creation"
;
32
33
return
myStream.str();
34
}
35
};
36
#endif
RPCBookFolderStructure::~RPCBookFolderStructure
~RPCBookFolderStructure()
Definition:
RPCBookFolderStructure.h:18
RPCDetId.h
RPCBookFolderStructure
Definition:
RPCBookFolderStructure.h:15
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
RPCDetId::ring
int ring() const
Definition:
RPCDetId.h:75
RPCDetId
Definition:
RPCDetId.h:19
RPCBookFolderStructure::folderStructure
std::string folderStructure(RPCDetId detId)
Definition:
RPCBookFolderStructure.h:20
RPCDetId::sector
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition:
RPCDetId.h:105
RPCBookFolderStructure::RPCBookFolderStructure
RPCBookFolderStructure()
Definition:
RPCBookFolderStructure.h:17
RPCDetId::region
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition:
RPCDetId.h:66
RPCDetId::station
int station() const
Definition:
RPCDetId.h:99
Generated for CMSSW Reference Manual by
1.8.5