CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CalibMuon/CSCCalibration/plugins/CSCFakeDBNoiseMatrix.cc

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