CMS 3D CMS Logo

Public Member Functions

RPCBookFolderStructure Class Reference

#include <RPCBookFolderStructure.h>

List of all members.

Public Member Functions

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

Detailed Description

Date:
2011/03/02 16:45:36
Revision:
1.5
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 ( ) [inline, explicit]

Definition at line 17 of file RPCBookFolderStructure.h.

{};
RPCBookFolderStructure::~RPCBookFolderStructure ( ) [inline]

Definition at line 18 of file RPCBookFolderStructure.h.

{};

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().

                                               { 
        
        std::stringstream myStream ;
        myStream.str("");

        if(detId.region() ==  0) 
          myStream <<"Barrel/Wheel_"<<detId.ring()<<"/sector_"<<detId.sector()<<"/station_"<<detId.station();
        else if(detId.region() == -1) 
          myStream <<"Endcap-/Disk_-"<<detId.station()<<"/ring_"<<detId.ring()<<"/sector_"<<detId.sector();
        else if(detId.region() ==  1) 
          myStream <<"Endcap+/Disk_"<<detId.station()<<"/ring_"<<detId.ring()<<"/sector_"<<detId.sector();
        else  myStream <<"Error/Folder/Creation";

      return myStream.str();
      }