00001 #ifndef CalibTracker_SiStripESProducers_SiStripGainESProducer_h 00002 #define CalibTracker_SiStripESProducers_SiStripGainESProducer_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiStripGainESProducer 00006 // Class: SiStripGainESProducer 00007 // 00015 // 00016 // Original Author: Giacomo Bruno 00017 // Created: Fri Apr 27 12:31:25 CEST 2007 00018 // $Id: SiStripGainESProducer.h,v 1.2 2008/07/03 12:37:35 vciulli Exp $ 00019 // 00020 // 00021 00022 00023 // system include files 00024 #include <memory> 00025 #include "boost/shared_ptr.hpp" 00026 00027 // user include files 00028 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00029 #include "FWCore/Framework/interface/ESProducer.h" 00030 #include "CalibFormats/SiStripObjects/interface/SiStripGain.h" 00031 #include "CalibTracker/Records/interface/SiStripGainRcd.h" 00032 #include "CondFormats/DataRecord/interface/SiStripApvGainRcd.h" 00033 00034 00035 00036 // 00037 // class decleration 00038 // 00039 00040 class SiStripGainESProducer : public edm::ESProducer { 00041 00042 public: 00043 SiStripGainESProducer(const edm::ParameterSet & iConfig); 00044 ~SiStripGainESProducer(); 00045 00046 // typedef edm::ESProducts<> ReturnType; 00047 00048 std::auto_ptr<SiStripGain> produce(const SiStripGainRcd &); 00049 00050 private: 00051 // ----------member data --------------------------- 00052 00053 00054 std::string apvgain_; 00055 double norm_; 00056 bool automaticMode_; 00057 bool printdebug_; 00058 00059 }; 00060 00061 00062 #endif 00063 00064 //define this as a plug-in 00065 //DEFINE_FWK_EVENTSETUP_MODULE(SiStripGainESProducer);