CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQM/RPCMonitorDigi/interface/RPCBookFolderStructure.h

Go to the documentation of this file.
00001 
00009 #ifndef RPCBookFolderStructure_H
00010 #define RPCBookFolderStructure_H
00011 
00012 #include <DataFormats/MuonDetId/interface/RPCDetId.h>
00013 #include<string>
00014 #include <sstream>
00015 class RPCBookFolderStructure {
00016    public:
00017       explicit RPCBookFolderStructure() {};
00018       ~RPCBookFolderStructure(){};
00019 
00020       std::string folderStructure(RPCDetId detId){ 
00021         
00022         std::stringstream myStream ;
00023         myStream.str("");
00024 
00025         if(detId.region() ==  0) 
00026           myStream <<"Barrel/Wheel_"<<detId.ring()<<"/sector_"<<detId.sector()<<"/station_"<<detId.station();
00027         else if(detId.region() == -1) 
00028           myStream <<"Endcap-/Disk_-"<<detId.station()<<"/ring_"<<detId.ring()<<"/sector_"<<detId.sector();
00029         else if(detId.region() ==  1) 
00030           myStream <<"Endcap+/Disk_"<<detId.station()<<"/ring_"<<detId.ring()<<"/sector_"<<detId.sector();
00031         else  myStream <<"Error/Folder/Creation";
00032 
00033       return myStream.str();
00034       }
00035 };
00036 #endif