PhysicsTools
MVAComputer
interface
MVAComputerESSourceImpl.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_MVAComputer_MVAComputerESSourceImpl_h
2
#define PhysicsTools_MVAComputer_MVAComputerESSourceImpl_h
3
4
#include "
FWCore/Framework/interface/EventSetupRecordIntervalFinder.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
7
#include "
PhysicsTools/MVAComputer/interface/Calibration.h
"
8
#include "
PhysicsTools/MVAComputer/interface/MVAComputerESSourceBase.h
"
9
10
namespace
PhysicsTools
{
11
12
template
<
class
RecordType>
13
class
MVAComputerESSourceImpl
:
public
MVAComputerESSourceBase
,
public
edm::EventSetupRecordIntervalFinder
{
14
public
:
15
MVAComputerESSourceImpl
(
const
edm::ParameterSet
&
params
) :
MVAComputerESSourceBase
(
params
) {
16
setWhatProduced
(
this
);
17
findingRecord<RecordType>();
18
}
19
20
~MVAComputerESSourceImpl
()
override
{}
21
22
ReturnType
produce
(
const
RecordType &
record
) {
return
this->
produce
(); }
23
24
protected
:
25
using
MVAComputerESSourceBase::produce
;
26
27
private
:
28
void
setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&
key
,
29
const
edm::IOVSyncValue
&syncValue,
30
edm::ValidityInterval
&oValidity)
override
{
31
oValidity =
edm::ValidityInterval
(
edm::IOVSyncValue::beginOfTime
(),
edm::IOVSyncValue::endOfTime
());
32
}
33
};
34
35
}
// namespace PhysicsTools
36
37
#endif // PhysicsTools_MVAComputer_MVAComputerESSourceImpl_h
PhysicsTools::MVAComputerESSourceImpl::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &key, const edm::IOVSyncValue &syncValue, edm::ValidityInterval &oValidity) override
Definition:
MVAComputerESSourceImpl.h:28
MVAComputerESSourceBase.h
CalibrationSummaryClient_cfi.params
params
Definition:
CalibrationSummaryClient_cfi.py:14
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
edm::ValidityInterval
Definition:
ValidityInterval.h:28
GlobalPosition_Frontier_DevDB_cff.record
record
Definition:
GlobalPosition_Frontier_DevDB_cff.py:10
edm::EventSetupRecordIntervalFinder
Definition:
EventSetupRecordIntervalFinder.h:33
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
PhysicsTools::MVAComputerESSourceImpl::MVAComputerESSourceImpl
MVAComputerESSourceImpl(const edm::ParameterSet ¶ms)
Definition:
MVAComputerESSourceImpl.h:15
PhysicsTools::MVAComputerESSourceImpl::~MVAComputerESSourceImpl
~MVAComputerESSourceImpl() override
Definition:
MVAComputerESSourceImpl.h:20
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
PhysicsTools
Definition:
Histogram.h:13
PhysicsTools::MVAComputerESSourceBase
Definition:
MVAComputerESSourceBase.h:17
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition:
Time.h:17
Calibration.h
PhysicsTools::MVAComputerESSourceImpl
Definition:
MVAComputerESSourceImpl.h:13
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
ParameterSet.h
PhysicsTools::MVAComputerESSourceBase::produce
ReturnType produce() const
Definition:
MVAComputerESSourceBase.cc:39
crabWrapper.key
key
Definition:
crabWrapper.py:19
PhysicsTools::MVAComputerESSourceBase::ReturnType
std::unique_ptr< Calibration::MVAComputerContainer > ReturnType
Definition:
MVAComputerESSourceBase.h:19
PhysicsTools::MVAComputerESSourceImpl::produce
ReturnType produce(const RecordType &record)
Definition:
MVAComputerESSourceImpl.h:22
Generated for CMSSW Reference Manual by
1.8.16