CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/CalibMuon/CSCCalibration/interface/CSCFakeGainsConditions.h

Go to the documentation of this file.
00001 #ifndef _CSCFAKEGAINSCONDITIONS_H
00002 #define _CSCFAKEGAINSCONDITIONS_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/CSCGains.h"
00017 #include "CondFormats/DataRecord/interface/CSCGainsRcd.h"
00018 #include <DataFormats/MuonDetId/interface/CSCDetId.h>
00019 
00020 class CSCFakeGainsConditions: public edm::ESProducer, public edm::EventSetupRecordIntervalFinder  {
00021    public:
00022       CSCFakeGainsConditions(const edm::ParameterSet&);
00023       ~CSCFakeGainsConditions();
00024 
00025       float mean,min,minchi;
00026       int seed;long int M;
00027 
00028       void prefillGains(); 
00029 
00030       typedef const  CSCGains * ReturnType;
00031 
00032       ReturnType produceGains(const CSCGainsRcd&);
00033 
00034    private:
00035       // ----------member data ---------------------------
00036     void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&, edm::ValidityInterval & );
00037     CSCGains *cngains ;
00038 
00039 };
00040 
00041 #endif