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 
20 #ifndef CSCMonitorModule_H
21 #define CSCMonitorModule_H
22 
24 #include <iostream>
25 #include <cstring>
26 #include <vector>
27 #include <map>
28 #include <set>
29 
33 
37 
41 
42 #ifdef DQMGLOBAL
45 #endif
46 
52 
54 #include "CSCDQM_Logger.h"
55 #include "CSCDQM_Configuration.h"
56 #include "CSCDQM_Dispatcher.h"
57 
59 #include "CSCMonitorObject.h"
60 
62 static const char INPUT_TAG_LABEL[] = "source";
63 static const char DIR_EVENTINFO[] = "CSC/EventInfo/";
64 static const char DIR_DCSINFO[] = "CSC/EventInfo/DCSContents/";
65 static const char DIR_DAQINFO[] = "CSC/EventInfo/DAQContents/";
66 static const char DIR_CRTINFO[] = "CSC/EventInfo/CertificationContents/";
67 
68 static const unsigned int MIN_CRATE_ID = 1;
69 static const unsigned int MAX_CRATE_ID = 60;
70 static const unsigned int MIN_DMB_SLOT = 1;
71 static const unsigned int MAX_DMB_SLOT = 10;
72 
78 
83  public:
84 
86  virtual ~CSCMonitorModule();
87 
88  private:
89 
92  // DQMStore *dbe;
97 
100 
101  std::vector<std::string> maskedHW;
102 
103 #ifdef DQMGLOBAL
105 #endif
106 
111  public:
112 
113  bool getCSCDetId(const unsigned int crateId, const unsigned int dmbId, CSCDetId& detId) const override {
114  // Check parameter values
115  if (crateId < MIN_CRATE_ID || crateId > MAX_CRATE_ID || dmbId < MIN_DMB_SLOT || dmbId > MAX_DMB_SLOT) {
116  return false;
117  }
118  detId = pcrate->detId(crateId, dmbId, 0, 0);
119  return (detId.rawId() != 0);
120  }
121 
123 
128  protected:
129 
130  void beginJob() { }
131  // void beginRun(const edm::Run& r, const edm::EventSetup& c);
132  void setup() { }
133  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
134  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) override { }
135  void endRun(const edm::Run& r, const edm::EventSetup& c) override { }
136  void endJob() { }
137  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
138 
139 };
140 
141 #endif
cscdqm::Configuration config
static const unsigned int MAX_CRATE_ID
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 ...
CSCDetId detId(int vme, int dmb, int cfeb, int layer=0) const
Definition: CSCCrateMap.cc:11
virtual ~CSCMonitorModule()
Destructor.
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.
Common CSC DQM Module that uses CSCDQM Framework.
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
CSCDQM Framework Global Configuration.
bool getCSCDetId(const unsigned int crateId, const unsigned int dmbId, CSCDetId &detId) const override
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
void endRun(const edm::Run &r, const edm::EventSetup &c) override
static const unsigned int MIN_DMB_SLOT
static const char DIR_CRTINFO[]
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
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:42