FWCore
Framework
src
ESProducerLooper.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Framework
4
// Class : ESProducerLooper
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Mon Jul 17 09:34:30 EDT 2006
11
//
12
13
// system include files
14
15
// user include files
16
#include "
FWCore/Framework/interface/ESProducerLooper.h
"
17
18
using namespace
edm
;
19
using namespace
edm::eventsetup
;
20
//
21
// constants, enums and typedefs
22
//
23
24
//
25
// static data member definitions
26
//
27
28
//
29
// constructors and destructor
30
//
31
ESProducerLooper::ESProducerLooper
() {}
32
33
// ESProducerLooper::ESProducerLooper(const ESProducerLooper& rhs)
34
// {
35
// // do actual copying here;
36
// }
37
/*
38
ESProducerLooper::~ESProducerLooper()
39
{
40
}
41
*/
42
//
43
// assignment operators
44
//
45
// const ESProducerLooper& ESProducerLooper::operator=(const ESProducerLooper& rhs)
46
// {
47
// //An exception safe implementation is
48
// ESProducerLooper temp(rhs);
49
// swap(rhs);
50
//
51
// return *this;
52
// }
53
54
//
55
// member functions
56
//
57
void
ESProducerLooper::setIntervalFor
(
const
EventSetupRecordKey
&,
const
IOVSyncValue
&,
ValidityInterval
& oInterval) {
58
//since non of the dependent records are valid, I will create one that is valid
59
// at the beginning of time BUT must also be checked every request
60
//oInterval = ValidityInterval(IOVSyncValue::beginOfTime(),
61
// IOVSyncValue::invalidIOVSyncValue());
62
// }
63
//} else {
64
//Give one valid for all time
65
oInterval =
ValidityInterval
(
IOVSyncValue::beginOfTime
(),
IOVSyncValue::endOfTime
());
66
//}
67
}
68
69
//use this to 'snoop' on what records are being used by the Producer
70
void
ESProducerLooper::registerFactoryWithKey
(
const
eventsetup::EventSetupRecordKey
& iRecord,
71
std::unique_ptr<eventsetup::ProxyFactoryBase> iFactory,
72
const
std::string
& iLabel) {
73
findingRecordWithKey(iRecord);
74
ESProxyFactoryProducer::registerFactoryWithKey
(iRecord,
std::move
(iFactory), iLabel);
75
}
76
77
//
78
// const member functions
79
//
80
std::set<eventsetup::EventSetupRecordKey>
ESProducerLooper::modifyingRecords
()
const
{
return
findingForRecords(); }
81
//
82
// static member functions
83
//
ESProducerLooper.h
edm::ESProducerLooper::modifyingRecords
std::set< eventsetup::EventSetupRecordKey > modifyingRecords() const override
Definition:
ESProducerLooper.cc:80
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ValidityInterval
Definition:
ValidityInterval.h:28
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
edm::ESProducerLooper::registerFactoryWithKey
void registerFactoryWithKey(const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) override
Definition:
ESProducerLooper.cc:70
edm::ESProxyFactoryProducer::registerFactoryWithKey
virtual void registerFactoryWithKey(const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
Definition:
ESProxyFactoryProducer.cc:48
edm::ESProducerLooper::ESProducerLooper
ESProducerLooper()
Definition:
ESProducerLooper.cc:31
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition:
IOVSyncValue.cc:82
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition:
Time.h:17
eostools.move
def move(src, dest)
Definition:
eostools.py:511
edm::ESProducerLooper::setIntervalFor
void setIntervalFor(const eventsetup::EventSetupRecordKey &iKey, const IOVSyncValue &iTime, ValidityInterval &oInterval) override
Definition:
ESProducerLooper.cc:57
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition:
IOVSyncValue.cc:88
edm::eventsetup
Definition:
ES_DDDetector.cc:16
Generated for CMSSW Reference Manual by
1.8.16