Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:32

0001 #include "CalibMuon/RPCCalibration/interface/RPCPerformanceESSource.h"
0002 #include "CondFormats/DataRecord/interface/RPCStripNoisesRcd.h"
0003 #include "CondFormats/RPCObjects/interface/RPCStripNoises.h"
0004 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
0005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0006 #include <iostream>
0007 
0008 using namespace std;
0009 
0010 // -----------------------------------------------------------------------------
0011 //
0012 RPCPerformanceESSource::RPCPerformanceESSource(const edm::ParameterSet &pset) {
0013   setWhatProduced(this);
0014   findingRecord<RPCStripNoisesRcd>();
0015 }
0016 
0017 // -----------------------------------------------------------------------------
0018 //
0019 unique_ptr<RPCStripNoises> RPCPerformanceESSource::produce(const RPCStripNoisesRcd &) {
0020   RPCStripNoises *noise = makeNoise();
0021 
0022   return unique_ptr<RPCStripNoises>(noise);
0023 }
0024 
0025 // -----------------------------------------------------------------------------
0026 //
0027 void RPCPerformanceESSource::setIntervalFor(const edm::eventsetup::EventSetupRecordKey &,
0028                                             const edm::IOVSyncValue &iosv,
0029                                             edm::ValidityInterval &oValidity) {
0030   edm::ValidityInterval infinity(iosv.beginOfTime(), iosv.endOfTime());
0031   oValidity = infinity;
0032 }