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

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

648  {
649  char cRegion;
650  char cChType = (nIdxCh % 2 == 0 ? 'L' : 'S');
651  Int_t nLayer;
652 
653  if (strSuffix.find("-M-") != std::string::npos)
654  cRegion = 'M';
655  else if (strSuffix.find("-P-") != std::string::npos)
656  cRegion = 'P';
657  else
658  return "";
659 
660  if (strSuffix.find("-L1") != std::string::npos)
661  nLayer = 1;
662  else if (strSuffix.find("-L2") != std::string::npos)
663  nLayer = 2;
664  else
665  return "";
666 
667  return Form(
668  "GEM/Digis/occupancy_GE11-%c-L%i/occ_GE11-%c-%02iL%i-%c", cRegion, nLayer, cRegion, nIdxCh, nLayer, cChType);
669 }

◆ getNameChamberOccGE21()

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

Definition at line 672 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

672  {
673  char cRegion;
674  char cChType = (nIdxCh % 2 == 0 ? 'L' : 'S');
675  Int_t nLayer;
676 
677  if (strSuffix.find("-M-") != std::string::npos)
678  cRegion = 'M';
679  else if (strSuffix.find("-P-") != std::string::npos)
680  cRegion = 'P';
681  else
682  return "";
683 
684  if (strSuffix.find("-L1") != std::string::npos)
685  nLayer = 1;
686  else if (strSuffix.find("-L2") != std::string::npos)
687  nLayer = 2;
688  else
689  return "";
690 
691  return Form(
692  "GEM/Digis/occupancy_GE21-%c-L%i/occ_GE21-%c-%02iL%i-%c", cRegion, nLayer, cRegion, nIdxCh, nLayer, cChType);
693 }

◆ getNameChamberOccNull()

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

Definition at line 695 of file GEMDQMHarvester.cc.

Referenced by GEMDQMHarvester::createInactiveChannelFracHist().

695  {
696  return ""; // For an initialization
697 }

◆ s_filler__LINE__()

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

◆ s_maker__LINE__()

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