File indexing completed on 2024-04-06 11:59:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
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 }