CMS 3D CMS Logo

Classes | Functions
GEMDQMHarvester.cc File Reference
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
#include <TH2F.h>
#include <TFile.h>
#include <TDirectoryFile.h>
#include <TKey.h>

Go to the source code of this file.

Classes

class  GEMDQMHarvester
 
class  GEMDQMHarvester::NumStatus
 
struct  GEMDQMHarvester::PreStatusInfo
 

Functions

std::string getNameChamberOccGE11 (std::string strSuffix, Int_t nIdxCh)
 
std::string getNameChamberOccGE21 (std::string strSuffix, Int_t nIdxCh)
 
std::string getNameChamberOccNull (std::string strSuffix, Int_t nIdxChamber)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< GEMDQMHarvester > > s_filler_0__LINE__ ("GEMDQMHarvester")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< GEMDQMHarvester > > s_maker__LINE__ ("GEMDQMHarvester")
 

Function Documentation

◆ getNameChamberOccGE11()

std::string getNameChamberOccGE11 ( std::string  strSuffix,
Int_t  nIdxCh 
)

Definition at line 682 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

682  {
683  char cRegion;
684  char cChType = (nIdxCh % 2 == 0 ? 'L' : 'S');
685  Int_t nLayer;
686 
687  if (strSuffix.find("-M-") != std::string::npos)
688  cRegion = 'M';
689  else if (strSuffix.find("-P-") != std::string::npos)
690  cRegion = 'P';
691  else
692  return "";
693 
694  if (strSuffix.find("-L1") != std::string::npos)
695  nLayer = 1;
696  else if (strSuffix.find("-L2") != std::string::npos)
697  nLayer = 2;
698  else
699  return "";
700 
701  return Form(
702  "GEM/Digis/occupancy_GE11-%c-L%i/occ_GE11-%c-%02iL%i-%c", cRegion, nLayer, cRegion, nIdxCh, nLayer, cChType);
703 }

◆ getNameChamberOccGE21()

std::string getNameChamberOccGE21 ( std::string  strSuffix,
Int_t  nIdxCh 
)

Definition at line 706 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

706  {
707  char cRegion;
708  char cChType = (nIdxCh % 2 == 0 ? 'L' : 'S');
709  Int_t nLayer;
710  Int_t nModule;
711 
712  if (strSuffix.find("-M-") != std::string::npos)
713  cRegion = 'M';
714  else if (strSuffix.find("-P-") != std::string::npos)
715  cRegion = 'P';
716  else
717  return "";
718 
719  if (strSuffix.find("-L1") != std::string::npos)
720  nLayer = 1;
721  else if (strSuffix.find("-L2") != std::string::npos)
722  nLayer = 2;
723  else
724  return "";
725 
726  if (strSuffix.find("-M1") != std::string::npos)
727  nModule = 1;
728  else if (strSuffix.find("-M2") != std::string::npos)
729  nModule = 2;
730  else if (strSuffix.find("-M3") != std::string::npos)
731  nModule = 3;
732  else if (strSuffix.find("-M4") != std::string::npos)
733  nModule = 4;
734  else if (strSuffix.find("-M5") != std::string::npos)
735  nModule = 5;
736  else if (strSuffix.find("-M6") != std::string::npos)
737  nModule = 6;
738  else if (strSuffix.find("-M7") != std::string::npos)
739  nModule = 7;
740  else if (strSuffix.find("-M8") != std::string::npos)
741  nModule = 8;
742  else
743  return "";
744 
745  return Form("GEM/Digis/occupancy_GE21-%c-L%i-M%i/occ_GE21-%c-%02iL%i-M%i-%c",
746  cRegion,
747  nLayer,
748  nModule,
749  cRegion,
750  nIdxCh,
751  nLayer,
752  nModule,
753  cChType);
754 }

◆ getNameChamberOccNull()

std::string getNameChamberOccNull ( std::string  strSuffix,
Int_t  nIdxChamber 
)

Definition at line 756 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

756  {
757  return ""; // For an initialization
758 }

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< GEMDQMHarvester > > s_filler_0__LINE__ ( "GEMDQMHarvester"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< GEMDQMHarvester > > s_maker__LINE__ ( "GEMDQMHarvester"  )
static