00001 #ifndef _CSCFAKEDBGAINSPOPCON_H 00002 #define _CSCFAKEDBGAINSPOPCON_H 00003 00004 #include <memory> 00005 #include "FWCore/Framework/interface/SourceFactory.h" 00006 #include "FWCore/Framework/interface/Frameworkfwd.h" 00007 #include "FWCore/Framework/interface/ESProducer.h" 00008 #include "FWCore/Framework/interface/Event.h" 00009 #include "FWCore/Framework/interface/MakerMacros.h" 00010 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h" 00011 #include "FWCore/Framework/interface/ESHandle.h" 00012 #include "FWCore/Framework/interface/EventSetup.h" 00013 00014 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00015 00016 #include "CondFormats/CSCObjects/interface/CSCDBGains.h" 00017 #include "CondFormats/DataRecord/interface/CSCDBGainsRcd.h" 00018 #include <DataFormats/MuonDetId/interface/CSCDetId.h> 00019 00020 class CSCFakeDBGainsPopCon: public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00021 public: 00022 CSCFakeDBGainsPopCon(const edm::ParameterSet&); 00023 ~CSCFakeDBGainsPopCon(); 00024 00025 float mean,min,minchi; 00026 int seed;long int M; 00027 00028 void prefillDBGains(); 00029 00030 typedef const CSCDBGains * ReturnType; 00031 00032 ReturnType produceDBGains(const CSCDBGainsRcd&); 00033 00034 private: 00035 // ----------member data --------------------------- 00036 void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&, edm::ValidityInterval & ); 00037 CSCDBGains *cndbgains ; 00038 00039 }; 00040 00041 #endif