CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CalibMuon/CSCCalibration/plugins/CSCFakeDBCrosstalk.cc

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