00001 #ifndef _CSCFAKEDBCROSSTALKPOPCON_H 00002 #define _CSCFAKEDBCROSSTALKPOPCON_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 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00014 00015 #include "CondFormats/CSCObjects/interface/CSCDBCrosstalk.h" 00016 #include "CondFormats/DataRecord/interface/CSCDBCrosstalkRcd.h" 00017 #include <DataFormats/MuonDetId/interface/CSCDetId.h> 00018 00019 class CSCFakeDBCrosstalkPopCon: public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00020 public: 00021 CSCFakeDBCrosstalkPopCon(const edm::ParameterSet&); 00022 ~CSCFakeDBCrosstalkPopCon(); 00023 00024 float mean,min,minchi; 00025 int seed;long int M; 00026 00027 void prefillDBFakeCrosstalk(); 00028 00029 typedef const CSCDBCrosstalk * ReturnType; 00030 00031 ReturnType produceDBCrosstalk(const CSCDBCrosstalkRcd&); 00032 00033 private: 00034 // ----------member data --------------------------- 00035 void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&, edm::ValidityInterval & ); 00036 CSCDBCrosstalk *cndbcrosstalk ; 00037 00038 }; 00039 00040 #endif 00041