00001 #ifndef SiStripDQMProfileToTkMapConverter_H 00002 #define SiStripDQMProfileToTkMapConverter_H 00003 00004 00005 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00006 #include "FWCore/Utilities/interface/Exception.h" 00007 #include "FWCore/Framework/interface/ESHandle.h" 00008 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00009 #include "FWCore/Framework/interface/EDAnalyzer.h" 00010 00011 #include "FWCore/ParameterSet/interface/FileInPath.h" 00012 #include "CalibTracker/SiStripCommon/interface/SiStripDetInfoFileReader.h" 00013 00014 #include "DQMServices/Core/interface/DQMStore.h" 00015 #include "DQMServices/Core/interface/MonitorElement.h" 00016 00017 #include "DQM/SiStripCommon/interface/TkHistoMap.h" 00018 #include "CommonTools/TrackerMap/interface/TrackerMap.h" 00019 00020 #include <vector> 00021 #include <iostream> 00022 #include <string.h> 00023 #include <sstream> 00024 00025 00026 class SiStripDQMProfileToTkMapConverter : public edm::EDAnalyzer { 00027 00028 public: 00029 00030 SiStripDQMProfileToTkMapConverter(const edm::ParameterSet&); 00031 ~SiStripDQMProfileToTkMapConverter(); 00032 00033 private: 00034 00035 //Will be called at the beginning of the job 00036 void beginRun(const edm::Run &, const edm::EventSetup &); 00037 void analyze(const edm::Event&, const edm::EventSetup&){}; 00038 void endJob(); 00039 00040 00041 private: 00042 const edm::ParameterSet conf_; 00043 edm::FileInPath fp_; 00044 SiStripDetInfoFileReader* reader; 00045 std::string filename, dirpath; 00046 std::string TkMapFileName_; 00047 00048 DQMStore* dqmStore_; 00049 00050 00051 TkHistoMap *tkhisto; 00052 TrackerMap * tkMap; 00053 }; 00054 #endif