![]() |
![]() |
00001 #ifndef EcaltrigprimProducer_h 00002 #define EcaltrigprimProducer_h 00003 00021 #include "FWCore/Framework/interface/EDProducer.h" 00022 #include "FWCore/Framework/interface/Event.h" 00023 #include "FWCore/Framework/interface/EventSetup.h" 00024 00025 #include "DataFormats/Common/interface/Handle.h" 00026 #include "DataFormats/Common/interface/EDProduct.h" 00027 00028 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00029 00030 class TFile; 00031 class TTree; 00032 class EcalTrigPrimFunctionalAlgo; 00033 00034 class EcalTrigPrimProducer : public edm::EDProducer 00035 { 00036 public: 00037 00038 explicit EcalTrigPrimProducer(const edm::ParameterSet& conf); 00039 00040 virtual ~EcalTrigPrimProducer(); 00041 00042 void beginJob(); 00043 void beginRun(edm::Run & run, const edm::EventSetup & es); 00044 void endRun(edm::Run &, const edm::EventSetup &); 00045 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00046 00047 private: 00048 EcalTrigPrimFunctionalAlgo *algo_; 00049 TFile *histfile_; 00050 bool barrelOnly_; 00051 bool tcpFormat_; 00052 bool debug_; 00053 std::string label_; 00054 std::string instanceNameEB_; 00055 std::string instanceNameEE_; 00056 00057 int binOfMaximum_; 00058 00059 const edm::ParameterSet ps_; 00060 00061 //method to get EventSetupRecords 00062 unsigned long long getRecords(edm::EventSetup const& setup); 00063 unsigned long long cacheID_; 00064 }; 00065 00066 #endif 00067 00068 00069