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:
2009/01/09 17:41:30
Revision:
1.3
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 RPCMonitorDigi::bookDetUnitME(), RPCEfficiencySecond::bookDetUnitSeg(), RPCDqmClient::endRun(), RPCEfficiencySecond::endRun(), and rpcdqmclient::clientTools::getMEs().

                                               { 
        
        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 <<"Region "<<detId.region()<< "not found!!! --- ERROR";

      return myStream.str();
      }