CalibTracker
SiStripESProducers
plugins
fake
SiStripQualityFakeESSource.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: SiStripQualityFakeESSource
4
// Class: SiStripQualityFakeESSource
5
//
13
//
14
// Original Author: Domenico GIORDANO
15
// Created: Wed Oct 3 11:46:09 CEST 2007
16
//
17
//
18
19
#include "
CalibTracker/SiStripESProducers/plugins/fake/SiStripQualityFakeESSource.h
"
20
#include "
CalibTracker/SiStripCommon/interface/SiStripDetInfoFileReader.h
"
21
22
SiStripQualityFakeESSource::SiStripQualityFakeESSource
(
const
edm::ParameterSet
& iConfig) {
23
setWhatProduced
(
this
);
24
findingRecord<SiStripQualityRcd>();
25
}
26
27
std::unique_ptr<SiStripQuality>
SiStripQualityFakeESSource::produce
(
const
SiStripQualityRcd
& iRecord) {
28
const
auto
detInfo =
29
SiStripDetInfoFileReader::read
(
edm::FileInPath
{
SiStripDetInfoFileReader::kDefaultFile
}.fullPath());
30
return
std::make_unique<SiStripQuality>(detInfo);
31
}
32
33
void
SiStripQualityFakeESSource::setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
34
const
edm::IOVSyncValue
& iov,
35
edm::ValidityInterval
& iValidity) {
36
edm::ValidityInterval
infinity
(iov.
beginOfTime
(), iov.
endOfTime
());
37
iValidity =
infinity
;
38
}
SiStripQualityFakeESSource::produce
std::unique_ptr< SiStripQuality > produce(const SiStripQualityRcd &)
Definition:
SiStripQualityFakeESSource.cc:27
SiStripQualityFakeESSource.h
SiStripQualityFakeESSource::SiStripQualityFakeESSource
SiStripQualityFakeESSource(const edm::ParameterSet &)
Definition:
SiStripQualityFakeESSource.cc:22
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ValidityInterval
Definition:
ValidityInterval.h:28
infinity
const double infinity
Definition:
CSCChamberFitter.cc:10
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
SiStripDetInfoFileReader::read
SiStripDetInfo read(std::string filePath)
Definition:
SiStripDetInfoFileReader.cc:11
edm::FileInPath
Definition:
FileInPath.h:61
SiStripQualityRcd
Definition:
SiStripDependentRecords.h:51
SiStripDetInfoFileReader.h
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
SiStripQualityFakeESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &iov, edm::ValidityInterval &iValidity) override
Definition:
SiStripQualityFakeESSource.cc:33
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
SiStripDetInfoFileReader::kDefaultFile
constexpr static char const *const kDefaultFile
Definition:
SiStripDetInfoFileReader.h:10
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
Generated for CMSSW Reference Manual by
1.8.16