CMS 3D CMS Logo

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

Author
Anna Cimmino (INFN Napoli)

Create folder structure for DQM histo saving

Definition at line 13 of file RPCBookFolderStructure.h.

Constructor & Destructor Documentation

◆ RPCBookFolderStructure()

RPCBookFolderStructure::RPCBookFolderStructure ( )
inlineexplicit

Definition at line 15 of file RPCBookFolderStructure.h.

15 {};

◆ ~RPCBookFolderStructure()

RPCBookFolderStructure::~RPCBookFolderStructure ( )
inline

Definition at line 16 of file RPCBookFolderStructure.h.

16 {};

Member Function Documentation

◆ folderStructure()

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

Definition at line 18 of file RPCBookFolderStructure.h.

18  {
19  std::stringstream myStream;
20  myStream.str("");
21 
22  if (detId.region() == 0)
23  myStream << "Barrel/Wheel_" << detId.ring() << "/sector_" << detId.sector() << "/station_" << detId.station();
24  else if (detId.region() == -1)
25  myStream << "Endcap-/Disk_-" << detId.station() << "/ring_" << detId.ring() << "/sector_" << detId.sector();
26  else if (detId.region() == 1)
27  myStream << "Endcap+/Disk_" << detId.station() << "/ring_" << detId.ring() << "/sector_" << detId.sector();
28  else
29  myStream << "Error/Folder/Creation";
30 
31  return myStream.str();
32  }

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

Referenced by RPCMonitorDigi::bookRollME(), and RPCDqmClient::getMonitorElements().

RPCDetId::station
int station() const
Definition: RPCDetId.h:78
RPCDetId::region
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:53
RPCDetId::ring
int ring() const
Definition: RPCDetId.h:59
RPCDetId::sector
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
Definition: RPCDetId.h:81