CMS 3D CMS Logo

CSCMonitorModule.h
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: CSCMonitorModule.h
5  *
6  * Description: Updated CSC Monitor module
7  *
8  * Version: 1.0
9  * Created: 11/13/2008 01:36:45 PM
10  * Revision: none
11  * Compiler: gcc
12  *
13  * Author: Valdas Rapsevicius (VR), valdas.rapsevicius@cern.ch
14  * Company: CERN, CH
15  *
16  * =====================================================================================
17  */
18 
19 #ifndef CSCMonitorModule_H
20 #define CSCMonitorModule_H
21 
23 #include <iostream>
24 #include <cstring>
25 #include <vector>
26 #include <map>
27 #include <set>
28 
31 
33 
37 
38 #ifdef DQMGLOBAL
41 #endif
42 
48 
50 #include "CSCDQM_Logger.h"
51 #include "CSCDQM_Configuration.h"
52 #include "CSCDQM_Dispatcher.h"
53 
55 #include "CSCMonitorObject.h"
56 
58 static const char INPUT_TAG_LABEL[] = "source";
59 static const char DIR_EVENTINFO[] = "CSC/EventInfo/";
60 static const char DIR_DCSINFO[] = "CSC/EventInfo/DCSContents/";
61 static const char DIR_DAQINFO[] = "CSC/EventInfo/DAQContents/";
62 static const char DIR_CRTINFO[] = "CSC/EventInfo/CertificationContents/";
63 
64 static const unsigned int MIN_CRATE_ID = 1;
65 static const unsigned int MAX_CRATE_ID = 60;
66 static const unsigned int MIN_DMB_SLOT = 1;
67 static const unsigned int MAX_DMB_SLOT = 10;
68 
78 public:
80  ~CSCMonitorModule() override;
81 
82 private:
85  // DQMStore *dbe;
90 
92 
95 
96  std::vector<std::string> maskedHW;
97 
98 #ifdef DQMGLOBAL
100 #endif
101 
106 public:
107  bool getCSCDetId(const unsigned int crateId, const unsigned int dmbId, CSCDetId& detId) const override {
108  // Check parameter values
109  if (crateId < MIN_CRATE_ID || crateId > MAX_CRATE_ID || dmbId < MIN_DMB_SLOT || dmbId > MAX_DMB_SLOT) {
110  return false;
111  }
112  detId = pcrate->detId(crateId, dmbId, 0, 0);
113  return (detId.rawId() != 0);
114  }
115 
117 
122 protected:
123  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
124  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
125 };
126 
127 #endif
cscdqm::Configuration config
static const unsigned int MAX_CRATE_ID
const edm::ESGetToken< CSCCrateMap, CSCCrateMapRcd > hcrateToken_
static const char DIR_DAQINFO[]
CSCMonitorModule(const edm::ParameterSet &ps)
Constructor.
Monitoring Object interface used to cover Root object and provide common interface to EventProcessor ...
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Book Histograms in the beginRun.
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Begin the run.
cscdqm::Dispatcher * dispatcher
std::vector< std::string > maskedHW
CSCDQM Framework frontend and Histogram Cache controller.
bool getCSCDetId(const unsigned int crateId, const unsigned int dmbId, CSCDetId &detId) const override
Common CSC DQM Module that uses CSCDQM Framework
CSCDQM Framework Global Configuration.
static const unsigned int MIN_CRATE_ID
static const char DIR_DCSINFO[]
const CSCCrateMap * pcrate
static const char INPUT_TAG_LABEL[]
Global stuff.
static const char DIR_EVENTINFO[]
edm::InputTag inputTag
static const unsigned int MIN_DMB_SLOT
CSCDetId detId(int vme, int dmb, int cfeb, int layer=0) const
Definition: CSCCrateMap.cc:9
static const char DIR_CRTINFO[]
~CSCMonitorModule() override
Destructor.
DQMStore::IBooker * ibooker
cscdqm::MonitorObject * bookMonitorObject(const cscdqm::HistoBookRequest &p_req) override
Book Monitor Object on Request.
Interface for Histogram providing objects. Used by Event Processor to retrieve MonitorObject &#39;s and b...
static const unsigned int MAX_DMB_SLOT
Definition: Run.h:45