00001 #ifndef DQM_RPCMonitorModule_RPCMonitorRaw_H 00002 #define DQM_RPCMonitorModule_RPCMonitorRaw_H 00003 00007 #include "FWCore/Framework/interface/EDAnalyzer.h" 00008 #include "FWCore/Framework/interface/Event.h" 00009 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00010 00011 #include "FWCore/Utilities/interface/InputTag.h" 00012 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00013 00014 #include "DQMServices/Core/interface/MonitorElement.h" 00015 #include "FWCore/ServiceRegistry/interface/Service.h" 00016 #include <bitset> 00017 00018 class RPCMonitorRaw : public edm::EDAnalyzer { 00019 public: 00020 00021 explicit RPCMonitorRaw( const edm::ParameterSet& cfg); 00022 virtual ~RPCMonitorRaw(); 00023 00024 virtual void beginJob( ); 00025 virtual void endJob(); 00026 00028 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00029 00030 private: 00031 00032 00033 MonitorElement* me_t[3]; 00034 MonitorElement* me_e[3]; 00035 MonitorElement* me_mapGoodEvents; 00036 MonitorElement* me_mapBadEvents; 00037 00038 edm::ParameterSet theConfig; 00039 std::vector<MonitorElement* > theWatchedErrorHistos[3]; // histos with physical locations 00040 // (RMB,LINK)of selected ReadoutErrors 00041 00042 unsigned int theWatchedErrorHistoPos[10]; // for a give error type show its position 00043 // (1..10) in theWatchedErrorHistos 00044 // to get index one has to subtract -1 00045 // 0 is not selected error type 00046 00047 }; 00048 00049 #endif 00050 00051