00001 #ifndef RecoTBCalo_EcalTBTDCReconstructor_EcalTBTDCRawInfoDumper_HH 00002 #define RecoTBCalo_EcalTBTDCReconstructor_EcalTBTDCRawInfoDumper_HH 00003 00004 #include "FWCore/Framework/interface/EDAnalyzer.h" 00005 #include "DataFormats/Common/interface/EDProduct.h" 00006 #include "FWCore/Framework/interface/Event.h" 00007 #include "DataFormats/Common/interface/Handle.h" 00008 00009 #include "FWCore/Framework/interface/EventSetup.h" 00010 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00011 00012 #include <vector> 00013 #include <string> 00014 //#include "TTree.h" 00015 #include "TH1.h" 00016 #include "TGraph.h" 00017 #include "TH2.h" 00018 class EcalTBTDCRawInfoDumper : public edm::EDAnalyzer { 00019 00020 public: 00021 00022 explicit EcalTBTDCRawInfoDumper(const edm::ParameterSet& ps); 00023 virtual ~EcalTBTDCRawInfoDumper() ; 00024 virtual void analyze( const edm::Event&, const edm::EventSetup& ); 00025 virtual void beginJob(edm::EventSetup const&); 00026 virtual void endJob(); 00027 00028 private: 00029 00030 std::string rawInfoProducer_; // name of module/plugin/producer making digis 00031 std::string rawInfoCollection_; // secondary name given to collection of digis 00032 std::string rootfile_; 00033 TH1F* h_TDCrawValue_; 00034 00035 }; 00036 #endif