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 
93 
94  std::vector<std::string> maskedHW;
95 
96 #ifdef DQMGLOBAL
98 #endif
99 
104 public:
105  bool getCSCDetId(const unsigned int crateId, const unsigned int dmbId, CSCDetId& detId) const override {
106  // Check parameter values
107  if (crateId < MIN_CRATE_ID || crateId > MAX_CRATE_ID || dmbId < MIN_DMB_SLOT || dmbId > MAX_DMB_SLOT) {
108  return false;
109  }
110  detId = pcrate->detId(crateId, dmbId, 0, 0);
111  return (detId.rawId() != 0);
112  }
113 
115 
120 protected:
121  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
122  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
123 };
124 
125 #endif
CSCMonitorObject.h
CSCMonitorModule::processDcsScalers
bool processDcsScalers
Definition: CSCMonitorModule.h:89
DIR_CRTINFO
static const char DIR_CRTINFO[]
Definition: CSCMonitorModule.h:62
CSCDQM_Logger.h
CSCCrateMapRcd.h
CSCDQM_Dispatcher.h
DcsStatus.h
CSCMonitorModule::maskedHW
std::vector< std::string > maskedHW
Definition: CSCMonitorModule.h:94
ESHandle.h
edm::Run
Definition: Run.h:45
CSCMonitorModule::inputTag
edm::InputTag inputTag
Definition: CSCMonitorModule.h:87
edm::EDGetTokenT< DcsStatusCollection >
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
CSCMonitorModule::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Begin the run.
Definition: CSCMonitorModule.cc:86
CSCMonitorModule::config
cscdqm::Configuration config
Definition: CSCMonitorModule.h:83
DIR_DCSINFO
static const char DIR_DCSINFO[]
Definition: CSCMonitorModule.h:60
MIN_CRATE_ID
static const unsigned int MIN_CRATE_ID
Definition: CSCMonitorModule.h:64
DQMOneEDAnalyzer.h
CSCDetId.h
CSCMonitorModule::getCSCDetId
bool getCSCDetId(const unsigned int crateId, const unsigned int dmbId, CSCDetId &detId) const override
Definition: CSCMonitorModule.h:105
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
CSCDQM_Configuration.h
Service.h
CSCMonitorModule
Common CSC DQM Module that uses CSCDQM Framework
Definition: CSCMonitorModule.h:73
cscdqm::HistoBookRequest
Definition: CSCDQM_MonitorObjectProvider.h:31
edm::ParameterSet
Definition: ParameterSet.h:36
CSCMonitorModule::ibooker
DQMStore::IBooker * ibooker
Definition: CSCMonitorModule.h:86
CSCDetId
Definition: CSCDetId.h:26
CSCMonitorModule::dispatcher
cscdqm::Dispatcher * dispatcher
Definition: CSCMonitorModule.h:84
CSCMonitorModule::~CSCMonitorModule
~CSCMonitorModule() override
Destructor.
Definition: CSCMonitorModule.cc:60
CSCMonitorModule::prebookEffParams
bool prebookEffParams
Definition: CSCMonitorModule.h:88
CSCMonitorModule::pcrate
const CSCCrateMap * pcrate
Definition: CSCMonitorModule.h:92
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
InputTag.h
cscdqm::Configuration
CSCDQM Framework Global Configuration.
Definition: CSCDQM_Configuration.h:233
CSCMonitorModule::bookMonitorObject
cscdqm::MonitorObject * bookMonitorObject(const cscdqm::HistoBookRequest &p_req) override
Book Monitor Object on Request.
Definition: CSCMonitorModule.cc:147
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
CSCMonitorModule::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Book Histograms in the beginRun.
Definition: CSCMonitorModule.cc:121
cscdqm::Dispatcher
CSCDQM Framework frontend and Histogram Cache controller.
Definition: CSCDQM_Dispatcher.h:115
CSCCrateMap::detId
CSCDetId detId(int vme, int dmb, int cfeb, int layer=0) const
Definition: CSCCrateMap.cc:9
MAX_DMB_SLOT
static const unsigned int MAX_DMB_SLOT
Definition: CSCMonitorModule.h:67
EventSetup.h
INPUT_TAG_LABEL
static const char INPUT_TAG_LABEL[]
Global stuff.
Definition: CSCMonitorModule.h:58
cscdqm::MonitorObject
Monitoring Object interface used to cover Root object and provide common interface to EventProcessor ...
Definition: CSCDQM_MonitorObject.h:35
CSCCrateMap
Definition: CSCCrateMap.h:11
MIN_DMB_SLOT
static const unsigned int MIN_DMB_SLOT
Definition: CSCMonitorModule.h:66
ConsumesCollector.h
DIR_EVENTINFO
static const char DIR_EVENTINFO[]
Definition: CSCMonitorModule.h:59
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
MAX_CRATE_ID
static const unsigned int MAX_CRATE_ID
Definition: CSCMonitorModule.h:65
DIR_DAQINFO
static const char DIR_DAQINFO[]
Definition: CSCMonitorModule.h:61
CSCMonitorModule::CSCMonitorModule
CSCMonitorModule(const edm::ParameterSet &ps)
Constructor.
Definition: CSCMonitorModule.cc:25
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
cscdqm::MonitorObjectProvider
Interface for Histogram providing objects. Used by Event Processor to retrieve MonitorObject 's and b...
Definition: CSCDQM_MonitorObjectProvider.h:124
CSCCrateMap.h