00001 #ifndef HcalLedAnalyzer_H 00002 #define HcalLedAnalyzer_H 00003 00004 #include "FWCore/Framework/interface/Frameworkfwd.h" 00005 #include "FWCore/Framework/interface/EDAnalyzer.h" 00006 #include "FWCore/Framework/interface/Event.h" 00007 //#include "FWCore/Framework/interface/MakerMacros.h" 00008 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00009 #include "FWCore/ServiceRegistry/interface/Service.h" 00010 #include "FWCore/Framework/interface/ESHandle.h" 00011 00012 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h" 00013 #include "CalibCalorimetry/HcalAlgos/interface/HcalLedAnalysis.h" 00014 00015 #include <memory> 00016 #include <iostream> 00017 #include <fstream> 00018 #include <vector> 00019 #include <string> 00020 00021 class HcalLedAnalyzer: public edm::EDAnalyzer{ 00022 00023 public: 00024 00026 HcalLedAnalyzer(const edm::ParameterSet& ps); 00027 00029 ~HcalLedAnalyzer(); 00030 00031 protected: 00032 00034 void analyze(const edm::Event& e, const edm::EventSetup& c); 00035 00036 // BeginJob 00037 void beginJob(); 00038 00039 // EndJob 00040 void endJob(void); 00041 00042 private: 00043 00044 int m_ievt; 00045 int led_sample; 00046 // string m_outputFileROOT; 00047 HcalLedAnalysis* m_ledAnal; 00048 HcalPedestals* m_inputPeds; 00049 00050 // int m_startSample; 00051 // int m_endSample; 00052 00053 std::string m_inputPedestals_source; 00054 std::string m_inputPedestals_tag; 00055 int m_inputPedestals_run; 00056 }; 00057 00058 #endif