Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:13

0001 #ifndef DQM_RPCMonitorModule_RPCMonitorRaw_H
0002 #define DQM_RPCMonitorModule_RPCMonitorRaw_H
0003 /** \class RPCMonitorRaw 
0004  **  Analyse errors in raw data stream as RPCRawDataCounts produced by RPCRawToDigi  
0005  **/
0006 
0007 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0008 #include "DQMServices/Core/interface/DQMStore.h"
0009 
0010 #include "FWCore/Framework/interface/Event.h"
0011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0012 
0013 #include "DataFormats/RPCDigi/interface/RPCRawDataCounts.h"
0014 
0015 class RPCMonitorRaw : public DQMEDAnalyzer {
0016 public:
0017   explicit RPCMonitorRaw(const edm::ParameterSet& cfg);
0018   ~RPCMonitorRaw() override;
0019 
0020   void analyze(const edm::Event&, const edm::EventSetup&) override;
0021   void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0022 
0023 private:
0024   MonitorElement* me_t[3];
0025   MonitorElement* me_e[3];
0026   MonitorElement* me_mapGoodEvents;
0027   MonitorElement* me_mapBadEvents;
0028 
0029   edm::ParameterSet theConfig;
0030   std::vector<MonitorElement*> theWatchedErrorHistos[3];  // histos with physical locations
0031                                                           // (RMB,LINK)of selected  ReadoutErrors
0032 
0033   unsigned int theWatchedErrorHistoPos[10];  // for a give error type show its position
0034                                              // (1..10) in theWatchedErrorHistos
0035                                              // to get index one has to subtract -1
0036                                              // 0 is not selected error type
0037 
0038   edm::EDGetTokenT<RPCRawDataCounts> rpcRawDataCountsTag_;
0039 };
0040 
0041 #endif