CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibMuon/CSCCalibration/plugins/CSCFakeDBGains.cc

Go to the documentation of this file.
00001 #include "CalibMuon/CSCCalibration/interface/CSCFakeDBGains.h"
00002 #include "CondFormats/CSCObjects/interface/CSCDBGains.h"
00003 #include "CondFormats/DataRecord/interface/CSCDBGainsRcd.h"
00004 #include "CalibMuon/CSCCalibration/interface/CSCGainsDBConditions.h"
00005 
00006 CSCFakeDBGains::CSCFakeDBGains(const edm::ParameterSet& iConfig)
00007 {
00008   cndbGains = boost::shared_ptr<CSCDBGains>( prefillDBGains() );
00009 
00010   // the following line is needed to tell the framework what
00011   // data is being produced
00012   setWhatProduced(this, &CSCFakeDBGains::produceDBGains);
00013   findingRecord<CSCDBGainsRcd>();
00014 }
00015 
00016 
00017 CSCFakeDBGains::~CSCFakeDBGains()
00018 {
00019 }
00020 
00021 // ------------ method called to produce the data  ------------
00022 CSCFakeDBGains::Pointer
00023 CSCFakeDBGains::produceDBGains(const CSCDBGainsRcd& iRecord)
00024 {
00025   return cndbGains;
00026 }
00027 
00028  void CSCFakeDBGains::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&,
00029  edm::ValidityInterval & oValidity)
00030  {
00031     oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(),edm::IOVSyncValue::endOfTime());
00032  }