00001 #ifndef DTnoiseDBValidation_H 00002 #define DTnoiseDBValidation_H 00003 00012 #include "FWCore/Framework/interface/Frameworkfwd.h" 00013 #include "FWCore/Framework/interface/EDAnalyzer.h" 00014 #include "FWCore/Framework/interface/ESHandle.h" 00015 #include "FWCore/Framework/interface/MakerMacros.h" 00016 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00017 #include "FWCore/ServiceRegistry/interface/Service.h" 00018 #include "DQMServices/Core/interface/DQMStore.h" 00019 #include "DQMServices/Core/interface/MonitorElement.h" 00020 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h" 00021 00022 #include "DataFormats/MuonDetId/interface/DTLayerId.h" 00023 #include "DataFormats/MuonDetId/interface/DTWireId.h" 00024 #include "Geometry/DTGeometry/interface/DTGeometry.h" 00025 00026 #include <string> 00027 #include <fstream> 00028 #include <vector> 00029 00030 class DTStatusFlag; 00031 class TFile; 00032 00033 class DTnoiseDBValidation : public edm::EDAnalyzer { 00034 public: 00036 DTnoiseDBValidation(const edm::ParameterSet& pset); 00037 00039 virtual ~DTnoiseDBValidation(); 00040 00042 //Read the DTGeometry and the t0 DB 00043 void beginJob(); 00044 void beginRun(const edm::Run& run, const edm::EventSetup& setup); 00045 00046 void analyze(const edm::Event& event, const edm::EventSetup& setup) {} 00047 //Do the real work 00048 void endJob(); 00049 00050 protected: 00051 00052 private: 00053 00054 DQMStore* dbe; 00055 edm::ParameterSet parameters; 00056 // Switch for verbosity 00057 std::string metname; 00058 // The DB label 00059 std::string labelDBRef; 00060 std::string labelDB; 00061 // The file which will contain the difference plot 00062 std::string outputFileName; 00063 00064 // The DTGeometry 00065 edm::ESHandle<DTGeometry> dtGeom; 00066 00067 // The noise map 00068 const DTStatusFlag *noiseMap; 00069 const DTStatusFlag *noiseRefMap; 00070 00071 //the total number of noisy cell 00072 int noisyCells_Ref; 00073 int noisyCells_toTest; 00074 // the histos 00075 MonitorElement * diffHisto; 00076 MonitorElement * wheelHisto; 00077 MonitorElement * stationHisto; 00078 MonitorElement * sectorHisto; 00079 MonitorElement * layerHisto; 00080 00081 }; 00082 #endif 00083