src
FWCore
TestProcessor
interface
TestESProductResolver.h
Go to the documentation of this file.
1
#ifndef FWCore_TestProcessor_TestESProductResolver_h
2
#define FWCore_TestProcessor_TestESProductResolver_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/TestProcessor
6
// Class : TestESProductResolver
7
//
16
//
17
// Original Author: root
18
// Created: Tue, 08 May 2018 18:32:38 GMT
19
//
20
21
// system include files
22
#include <memory>
23
24
// user include files
25
#include "
FWCore/Framework/interface/ESProductResolver.h
"
26
#include "
FWCore/Concurrency/interface/WaitingTaskHolder.h
"
27
28
// forward declarations
29
30
namespace
edm
{
31
namespace
test
{
32
33
template
<
typename
T>
34
class
TestESProductResolver
:
public
eventsetup::ESProductResolver
{
35
public
:
36
TestESProductResolver
() {}
37
38
void
setData
(std::unique_ptr<T> iData) {
data_
=
std::move
(iData); }
39
40
void
prefetchAsyncImpl
(
WaitingTaskHolder
,
41
eventsetup::EventSetupRecordImpl
const
&,
42
eventsetup::DataKey
const
&,
43
EventSetupImpl
const
*,
44
ServiceToken
const
&,
45
ESParentContext
const
&)
final
{
46
return
;
47
}
48
49
void
invalidateCache
() final {
data_
.reset(); }
50
51
void
const
*
getAfterPrefetchImpl
()
const
final {
return
data_
.get(); }
52
53
private
:
54
std::unique_ptr<T>
data_
;
55
};
56
}
// namespace test
57
58
}
// namespace edm
59
60
#endif
ESProductResolver.h
edm::EventSetupImpl
Definition:
EventSetupImpl.h:48
edm::test::TestESProductResolver::invalidateCache
void invalidateCache() final
Definition:
TestESProductResolver.h:49
runTheMatrix.const
const
Definition:
runTheMatrix.py:347
edm::test::TestESProductResolver::prefetchAsyncImpl
void prefetchAsyncImpl(WaitingTaskHolder, eventsetup::EventSetupRecordImpl const &, eventsetup::DataKey const &, EventSetupImpl const *, ServiceToken const &, ESParentContext const &) final
Definition:
TestESProductResolver.h:40
test
Definition:
SmallWORMDict.h:13
edm::test::TestESProductResolver
Definition:
TestESProductResolver.h:34
edm::ESParentContext
Definition:
ESParentContext.h:21
edm::test::TestESProductResolver::TestESProductResolver
TestESProductResolver()
Definition:
TestESProductResolver.h:36
edm::eventsetup::EventSetupRecordImpl
Definition:
EventSetupRecordImpl.h:73
edm::ServiceToken
Definition:
ServiceToken.h:42
edm::eventsetup::ESProductResolver
Definition:
ESProductResolver.h:40
edm::eventsetup::DataKey
Definition:
DataKey.h:29
edm::test::TestESProductResolver::getAfterPrefetchImpl
void const * getAfterPrefetchImpl() const final
Definition:
TestESProductResolver.h:51
edm::WaitingTaskHolder
Definition:
WaitingTaskHolder.h:32
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::test::TestESProductResolver::setData
void setData(std::unique_ptr< T > iData)
Definition:
TestESProductResolver.h:38
edm::test::TestESProductResolver::data_
std::unique_ptr< T > data_
Definition:
TestESProductResolver.h:54
WaitingTaskHolder.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
Generated for CMSSW Reference Manual by
1.8.14