CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCBookFolderStructure.h
Go to the documentation of this file.
1 
9 #ifndef RPCBookFolderStructure_H
10 #define RPCBookFolderStructure_H
11 
13 #include<string>
14 #include <sstream>
16  public:
17  explicit 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
int ring() const
Definition: RPCDetId.h:76
std::string folderStructure(RPCDetId detId)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition: RPCDetId.h:106
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:67
int station() const
Definition: RPCDetId.h:100