CMS 3D CMS Logo

MVAComputerESSourceImpl.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_MVAComputer_MVAComputerESSourceImpl_h
2 #define PhysicsTools_MVAComputer_MVAComputerESSourceImpl_h
3 
6 
9 
10 namespace PhysicsTools {
11 
12 template<class RecordType>
15  public:
18  {
19  setWhatProduced(this);
20  findingRecord<RecordType>();
21  }
22 
24 
25  ReturnType produce(const RecordType &record)
26  { return this->produce(); }
27 
28  protected:
30 
31  private:
33  const edm::IOVSyncValue &syncValue,
34  edm::ValidityInterval &oValidity) override
35  {
36  oValidity = edm::ValidityInterval(
39  }
40 };
41 
42 } // namespace PhysicsTools
43 
44 #endif // PhysicsTools_MVAComputer_MVAComputerESSourceImpl_h
std::unique_ptr< Calibration::MVAComputerContainer > ReturnType
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
JetCorrectorParameters::Record record
Definition: classes.h:7
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
static const IOVSyncValue & beginOfTime()
MVAComputerESSourceImpl(const edm::ParameterSet &params)
ReturnType produce(const RecordType &record)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &key, const edm::IOVSyncValue &syncValue, edm::ValidityInterval &oValidity) override