00001 #ifndef _CSCFAKEPEDESTALSCONDITIONS_H 00002 #define _CSCFAKEPEDESTALSCONDITIONS_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/CSCPedestals.h" 00017 #include "CondFormats/DataRecord/interface/CSCPedestalsRcd.h" 00018 #include <DataFormats/MuonDetId/interface/CSCDetId.h> 00019 00020 class CSCFakePedestalsConditions: public edm::ESProducer, public edm::EventSetupRecordIntervalFinder { 00021 public: 00022 CSCFakePedestalsConditions(const edm::ParameterSet&); 00023 ~CSCFakePedestalsConditions(); 00024 00025 float meanped,meanrms; 00026 int seed;long int M; 00027 00028 void prefillPedestals(); 00029 00030 typedef const CSCPedestals * ReturnType; 00031 00032 ReturnType producePedestals(const CSCPedestalsRcd&); 00033 00034 private: 00035 // ----------member data --------------------------- 00036 void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&, edm::ValidityInterval & ); 00037 CSCPedestals *cnpedestals ; 00038 }; 00039 00040 #endif