Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:51

0001 // -*- C++ -*-
0002 //
0003 // Package:    SiStripQualityFakeESSource
0004 // Class:      SiStripQualityFakeESSource
0005 //
0006 /**\class SiStripQualityFakeESSource  CalibTracker/SiStripQualityFakeESSource/plugins/fake/SiStripQualityFakeESSource.cc
0007 
0008  Description: <one line class summary>
0009 
0010  Implementation:
0011      <Notes on implementation>
0012 */
0013 //
0014 // Original Author:  Domenico GIORDANO
0015 //         Created:  Wed Oct  3 11:46:09 CEST 2007
0016 //
0017 //
0018 
0019 #include "CalibTracker/SiStripESProducers/plugins/fake/SiStripQualityFakeESSource.h"
0020 #include "CalibTracker/SiStripCommon/interface/SiStripDetInfoFileReader.h"
0021 
0022 SiStripQualityFakeESSource::SiStripQualityFakeESSource(const edm::ParameterSet& iConfig) {
0023   setWhatProduced(this);
0024   findingRecord<SiStripQualityRcd>();
0025 }
0026 
0027 std::unique_ptr<SiStripQuality> SiStripQualityFakeESSource::produce(const SiStripQualityRcd& iRecord) {
0028   const auto detInfo =
0029       SiStripDetInfoFileReader::read(edm::FileInPath{SiStripDetInfoFileReader::kDefaultFile}.fullPath());
0030   return std::make_unique<SiStripQuality>(detInfo);
0031 }
0032 
0033 void SiStripQualityFakeESSource::setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
0034                                                 const edm::IOVSyncValue& iov,
0035                                                 edm::ValidityInterval& iValidity) {
0036   edm::ValidityInterval infinity(iov.beginOfTime(), iov.endOfTime());
0037   iValidity = infinity;
0038 }