00001 #ifndef DTt0DBValidation_H 00002 #define DTt0DBValidation_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 DTT0; 00031 class TFile; 00032 00033 class DTt0DBValidation : public edm::EDAnalyzer { 00034 public: 00036 DTt0DBValidation(const edm::ParameterSet& pset); 00037 00039 virtual ~DTt0DBValidation(); 00040 00042 //Read the DTGeometry and the t0 DB 00043 void beginJob(const edm::EventSetup& setup); 00044 void analyze(const edm::Event& event, const edm::EventSetup& setup) {} 00045 //Do the real work 00046 void endJob(); 00047 void bookHistos(DTLayerId lId, int firstWire, int lastWire); 00048 00049 protected: 00050 00051 private: 00052 00053 DQMStore* dbe; 00054 edm::ParameterSet parameters; 00055 // Switch for verbosity 00056 std::string metname; 00057 // The DB label 00058 std::string labelDBRef; 00059 std::string labelDB; 00060 // The file which will contain the difference plot 00061 std::string outputFileName; 00062 00063 // The DTGeometry 00064 edm::ESHandle<DTGeometry> dtGeom; 00065 00066 // The t0 map 00067 const DTT0 *tZeroMap; 00068 const DTT0 *tZeroRefMap; 00069 00070 // Map of the t0 and sigma by wire 00071 std::map<DTWireId, std::vector<float> > t0RefMap; 00072 std::map<DTWireId, std::vector<float> > t0Map; 00073 00074 // Map of the t0 difference histos by layer 00075 std::map<DTLayerId, MonitorElement* > t0DiffHistos; 00076 }; 00077 #endif