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 683 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

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

◆ getNameChamberOccGE21()

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

Definition at line 707 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

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

◆ getNameChamberOccNull()

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

Definition at line 757 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

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

◆ 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