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 #include "tbb/task_group.h"
28 
29 // user include files
43 
47 
56 
58 
59 // forward declarations
60 
61 namespace edm {
62  class ThinnedAssociationsHelper;
63  class ExceptionToActionTable;
64  class HistoryAppender;
65 
66  namespace eventsetup {
67  class EventSetupProvider;
68  class EventSetupsController;
69  } // namespace eventsetup
70 
71  namespace test {
72  class TestProcessorConfig;
74 
75  class ProcessToken {
77 
78  public:
80 
81  int index() const { return index_; }
82 
83  static int undefinedIndex() { return -1; }
84 
85  private:
86  explicit ProcessToken(int index) : index_{index} {}
87 
88  int index_;
89  };
90 
92  public:
93  TestProcessorConfig(std::string const& iPythonConfiguration) : config_(iPythonConfiguration) {}
94  std::string const& pythonConfiguration() const { return config_; }
95  void setPythonConfiguration(std::string iConfig) { config_ = std::move(iConfig); }
96 
99  ProcessToken addExtraProcess(std::string const& iProcessName) {
100  extraProcesses_.emplace_back(iProcessName);
101  return ProcessToken(extraProcesses_.size() - 1);
102  }
103 
104  std::vector<std::string> const& extraProcesses() const { return extraProcesses_; }
105 
109  template <typename T>
111  std::string iProductInstanceLabel = std::string(),
112  ProcessToken iToken = ProcessToken()) {
113  produceEntries_.emplace_back(
114  edm::TypeID(typeid(T)), std::move(iModuleLabel), std::move(iProductInstanceLabel), processName(iToken));
115  return edm::EDPutTokenT<T>(produceEntries_.size() - 1);
116  }
117 
118  template <typename REC, typename T>
120  auto rk = eventsetup::EventSetupRecordKey::makeKey<REC>();
121  eventsetup::DataKey dk(eventsetup::DataKey::makeTypeTag<T>(), iLabel.c_str());
122  esProduceEntries_.emplace_back(rk, dk, std::make_shared<TestDataProxy<T>>());
123  return edm::test::ESPutTokenT<T>(esProduceEntries_.size() - 1);
124  }
125 
126  struct ProduceEntry {
127  ProduceEntry(edm::TypeID const& iType,
129  std::string instanceLabel,
131  : type_{iType},
133  instanceLabel_{std::move(instanceLabel)},
139  };
140 
141  std::vector<ProduceEntry> const& produceEntries() const { return produceEntries_; }
142 
143  std::vector<ESProduceEntry> const& esProduceEntries() const { return esProduceEntries_; }
144 
145  private:
147  std::vector<std::string> extraProcesses_;
148  std::vector<ProduceEntry> produceEntries_;
149  std::vector<ESProduceEntry> esProduceEntries_;
150 
152  if (iToken.index() == ProcessToken::undefinedIndex()) {
153  return std::string();
154  }
155  return extraProcesses_[iToken.index()];
156  }
157  };
158 
160  public:
162 
163  TestProcessor(Config const& iConfig, ServiceToken iToken = ServiceToken());
164  TestProcessor(const TestProcessor&) = delete;
165  const TestProcessor& operator=(const TestProcessor&) = delete;
166  ~TestProcessor() noexcept(false);
167 
171  template <typename... T>
172  edm::test::Event test(T&&... iArgs) {
173  return testImpl(std::forward<T>(iArgs)...);
174  }
175 
176  template <typename... T>
178  return testBeginLuminosityBlockImpl(iNum, std::forward<T>(iArgs)...);
179  }
180  template <typename... T>
182  return testEndLuminosityBlockImpl(std::forward<T>(iArgs)...);
183  }
184 
185  template <typename... T>
187  return testBeginRunImpl(iNum, std::forward<T>(iArgs)...);
188  }
189  template <typename... T>
191  return testEndRunImpl(std::forward<T>(iArgs)...);
192  }
193 
194  // It makes no sense to pass EventSetup products and at least
195  // for now Runs, Lumis, and ProcessBlocks don't allow passing
196  // in other products. So for now these don't need to be templates
197  // for ProcessBlock.
199 
201 
206  arena_.execute([this]() {
207  beginJob();
208  endJob();
209  });
210  }
211 
212  void testWithNoRuns() {
213  arena_.execute([this]() {
214  beginJob();
216  endProcessBlock();
217  endJob();
218  });
219  }
220 
222  arena_.execute([this]() {
223  beginJob();
225  beginRun();
226  endRun();
227  endProcessBlock();
228  endJob();
229  });
230  }
231 
233  arena_.execute([this]() {
234  beginJob();
236  beginRun();
239  endRun();
240  endProcessBlock();
241  endJob();
242  });
243  }
247 
249 
250  private:
251  template <typename T, typename... U>
252  edm::test::Event testImpl(std::pair<edm::EDPutTokenT<T>, std::unique_ptr<T>>&& iPut, U&&... iArgs) {
253  put(std::move(iPut));
254  return testImpl(std::forward<U>(iArgs)...);
255  }
256 
257  template <typename T, typename... U>
258  edm::test::Event testImpl(std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut, U&&... iArgs) {
259  put(std::move(iPut));
260  return testImpl(std::forward<U>(iArgs)...);
261  }
262 
263  template <typename T>
264  void put(std::pair<edm::EDPutTokenT<T>, std::unique_ptr<T>>&& iPut) {
265  put(iPut.first.index(), std::make_unique<edm::Wrapper<T>>(std::move(iPut.second)));
266  }
267 
268  template <typename T>
269  void put(std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut) {
270  dynamic_cast<TestDataProxy<T>*>(esHelper_->getProxy(iPut.first.index()).get())->setData(std::move(iPut.second));
271  }
272 
273  void put(unsigned int, std::unique_ptr<WrapperBase>);
274 
276 
277  template <typename T, typename... U>
280  std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut,
281  U&&... iArgs) {
282  put(std::move(iPut));
283  return testBeginLuminosityBlockImpl(iNum, std::forward<U>(iArgs)...);
284  }
286 
287  template <typename T, typename... U>
289  std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut, U&&... iArgs) {
290  put(std::move(iPut));
291  return testEndLuminosityBlockImpl(std::forward<U>(iArgs)...);
292  }
294 
295  template <typename T, typename... U>
297  std::pair<edm::test::ESPutTokenT<T>, std::unique_ptr<T>>&& iPut,
298  U&&... iArgs) {
299  put(std::move(iPut));
300  return testBeginRunImpl(iNum, std::forward<U>(iArgs)...);
301  }
303  template <typename T, typename... U>
305  U&&... iArgs) {
306  put(std::move(iPut));
307  return testEndRunImpl(std::forward<U>(iArgs)...);
308  }
310 
313 
314  void setupProcessing();
315  void teardownProcessing();
316 
317  void beginJob();
318  void beginProcessBlock();
319  void beginRun();
320  void beginLuminosityBlock();
321  void event();
322  std::shared_ptr<LuminosityBlockPrincipal> endLuminosityBlock();
323  std::shared_ptr<RunPrincipal> endRun();
325  void endJob();
326 
327  // ---------- member data --------------------------------
328  tbb::global_control globalControl_;
329  tbb::task_group taskGroup_;
330  tbb::task_arena arena_;
332  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
333  std::shared_ptr<ProductRegistry> preg_;
334  std::shared_ptr<BranchIDListHelper> branchIDListHelper_;
335  std::shared_ptr<ProcessBlockHelper> processBlockHelper_;
336  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper_;
338  std::unique_ptr<eventsetup::EventSetupsController> espController_;
339  std::shared_ptr<eventsetup::EventSetupProvider> esp_;
340  std::shared_ptr<EventSetupTestHelper> esHelper_;
341 
342  std::unique_ptr<ExceptionToActionTable const> act_table_;
343  std::shared_ptr<ProcessConfiguration const> processConfiguration_;
345 
347  std::unique_ptr<HistoryAppender> historyAppender_;
348 
351 
352  std::shared_ptr<ModuleRegistry> moduleRegistry_;
353  std::unique_ptr<Schedule> schedule_;
354  std::shared_ptr<LuminosityBlockPrincipal> lumiPrincipal_;
355 
356  std::vector<std::pair<edm::BranchDescription, std::unique_ptr<WrapperBase>>> dataProducts_;
357 
361  bool beginJobCalled_ = false;
363  bool beginRunCalled_ = false;
364  bool beginLumiCalled_ = false;
365  };
366  } // namespace test
367 } // namespace edm
368 
369 #endif
edm::test::TestProcessor::put
void put(std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut)
Definition: TestProcessor.h:269
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm::test::TestProcessorConfig::extraProcesses_
std::vector< std::string > extraProcesses_
Definition: TestProcessor.h:147
edm::test::TestProcessor::setLuminosityBlockNumber
void setLuminosityBlockNumber(edm::LuminosityBlockNumber_t)
Definition: TestProcessor.cc:768
edm::test::ProcessToken
Definition: TestProcessor.h:75
edm::test::TestProcessorConfig::addExtraProcess
ProcessToken addExtraProcess(std::string const &iProcessName)
Definition: TestProcessor.h:99
edm::test::TestProcessor::labelOfTestModule
std::string const & labelOfTestModule() const
Definition: TestProcessor.h:248
funct::false
false
Definition: Factorize.h:29
edm::test::TestProcessor::~TestProcessor
~TestProcessor() noexcept(false)
Definition: TestProcessor.cc:201
edm::test::TestProcessor::thinnedAssociationsHelper_
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
Definition: TestProcessor.h:336
edm::test::TestProcessor::TestProcessor
TestProcessor(Config const &iConfig, ServiceToken iToken=ServiceToken())
Definition: TestProcessor.cc:82
edm::test::TestProcessor::testLuminosityBlockWithNoEvents
void testLuminosityBlockWithNoEvents()
Definition: TestProcessor.h:232
edm::test::TestProcessor::globalControl_
tbb::global_control globalControl_
Definition: TestProcessor.h:328
edm::test::TestProcessor::testImpl
edm::test::Event testImpl(std::pair< edm::EDPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:252
edm::test::TestProcessorConfig::ProduceEntry::type_
edm::TypeID type_
Definition: TestProcessor.h:135
edm::test::TestProcessor::setRunNumber
void setRunNumber(edm::RunNumber_t)
Definition: TestProcessor.cc:761
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::test::TestProcessor::testEndRunImpl
edm::test::Run testEndRunImpl()
Definition: TestProcessor.cc:308
edm::test::ProcessToken::ProcessToken
ProcessToken()
Definition: TestProcessor.h:79
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:119
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:278
edm::test::TestProcessor::processBlockHelper_
std::shared_ptr< ProcessBlockHelper > processBlockHelper_
Definition: TestProcessor.h:335
edm::test::TestProcessor::processHistoryRegistry_
ProcessHistoryRegistry processHistoryRegistry_
Definition: TestProcessor.h:346
edm::test::TestProcessor::testBeginProcessBlock
edm::test::ProcessBlock testBeginProcessBlock()
Definition: TestProcessor.h:198
edm::test::TestProcessorConfig::produceEntries_
std::vector< ProduceEntry > produceEntries_
Definition: TestProcessor.h:148
edm::test::TestProcessorConfig::processName
std::string processName(ProcessToken iToken)
Definition: TestProcessor.h:151
edm::eventsetup::DataKey
Definition: DataKey.h:29
SignallingProductRegistry.h
edm::test::TestProcessor::labelOfTestModule_
std::string labelOfTestModule_
Definition: TestProcessor.h:331
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:141
edm::test::TestProcessor::beginRunCalled_
bool beginRunCalled_
Definition: TestProcessor.h:363
edm::test::TestProcessor::serviceToken_
ServiceToken serviceToken_
Definition: TestProcessor.h:337
edm::test::TestProcessor::testBeginLuminosityBlock
edm::test::LuminosityBlock testBeginLuminosityBlock(edm::LuminosityBlockNumber_t iNum, T &&... iArgs)
Definition: TestProcessor.h:177
edm::test::TestProcessor::processConfiguration_
std::shared_ptr< ProcessConfiguration const > processConfiguration_
Definition: TestProcessor.h:343
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::test::TestProcessor::endLuminosityBlock
std::shared_ptr< LuminosityBlockPrincipal > endLuminosityBlock()
Definition: TestProcessor.cc:587
edm::test::TestProcessor::lumiPrincipal_
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
Definition: TestProcessor.h:354
edm::test::ProcessToken::index_
int index_
Definition: TestProcessor.h:88
edm::test::TestProcessor::testEndProcessBlockImpl
edm::test::ProcessBlock testEndProcessBlockImpl()
Definition: TestProcessor.cc:342
edm::ProcessBlockPrincipal
Definition: ProcessBlockPrincipal.h:22
edm::test::LuminosityBlock
Definition: LuminosityBlock.h:35
edm::test::TestProcessorConfig
Definition: TestProcessor.h:91
edm::test::TestProcessor::testEndLuminosityBlock
edm::test::LuminosityBlock testEndLuminosityBlock(T &&... iArgs)
Definition: TestProcessor.h:181
ESProduceEntry.h
edm::test::ESPutTokenT
Definition: ESPutTokenT.h:31
edm::test::TestProcessor::runNumber_
RunNumber_t runNumber_
Definition: TestProcessor.h:358
ActivityRegistry.h
edm::test::TestProcessor::beginRun
void beginRun()
Definition: TestProcessor.cc:446
edm::test::TestProcessor::testBeginProcessBlockImpl
edm::test::ProcessBlock testBeginProcessBlockImpl()
Definition: TestProcessor.cc:332
SharedResourcesAcquirer.h
edm::ServiceToken
Definition: ServiceToken.h:42
test
Definition: SmallWORMDict.h:13
LuminosityBlock.h
edm::test::ProcessToken::TestProcessorConfig
friend TestProcessorConfig
Definition: TestProcessor.h:76
edm::PrincipalCache
Definition: PrincipalCache.h:48
edm::test::TestProcessor::beginLumiCalled_
bool beginLumiCalled_
Definition: TestProcessor.h:364
edm::test::TestProcessor::testEndProcessBlock
edm::test::ProcessBlock testEndProcessBlock()
Definition: TestProcessor.h:200
edm::test::TestProcessor::setupProcessing
void setupProcessing()
Definition: TestProcessor.cc:355
edm::test::TestProcessorConfig::config_
std::string config_
Definition: TestProcessor.h:146
ESPutTokenT.h
edm::test::TestProcessor::historyAppender_
std::unique_ptr< HistoryAppender > historyAppender_
Definition: TestProcessor.h:347
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::test::TestProcessor::preg_
std::shared_ptr< ProductRegistry > preg_
Definition: TestProcessor.h:333
edm::test::TestProcessor::testEndRun
edm::test::Run testEndRun(T &&... iArgs)
Definition: TestProcessor.h:190
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:356
edm::test::TestProcessor::beginJob
void beginJob()
Definition: TestProcessor.cc:395
edm::test::ProcessToken::undefinedIndex
static int undefinedIndex()
Definition: TestProcessor.h:83
edm::test::TestProcessorConfig::ProduceEntry::processName_
std::string processName_
Definition: TestProcessor.h:138
edm::test::TestDataProxy
Definition: TestDataProxy.h:34
edm::test::ProcessToken::ProcessToken
ProcessToken(int index)
Definition: TestProcessor.h:86
edm::test::TestProcessorConfig::TestProcessorConfig
TestProcessorConfig(std::string const &iPythonConfiguration)
Definition: TestProcessor.h:93
PrincipalCache.h
edm::test::TestProcessorConfig::ProduceEntry::instanceLabel_
std::string instanceLabel_
Definition: TestProcessor.h:137
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:296
edm::test::TestProcessor::testWithNoRuns
void testWithNoRuns()
Definition: TestProcessor.h:212
EDPutToken.h
EventSetupTestHelper
edm::test::TestProcessor::processContext_
ProcessContext processContext_
Definition: TestProcessor.h:344
edm::test::TestProcessor::taskGroup_
tbb::task_group taskGroup_
Definition: TestProcessor.h:329
edm::test::TestProcessor::endRun
std::shared_ptr< RunPrincipal > endRun()
Definition: TestProcessor.cc:644
DataKey.h
edm::test::TestProcessor::testEndLuminosityBlockImpl
edm::test::LuminosityBlock testEndLuminosityBlockImpl()
Definition: TestProcessor.cc:258
edm::get
T const & get(Event const &event, InputTag const &tag) noexcept(false)
Definition: Event.h:679
edm::test::TestProcessor::arena_
tbb::task_arena arena_
Definition: TestProcessor.h:330
edm::test::TestProcessor::eventNumber_
EventNumber_t eventNumber_
Definition: TestProcessor.h:360
Schedule.h
edm::test::TestProcessorConfig::pythonConfiguration
std::string const & pythonConfiguration() const
Definition: TestProcessor.h:94
edm::test::TestProcessor::testBeginAndEndJobOnly
void testBeginAndEndJobOnly()
Definition: TestProcessor.h:205
edm::test::TestProcessorConfig::ProduceEntry::moduleLabel_
std::string moduleLabel_
Definition: TestProcessor.h:136
edm::test::TestProcessor::branchIDListHelper_
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
Definition: TestProcessor.h:334
edm::test::TestProcessor::put
void put(std::pair< edm::EDPutTokenT< T >, std::unique_ptr< T >> &&iPut)
Definition: TestProcessor.h:264
edm::test::TestProcessor::beginJobCalled_
bool beginJobCalled_
Definition: TestProcessor.h:361
edm::test::TestProcessor
Definition: TestProcessor.h:159
svgfig.template
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
edm::test::TestProcessor::esHelper_
std::shared_ptr< EventSetupTestHelper > esHelper_
Definition: TestProcessor.h:340
ProcessBlock.h
edm::test::TestProcessor::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: TestProcessor.h:332
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::test::TestProcessor::setEventNumber
void setEventNumber(edm::EventNumber_t)
Definition: TestProcessor.cc:773
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:304
edm::test::TestProcessorConfig::extraProcesses
std::vector< std::string > const & extraProcesses() const
Definition: TestProcessor.h:104
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:288
ModuleRegistry.h
edm::TypeID
Definition: TypeID.h:22
edm::test::TestProcessor::testRunWithNoLuminosityBlocks
void testRunWithNoLuminosityBlocks()
Definition: TestProcessor.h:221
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:339
edm::test::TestProcessor::testImpl
edm::test::Event testImpl()
Definition: TestProcessor.cc:215
edm::test::TestProcessor::schedule_
std::unique_ptr< Schedule > schedule_
Definition: TestProcessor.h:353
T
long double T
Definition: Basic3DVectorLD.h:48
ServiceLegacy.h
edm::test::TestProcessor::beginProcessBlock
void beginProcessBlock()
Definition: TestProcessor.cc:425
edm::test::TestProcessorConfig::setPythonConfiguration
void setPythonConfiguration(std::string iConfig)
Definition: TestProcessor.h:95
edm::test::ProcessBlock
Definition: ProcessBlock.h:31
edm::test::TestProcessor::espController_
std::unique_ptr< eventsetup::EventSetupsController > espController_
Definition: TestProcessor.h:338
edm::ProcessHistoryRegistry
Definition: ProcessHistoryRegistry.h:18
edm::test::ProcessToken::index
int index() const
Definition: TestProcessor.h:81
edm::test::TestProcessor::teardownProcessing
void teardownProcessing()
Definition: TestProcessor.cc:370
edm::test::TestProcessor::testBeginRun
edm::test::Run testBeginRun(edm::RunNumber_t iNum, T &&... iArgs)
Definition: TestProcessor.h:186
edm::test::TestProcessor::event
void event()
Definition: TestProcessor.cc:548
edm::test::TestProcessorConfig::esProduceEntries_
std::vector< ESProduceEntry > esProduceEntries_
Definition: TestProcessor.h:149
edm::test::TestProcessor::testImpl
edm::test::Event testImpl(std::pair< edm::test::ESPutTokenT< T >, std::unique_ptr< T >> &&iPut, U &&... iArgs)
Definition: TestProcessor.h:258
edm::test::TestProcessor::beginProcessBlockCalled_
bool beginProcessBlockCalled_
Definition: TestProcessor.h:362
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
Config
Definition: Config.py:1
EventSetupRecordKey.h
edm::test::TestProcessorConfig::ProduceEntry
Definition: TestProcessor.h:126
edm::test::TestProcessor::endJob
void endJob()
Definition: TestProcessor.cc:735
ProcessContext.h
edm::test::TestProcessor::moduleRegistry_
std::shared_ptr< ModuleRegistry > moduleRegistry_
Definition: TestProcessor.h:352
edm::test::TestProcessor::beginLuminosityBlock
void beginLuminosityBlock()
Definition: TestProcessor.cc:496
edm::test::TestProcessor::endProcessBlock
ProcessBlockPrincipal const * endProcessBlock()
Definition: TestProcessor.cc:707
edm::test::TestProcessor::principalCache_
PrincipalCache principalCache_
Definition: TestProcessor.h:349
edm::test::TestProcessorConfig::esProduceEntries
std::vector< ESProduceEntry > const & esProduceEntries() const
Definition: TestProcessor.h:143
edm::test::TestProcessor::lumiNumber_
LuminosityBlockNumber_t lumiNumber_
Definition: TestProcessor.h:359
edm::test::TestProcessorConfig::produces
edm::EDPutTokenT< T > produces(std::string iModuleLabel, std::string iProductInstanceLabel=std::string(), ProcessToken iToken=ProcessToken())
Definition: TestProcessor.h:110
EventSetupTestHelper.h
edm::test::TestProcessor::act_table_
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: TestProcessor.h:342
TestDataProxy.h
edm::test::TestProcessor::preallocations_
PreallocationConfiguration preallocations_
Definition: TestProcessor.h:350
edm::test::TestProcessorConfig::ProduceEntry::ProduceEntry
ProduceEntry(edm::TypeID const &iType, std::string moduleLabel, std::string instanceLabel, std::string processName)
Definition: TestProcessor.h:127
FWCoreCommonFwd.h