00001 #ifndef RecoTBCalo_EcalTBTDCReconstructor_EcalTBTDCRecInfoProducer_HH 00002 #define RecoTBCalo_EcalTBTDCReconstructor_EcalTBTDCRecInfoProducer_HH 00003 00004 #include "FWCore/Framework/interface/EDProducer.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 "RecoTBCalo/EcalTBTDCReconstructor/interface/EcalTBTDCRecInfoAlgo.h" 00013 00014 #include <vector> 00015 00016 class EcalTBTDCRecInfoProducer : public edm::EDProducer { 00017 00018 public: 00019 00020 explicit EcalTBTDCRecInfoProducer(const edm::ParameterSet& ps); 00021 virtual ~EcalTBTDCRecInfoProducer() ; 00022 virtual void produce(edm::Event& e, const edm::EventSetup& es); 00023 00024 private: 00025 00026 std::string rawInfoProducer_; // name of module/plugin/producer making digis 00027 std::string rawInfoCollection_; // secondary name given to collection of digis 00028 std::string eventHeaderProducer_; // name of module/plugin/producer making TBeventheader 00029 std::string eventHeaderCollection_; // secondary name given to collection of TBeventheader 00030 std::string recInfoCollection_; // secondary name to be given to collection of hits 00031 bool use2004OffsetConvention_; 00032 00033 EcalTBTDCRecInfoAlgo *algo_; 00034 00035 }; 00036 #endif