CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
RPCBookFolderStructure Class Reference

#include <RPCBookFolderStructure.h>

Public Member Functions

std::string folderStructure (RPCDetId detId)
 
 RPCBookFolderStructure ()
 
 ~RPCBookFolderStructure ()
 

Detailed Description

Date:
2010/08/05 14:43:40
Revision:
1.4
Author
Anna Cimmino (INFN Napoli)

Create folder structure for DQM histo saving

Definition at line 15 of file RPCBookFolderStructure.h.

Constructor & Destructor Documentation

RPCBookFolderStructure::RPCBookFolderStructure ( )
inlineexplicit

Definition at line 17 of file RPCBookFolderStructure.h.

17 {};
RPCBookFolderStructure::~RPCBookFolderStructure ( )
inline

Definition at line 18 of file RPCBookFolderStructure.h.

18 {};

Member Function Documentation

std::string RPCBookFolderStructure::folderStructure ( RPCDetId  detId)
inline

Definition at line 20 of file RPCBookFolderStructure.h.

References RPCDetId::region(), RPCDetId::ring(), RPCDetId::sector(), and RPCDetId::station().

Referenced by RPCEfficiencySecond::bookDetUnitSeg(), RPCMonitorDigi::bookRollME(), rpcdqmclient::clientTools::getMEs(), and RPCDqmClient::getMonitorElements().

20  {
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  }
int ring() const
Definition: RPCDetId.h:74
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition: RPCDetId.h:104
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:65
int station() const
Definition: RPCDetId.h:98