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

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

693  {
694  char cRegion;
695  char cChType = (nIdxCh % 2 == 0 ? 'L' : 'S');
696  Int_t nLayer;
697 
698  if (strSuffix.find("-M-") != std::string::npos)
699  cRegion = 'M';
700  else if (strSuffix.find("-P-") != std::string::npos)
701  cRegion = 'P';
702  else
703  return "";
704 
705  if (strSuffix.find("-L1") != std::string::npos)
706  nLayer = 1;
707  else if (strSuffix.find("-L2") != std::string::npos)
708  nLayer = 2;
709  else
710  return "";
711 
712  return Form(
713  "GEM/Digis/occupancy_GE11-%c-L%i/occ_GE11-%c-%02iL%i-%c", cRegion, nLayer, cRegion, nIdxCh, nLayer, cChType);
714 }

◆ getNameChamberOccGE21()

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

Definition at line 717 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

717  {
718  char cRegion;
719  char cChType = (nIdxCh % 2 == 0 ? 'L' : 'S');
720  Int_t nLayer;
721 
722  if (strSuffix.find("-M-") != std::string::npos)
723  cRegion = 'M';
724  else if (strSuffix.find("-P-") != std::string::npos)
725  cRegion = 'P';
726  else
727  return "";
728 
729  if (strSuffix.find("-L1") != std::string::npos)
730  nLayer = 1;
731  else if (strSuffix.find("-L2") != std::string::npos)
732  nLayer = 2;
733  else
734  return "";
735 
736  return Form(
737  "GEM/Digis/occupancy_GE21-%c-L%i/occ_GE21-%c-%02iL%i-%c", cRegion, nLayer, cRegion, nIdxCh, nLayer, cChType);
738 }

◆ getNameChamberOccNull()

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

Definition at line 740 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

740  {
741  return ""; // For an initialization
742 }

◆ 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