00001 #ifndef HcalPedestalAnalyzer_H 00002 #define HcalPedestalAnalyzer_H 00003 00004 /* 00005 * \file HcalPedestalAnalyzer.h 00006 * 00007 * $Date: 2009/12/17 21:09:32 $ 00008 * $Revision: 1.3 $ 00009 * \author S. Stoynev / W. Fisher 00010 * 00011 */ 00012 00013 #include "FWCore/Framework/interface/Frameworkfwd.h" 00014 #include "FWCore/Framework/interface/EDAnalyzer.h" 00015 #include "FWCore/Framework/interface/Event.h" 00016 //#include "FWCore/Framework/interface/MakerMacros.h" 00017 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00018 #include "FWCore/ServiceRegistry/interface/Service.h" 00019 #include "FWCore/Framework/interface/ESHandle.h" 00020 00021 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h" 00022 #include "CalibCalorimetry/HcalAlgos/interface/HcalPedestalAnalysis.h" 00023 00024 /* 00025 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h" 00026 #include "CalibFormats/HcalObjects/interface/HcalCoderDb.h" 00027 #include "CalibFormats/HcalObjects/interface/HcalCalibrations.h" 00028 #include "CalibFormats/HcalObjects/interface/HcalDbService.h" 00029 #include "CalibFormats/HcalObjects/interface/HcalDbRecord.h" 00030 #include "CondFormats/HcalObjects/interface/HcalQIECoder.h" 00031 #include "CondFormats/HcalObjects/interface/HcalPedestals.h" 00032 #include "CondFormats/HcalObjects/interface/HcalPedestalWidths.h" 00033 */ 00034 00035 #include <memory> 00036 #include <iostream> 00037 #include <fstream> 00038 #include <vector> 00039 #include <string> 00040 00041 class HcalPedestalAnalyzer: public edm::EDAnalyzer{ 00042 00043 public: 00044 00046 HcalPedestalAnalyzer(const edm::ParameterSet& ps); 00047 00049 ~HcalPedestalAnalyzer(); 00050 00051 protected: 00052 //void SampleAnalyzer_in(const edm::ParameterSet& ps); 00053 //void SampleAnalyzer_out(); 00054 00056 void analyze(const edm::Event& e, const edm::EventSetup& c); 00057 00058 // BeginJob 00059 void beginJob(); 00060 00061 // EndJob 00062 void endJob(void); 00063 00064 private: 00065 00066 int m_ievt; 00067 int ped_sample; 00068 // string m_outputFileROOT; 00069 //string m_outputFileMean; 00070 //string m_outputFileWidth; 00071 HcalPedestalAnalysis* m_pedAnal; 00072 00073 int m_startSample; 00074 int m_endSample; 00075 00076 std::string m_inputPedestals_source; 00077 std::string m_inputPedestals_tag; 00078 int m_inputPedestals_run; 00079 std::string m_inputPedestalWidths_source; 00080 std::string m_inputPedestalWidths_tag; 00081 int m_inputPedestalWidths_run; 00082 std::string m_outputPedestals_dest; 00083 std::string m_outputPedestals_tag; 00084 int m_outputPedestals_run; 00085 std::string m_outputPedestalWidths_dest; 00086 std::string m_outputPedestalWidths_tag; 00087 int m_outputPedestalWidths_run; 00088 }; 00089 00090 #endif