CMS 3D CMS Logo

EventSetupTestHelper.h
Go to the documentation of this file.
1 #ifndef FWCore_TestProcessor_EventSetupTestHelper_h
2 #define FWCore_TestProcessor_EventSetupTestHelper_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/TestProcessor
6 // Class : EventSetupTestHelper
7 //
16 //
17 // Original Author: root
18 // Created: Tue, 08 May 2018 18:33:09 GMT
19 //
20 
21 // system include files
22 #include <vector>
23 
24 // user include files
27 
29 
30 // forward declarations
31 namespace edm {
32 namespace test {
33 
35 {
36 
37  public:
38  EventSetupTestHelper(std::vector<ESProduceEntry>);
39 
40  // ---------- const member functions ---------------------
41 
42  // ---------- static member functions --------------------
43 
44  // ---------- member functions ---------------------------
45  void newInterval(const eventsetup::EventSetupRecordKey& iRecordType,
46  const ValidityInterval& iInterval) final;
47 
48  std::shared_ptr<eventsetup::DataProxy> getProxy(unsigned int index );
49 
50  void resetAllProxies();
51 protected:
53  const IOVSyncValue& ,
54  ValidityInterval&) final;
55 
56  void registerProxies(const eventsetup::EventSetupRecordKey& iRecordKey ,
57  KeyedProxies& aProxyList) final ;
58 
59 
60  private:
61  EventSetupTestHelper(const EventSetupTestHelper&) = delete; // stop default
62 
63  const EventSetupTestHelper& operator=(const EventSetupTestHelper&) = delete; // stop default
64 
65  // ---------- member data --------------------------------
66  std::vector<ESProduceEntry> proxies_;
67 };
68 }
69 }
70 
71 
72 #endif
const EventSetupTestHelper & operator=(const EventSetupTestHelper &)=delete
void setIntervalFor(const eventsetup::EventSetupRecordKey &, const IOVSyncValue &, ValidityInterval &) final
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
std::vector< ESProduceEntry > proxies_
void newInterval(const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) final
called when a new interval of validity occurs for iRecordType
EventSetupTestHelper(std::vector< ESProduceEntry >)
std::shared_ptr< eventsetup::DataProxy > getProxy(unsigned int index)
void registerProxies(const eventsetup::EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList) final
HLT enums.