CMS 3D CMS Logo

TestProcessor.h
Go to the documentation of this file.
1 #ifndef FWCore_TestProcessor_TestProcessor_h
2 #define FWCore_TestProcessor_TestProcessor_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/TestProcessor
6 // Class : TestProcessor
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Mon, 30 Apr 2018 18:51:00 GMT
19 //
20 
21 // system include files
22 #include <string>
23 #include <utility>
24 #include <memory>
25 #include "tbb/global_control.h"
26 #include "tbb/task_arena.h"
27 
28 // user include files
41 
45 
54 
56 
57 // forward declarations
58 
59 namespace edm {
60  class ThinnedAssociationsHelper;
61  class ExceptionToActionTable;
62  class HistoryAppender;
63 
64  namespace eventsetup {
65  class EventSetupProvider;
66  class EventSetupsController;
67  } // namespace eventsetup
68 
69  namespace test {
70  class TestProcessorConfig;
72 
73  class ProcessToken {
75 
76  public:
78 
79  int index() const { return index_; }
80 
81  static int undefinedIndex() { return -1; }
82 
83  private:
84  explicit ProcessToken(int index) : index_{index} {}
85 
86  int index_;
87  };
88 
90  public:
91  TestProcessorConfig(std::string const& iPythonConfiguration) : config_(iPythonConfiguration) {}
92  std::string const& pythonConfiguration() const { return config_; }
93  void setPythonConfiguration(std::string iConfig) { config_ = std::move(iConfig); }
94 
97  ProcessToken addExtraProcess(std::string const& iProcessName) {
98  extraProcesses_.emplace_back(iProcessName);
99  return ProcessToken(extraProcesses_.size() - 1);
100  }
101 
102  std::vector<std::string> const& extraProcesses() const { return extraProcesses_; }
103 
107  template <typename T>
109  std::string iProductInstanceLabel = std::string(),
110  ProcessToken iToken = ProcessToken()) {
111  produceEntries_.emplace_back(
112  edm::TypeID(typeid(T)), std::move(iModuleLabel), std::move(iProductInstanceLabel), processName(iToken));
113  return edm::EDPutTokenT<T>(produceEntries_.size() - 1);
114  }
115 
116  template <typename REC, typename T>
118  auto rk = eventsetup::EventSetupRecordKey::makeKey<REC>();
119  eventsetup::DataKey dk(eventsetup::DataKey::makeTypeTag<T>(), iLabel.c_str());
120  esProduceEntries_.emplace_back(rk, dk, std::make_shared<TestDataProxy<T>>());
121  return edm::test::ESPutTokenT<T>(esProduceEntries_.size() - 1);
122  }
123 
124  struct ProduceEntry {
125  ProduceEntry(edm::TypeID const& iType,
127  std::string instanceLabel,
129  : type_{iType},
131  instanceLabel_{std::move(instanceLabel)},
137  };
138 
139  std::vector<ProduceEntry> const& produceEntries() const { return produceEntries_; }
140 
141  std::vector<ESProduceEntry> const& esProduceEntries() const { return esProduceEntries_; }
142 
143  private:
145  std::vector<std::string> extraProcesses_;
146  std::vector<ProduceEntry> produceEntries_;
147  std::vector<ESProduceEntry> esProduceEntries_;
148 
150  if (iToken.index() == ProcessToken::undefinedIndex()) {
151  return std::string();
152  }
153  return extraProcesses_[iToken.index()];
154  }
155  };
156 
158  public:
160 
161  TestProcessor(Config const& iConfig, ServiceToken iToken = ServiceToken());
162  TestProcessor(const TestProcessor&) = delete;
163  const TestProcessor& operator=(const TestProcessor&) = delete;
164  ~TestProcessor() noexcept(false);
165 
169  template <typename... T>
170  edm::test::Event test(T&&... iArgs) {
171  return testImpl(std::forward<T>(iArgs)...);
172  }
173 
174  template <typename... T>
176  return testBeginLuminosityBlockImpl(iNum, std::forward<T>(iArgs)...);
177  }
178  template <typename... T>
180  return testEndLuminosityBlockImpl(std::forward<T>(iArgs)...);
181  }
182 
183  template <typename... T>
185  return testBeginRunImpl(iNum, std::forward<T>(iArgs)...);
186  }
187  template <typename... T>
189  return testEndRunImpl(std::forward<T>(iArgs)...);
190  }
191 
192  // It makes no sense to pass EventSetup products and at least
193  // for now Runs, Lumis, and ProcessBlocks don't allow passing
194  // in other products. So for now these don't need to be templates
195  // for ProcessBlock.
197 
199 
204  arena_.execute([this]() {
205  beginJob();
206  endJob();
207  });
208  }
209 
210  void testWithNoRuns() {
211  arena_.execute([this]() {
212  beginJob();
214  endProcessBlock();
215  endJob();
216  });
217  }
218 
220  arena_.execute([this]() {
221  beginJob();
223  beginRun();
224  endRun();
225  endProcessBlock();
226  endJob();
227  });
228  }
229 
231  arena_.execute([this]() {
232  beginJob();
234  beginRun();
237  endRun();
238  endProcessBlock();
239  endJob();
240  });
241  }
245 
247 
248  private:
249  template <typename T, typename... U>
250  edm::test::Event testImpl(std::pair<edm::EDPutTokenT<T>, std::unique_ptr<T>>&& iPut, U&&... iArgs) {
251  put(std::move(iPut));
252  return testImpl(std::forward<U>(iArgs)...);
253  }
254 
255  template <typename T, typename... U>
256  edm::test::Event testImpl(std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut, U&&... iArgs) {
257  put(std::move(iPut));
258  return testImpl(std::forward<U>(iArgs)...);
259  }
260 
261  template <typename T>
262  void put(std::pair<edm::EDPutTokenT<T>, std::unique_ptr<T>>&& iPut) {
263  put(iPut.first.index(), std::make_unique<edm::Wrapper<T>>(std::move(iPut.second)));
264  }
265 
266  template <typename T>
267  void put(std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut) {
268  dynamic_cast<TestDataProxy<T>*>(esHelper_->getProxy(iPut.first.index()).get())->setData(std::move(iPut.second));
269  }
270 
271  void put(unsigned int, std::unique_ptr<WrapperBase>);
272 
274 
275  template <typename T, typename... U>
278  std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut,
279  U&&... iArgs) {
280  put(std::move(iPut));
281  return testBeginLuminosityBlockImpl(iNum, std::forward<U>(iArgs)...);
282  }
284 
285  template <typename T, typename... U>
287  std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut, U&&... iArgs) {
288  put(std::move(iPut));
289  return testEndLuminosityBlockImpl(std::forward<U>(iArgs)...);
290  }
292 
293  template <typename T, typename... U>
295  std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut,
296  U&&... iArgs) {
297  put(std::move(iPut));
298  return testBeginRunImpl(iNum, std::forward<U>(iArgs)...);
299  }
301  template <typename T, typename... U>
303  U&&... iArgs) {
304  put(std::move(iPut));
305  return testEndRunImpl(std::forward<U>(iArgs)...);
306  }
308 
311 
312  void setupProcessing();
313  void teardownProcessing();
314 
315  void beginJob();
316  void beginProcessBlock();
317  void beginRun();
318  void beginLuminosityBlock();
319  void event();
320  std::shared_ptr<LuminosityBlockPrincipal> endLuminosityBlock();
321  std::shared_ptr<RunPrincipal> endRun();
323  void endJob();
324 
325  // ---------- member data --------------------------------
326  tbb::global_control globalControl_;
327  tbb::task_arena arena_;
329  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
330  std::shared_ptr<ProductRegistry> preg_;
331  std::shared_ptr<BranchIDListHelper> branchIDListHelper_;
332  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper_;
334  std::unique_ptr<eventsetup::EventSetupsController> espController_;
335  std::shared_ptr<eventsetup::EventSetupProvider> esp_;
336  std::shared_ptr<EventSetupTestHelper> esHelper_;
337 
338  std::unique_ptr<ExceptionToActionTable const> act_table_;
339  std::shared_ptr<ProcessConfiguration const> processConfiguration_;
341 
343  std::unique_ptr<HistoryAppender> historyAppender_;
344 
347 
348  std::shared_ptr<ModuleRegistry> moduleRegistry_;
349  std::unique_ptr<Schedule> schedule_;
350  std::shared_ptr<LuminosityBlockPrincipal> lumiPrincipal_;
351 
352  std::vector<std::pair<edm::BranchDescription, std::unique_ptr<WrapperBase>>> dataProducts_;
353 
357  bool beginJobCalled_ = false;
359  bool beginRunCalled_ = false;
360  bool beginLumiCalled_ = false;
361  };
362  } // namespace test
363 } // namespace edm
364 
365 #endif
edm::test::TestProcessor::put
void put(std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut)
Definition: TestProcessor.h:267
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm::test::TestProcessorConfig::extraProcesses_
std::vector< std::string > extraProcesses_
Definition: TestProcessor.h:145
edm::test::TestProcessor::setLuminosityBlockNumber
void setLuminosityBlockNumber(edm::LuminosityBlockNumber_t)
Definition: TestProcessor.cc:740
edm::test::ProcessToken
Definition: TestProcessor.h:73
edm::test::TestProcessorConfig::addExtraProcess
ProcessToken addExtraProcess(std::string const &iProcessName)
Definition: TestProcessor.h:97
edm::test::TestProcessor::labelOfTestModule
std::string const & labelOfTestModule() const
Definition: TestProcessor.h:246
funct::false
false
Definition: Factorize.h:29
edm::test::TestProcessor::~TestProcessor
~TestProcessor() noexcept(false)
Definition: TestProcessor.cc:198
edm::test::TestProcessor::thinnedAssociationsHelper_
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
Definition: TestProcessor.h:332
edm::test::TestProcessor::TestProcessor
TestProcessor(Config const &iConfig, ServiceToken iToken=ServiceToken())
Definition: TestProcessor.cc:80
edm::test::TestProcessor::testLuminosityBlockWithNoEvents
void testLuminosityBlockWithNoEvents()
Definition: TestProcessor.h:230
edm::test::TestProcessor::globalControl_
tbb::global_control globalControl_
Definition: TestProcessor.h:326
edm::test::TestProcessor::testImpl
edm::test::Event testImpl(std::pair< edm::EDPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:250
edm::test::TestProcessorConfig::ProduceEntry::type_
edm::TypeID type_
Definition: TestProcessor.h:133
edm::test::TestProcessor::setRunNumber
void setRunNumber(edm::RunNumber_t)
Definition: TestProcessor.cc:733
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::test::TestProcessor::testEndRunImpl
edm::test::Run testEndRunImpl()
Definition: TestProcessor.cc:305
edm::test::ProcessToken::ProcessToken
ProcessToken()
Definition: TestProcessor.h:77
edm::EDPutTokenT
Definition: EDPutToken.h:33
edm::ProcessContext
Definition: ProcessContext.h:27
edm::test::TestProcessorConfig::esProduces
edm::test::ESPutTokenT< T > esProduces(std::string iLabel=std::string())
Definition: TestProcessor.h:117
RunLumiEventNumber.h
edm::test::TestProcessor::testBeginLuminosityBlockImpl
edm::test::LuminosityBlock testBeginLuminosityBlockImpl(edm::LuminosityBlockNumber_t iNum, std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:276
edm::test::TestProcessor::processHistoryRegistry_
ProcessHistoryRegistry processHistoryRegistry_
Definition: TestProcessor.h:342
edm::test::TestProcessor::testBeginProcessBlock
edm::test::ProcessBlock testBeginProcessBlock()
Definition: TestProcessor.h:196
edm::test::TestProcessorConfig::produceEntries_
std::vector< ProduceEntry > produceEntries_
Definition: TestProcessor.h:146
edm::test::TestProcessorConfig::processName
std::string processName(ProcessToken iToken)
Definition: TestProcessor.h:149
edm::eventsetup::DataKey
Definition: DataKey.h:29
SignallingProductRegistry.h
edm::test::TestProcessor::labelOfTestModule_
std::string labelOfTestModule_
Definition: TestProcessor.h:328
ProcessHistoryRegistry.h
ServiceToken.h
edm::test::Run
Definition: Run.h:35
PreallocationConfiguration.h
edm::test::TestProcessorConfig::produceEntries
std::vector< ProduceEntry > const & produceEntries() const
Definition: TestProcessor.h:139
edm::test::TestProcessor::beginRunCalled_
bool beginRunCalled_
Definition: TestProcessor.h:359
edm::test::TestProcessor::serviceToken_
ServiceToken serviceToken_
Definition: TestProcessor.h:333
edm::test::TestProcessor::testBeginLuminosityBlock
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&... iArgs)
Definition: TestProcessor.h:175
edm::test::TestProcessor::processConfiguration_
std::shared_ptr< ProcessConfiguration const > processConfiguration_
Definition: TestProcessor.h:339
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::test::TestProcessor::endLuminosityBlock
std::shared_ptr< LuminosityBlockPrincipal > endLuminosityBlock()
Definition: TestProcessor.cc:576
edm::test::TestProcessor::lumiPrincipal_
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
Definition: TestProcessor.h:350
edm::test::ProcessToken::index_
int index_
Definition: TestProcessor.h:86
edm::test::TestProcessor::testEndProcessBlockImpl
edm::test::ProcessBlock testEndProcessBlockImpl()
Definition: TestProcessor.cc:339
edm::ProcessBlockPrincipal
Definition: ProcessBlockPrincipal.h:22
edm::test::LuminosityBlock
Definition: LuminosityBlock.h:35
edm::test::TestProcessorConfig
Definition: TestProcessor.h:89
edm::test::TestProcessor::testEndLuminosityBlock
edm::test::LuminosityBlock testEndLuminosityBlock(T &&... iArgs)
Definition: TestProcessor.h:179
ESProduceEntry.h
edm::test::ESPutTokenT
Definition: ESPutTokenT.h:31
edm::test::TestProcessor::runNumber_
RunNumber_t runNumber_
Definition: TestProcessor.h:354
ActivityRegistry.h
edm::test::TestProcessor::beginRun
void beginRun()
Definition: TestProcessor.cc:440
edm::test::TestProcessor::testBeginProcessBlockImpl
edm::test::ProcessBlock testBeginProcessBlockImpl()
Definition: TestProcessor.cc:329
SharedResourcesAcquirer.h
edm::ServiceToken
Definition: ServiceToken.h:40
test
Definition: SmallWORMDict.h:13
LuminosityBlock.h
edm::test::ProcessToken::TestProcessorConfig
friend TestProcessorConfig
Definition: TestProcessor.h:74
edm::PrincipalCache
Definition: PrincipalCache.h:48
edm::test::TestProcessor::beginLumiCalled_
bool beginLumiCalled_
Definition: TestProcessor.h:360
edm::test::TestProcessor::testEndProcessBlock
edm::test::ProcessBlock testEndProcessBlock()
Definition: TestProcessor.h:198
edm::test::TestProcessor::setupProcessing
void setupProcessing()
Definition: TestProcessor.cc:352
edm::test::TestProcessorConfig::config_
std::string config_
Definition: TestProcessor.h:144
ESPutTokenT.h
edm::test::TestProcessor::historyAppender_
std::unique_ptr< HistoryAppender > historyAppender_
Definition: TestProcessor.h:343
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::test::TestProcessor::preg_
std::shared_ptr< ProductRegistry > preg_
Definition: TestProcessor.h:330
edm::test::TestProcessor::testEndRun
edm::test::Run testEndRun(T &&... iArgs)
Definition: TestProcessor.h:188
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
edm::test::TestProcessor::dataProducts_
std::vector< std::pair< edm::BranchDescription, std::unique_ptr< WrapperBase > > > dataProducts_
Definition: TestProcessor.h:352
edm::test::TestProcessor::beginJob
void beginJob()
Definition: TestProcessor.cc:388
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::test::ProcessToken::undefinedIndex
static int undefinedIndex()
Definition: TestProcessor.h:81
edm::test::TestProcessorConfig::ProduceEntry::processName_
std::string processName_
Definition: TestProcessor.h:136
edm::test::TestDataProxy
Definition: TestDataProxy.h:33
edm::test::ProcessToken::ProcessToken
ProcessToken(int index)
Definition: TestProcessor.h:84
edm::test::TestProcessorConfig::TestProcessorConfig
TestProcessorConfig(std::string const &iPythonConfiguration)
Definition: TestProcessor.h:91
PrincipalCache.h
edm::test::TestProcessorConfig::ProduceEntry::instanceLabel_
std::string instanceLabel_
Definition: TestProcessor.h:135
edm::test::Event
Definition: Event.h:36
edm::test::TestProcessor::testBeginRunImpl
edm::test::Run testBeginRunImpl(edm::RunNumber_t iNum, std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:294
edm::test::TestProcessor::testWithNoRuns
void testWithNoRuns()
Definition: TestProcessor.h:210
EDPutToken.h
EventSetupTestHelper
edm::test::TestProcessor::processContext_
ProcessContext processContext_
Definition: TestProcessor.h:340
edm::test::TestProcessor::endRun
std::shared_ptr< RunPrincipal > endRun()
Definition: TestProcessor.cc:627
DataKey.h
edm::test::TestProcessor::testEndLuminosityBlockImpl
edm::test::LuminosityBlock testEndLuminosityBlockImpl()
Definition: TestProcessor.cc:255
edm::get
T const & get(Event const &event, InputTag const &tag) noexcept(false)
Definition: Event.h:671
edm::test::TestProcessor::arena_
tbb::task_arena arena_
Definition: TestProcessor.h:327
edm::test::TestProcessor::eventNumber_
EventNumber_t eventNumber_
Definition: TestProcessor.h:356
Schedule.h
edm::test::TestProcessorConfig::pythonConfiguration
std::string const & pythonConfiguration() const
Definition: TestProcessor.h:92
edm::test::TestProcessor::testBeginAndEndJobOnly
void testBeginAndEndJobOnly()
Definition: TestProcessor.h:203
edm::test::TestProcessorConfig::ProduceEntry::moduleLabel_
std::string moduleLabel_
Definition: TestProcessor.h:134
edm::test::TestProcessor::branchIDListHelper_
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
Definition: TestProcessor.h:331
edm::test::TestProcessor::put
void put(std::pair< edm::EDPutTokenT< T >, std::unique_ptr< T >> &&iPut)
Definition: TestProcessor.h:262
edm::test::TestProcessor::beginJobCalled_
bool beginJobCalled_
Definition: TestProcessor.h:357
edm::test::TestProcessor
Definition: TestProcessor.h:157
svgfig.template
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
edm::test::TestProcessor::esHelper_
std::shared_ptr< EventSetupTestHelper > esHelper_
Definition: TestProcessor.h:336
ProcessBlock.h
edm::test::TestProcessor::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: TestProcessor.h:329
edm::test::TestProcessor::setEventNumber
void setEventNumber(edm::EventNumber_t)
Definition: TestProcessor.cc:745
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::test::TestProcessor::testEndRunImpl
edm::test::LuminosityBlock testEndRunImpl(std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:302
edm::test::TestProcessorConfig::extraProcesses
std::vector< std::string > const & extraProcesses() const
Definition: TestProcessor.h:102
Run.h
edm::test::TestProcessor::testEndLuminosityBlockImpl
edm::test::LuminosityBlock testEndLuminosityBlockImpl(std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:286
ModuleRegistry.h
edm::TypeID
Definition: TypeID.h:22
edm::test::TestProcessor::testRunWithNoLuminosityBlocks
void testRunWithNoLuminosityBlocks()
Definition: TestProcessor.h:219
Wrapper.h
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::test::TestProcessor::operator=
const TestProcessor & operator=(const TestProcessor &)=delete
Event.h
edm::test::TestProcessor::esp_
std::shared_ptr< eventsetup::EventSetupProvider > esp_
Definition: TestProcessor.h:335
edm::test::TestProcessor::testImpl
edm::test::Event testImpl()
Definition: TestProcessor.cc:212
edm::test::TestProcessor::schedule_
std::unique_ptr< Schedule > schedule_
Definition: TestProcessor.h:349
T
long double T
Definition: Basic3DVectorLD.h:48
ServiceLegacy.h
edm::test::TestProcessor::beginProcessBlock
void beginProcessBlock()
Definition: TestProcessor.cc:418
edm::test::TestProcessorConfig::setPythonConfiguration
void setPythonConfiguration(std::string iConfig)
Definition: TestProcessor.h:93
edm::test::ProcessBlock
Definition: ProcessBlock.h:31
edm::test::TestProcessor::espController_
std::unique_ptr< eventsetup::EventSetupsController > espController_
Definition: TestProcessor.h:334
edm::ProcessHistoryRegistry
Definition: ProcessHistoryRegistry.h:18
edm::test::ProcessToken::index
int index() const
Definition: TestProcessor.h:79
edm::test::TestProcessor::teardownProcessing
void teardownProcessing()
Definition: TestProcessor.cc:367
edm::test::TestProcessor::testBeginRun
edm::test::Run testBeginRun(edm::RunNumber_t iNum, T &&... iArgs)
Definition: TestProcessor.h:184
edm::test::TestProcessor::event
void event()
Definition: TestProcessor.cc:538
edm::test::TestProcessorConfig::esProduceEntries_
std::vector< ESProduceEntry > esProduceEntries_
Definition: TestProcessor.h:147
edm::test::TestProcessor::testImpl
edm::test::Event testImpl(std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:256
edm::test::TestProcessor::beginProcessBlockCalled_
bool beginProcessBlockCalled_
Definition: TestProcessor.h:358
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
Config
Definition: Config.py:1
EventSetupRecordKey.h
edm::test::TestProcessorConfig::ProduceEntry
Definition: TestProcessor.h:124
edm::test::TestProcessor::endJob
void endJob()
Definition: TestProcessor.cc:707
ProcessContext.h
edm::test::TestProcessor::moduleRegistry_
std::shared_ptr< ModuleRegistry > moduleRegistry_
Definition: TestProcessor.h:348
edm::test::TestProcessor::beginLuminosityBlock
void beginLuminosityBlock()
Definition: TestProcessor.cc:488
edm::test::TestProcessor::endProcessBlock
ProcessBlockPrincipal const * endProcessBlock()
Definition: TestProcessor.cc:684
edm::test::TestProcessor::principalCache_
PrincipalCache principalCache_
Definition: TestProcessor.h:345
edm::test::TestProcessorConfig::esProduceEntries
std::vector< ESProduceEntry > const & esProduceEntries() const
Definition: TestProcessor.h:141
edm::test::TestProcessor::lumiNumber_
LuminosityBlockNumber_t lumiNumber_
Definition: TestProcessor.h:355
edm::test::TestProcessorConfig::produces
edm::EDPutTokenT< T > produces(std::string iModuleLabel, std::string iProductInstanceLabel=std::string(), ProcessToken iToken=ProcessToken())
Definition: TestProcessor.h:108
EventSetupTestHelper.h
edm::test::TestProcessor::act_table_
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: TestProcessor.h:338
TestDataProxy.h
edm::test::TestProcessor::preallocations_
PreallocationConfiguration preallocations_
Definition: TestProcessor.h:346
edm::test::TestProcessorConfig::ProduceEntry::ProduceEntry
ProduceEntry(edm::TypeID const &iType, std::string moduleLabel, std::string instanceLabel, std::string processName)
Definition: TestProcessor.h:125