CMS 3D CMS Logo

TestSourceProcessor.h
Go to the documentation of this file.
1 #ifndef FWCore_TestProcessor_TestSourceProcessor_h
2 #define FWCore_TestProcessor_TestSourceProcessor_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/TestProcessor
6 // Class : TestSourceProcessor
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Mon, 30 Apr 2018 18:51:00 GMT
19 //
20 #include <string>
21 #include <utility>
22 #include <memory>
23 #include "oneapi/tbb/global_control.h"
24 #include "oneapi/tbb/task_arena.h"
25 #include "oneapi/tbb/task_group.h"
26 
28 
30 
38 
43 
48 
49 namespace edm::test {
50 
52  public:
53  TestSourceProcessor(std::string const& iConfig, ServiceToken iToken = ServiceToken());
55 
57 
58  std::shared_ptr<FileBlock> openFile();
59  void closeFile(std::shared_ptr<FileBlock>);
60 
62 
64 
66 
67  private:
69 
70  oneapi::tbb::global_control globalControl_;
71  oneapi::tbb::task_group taskGroup_;
72  oneapi::tbb::task_arena arena_;
73  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
74  std::shared_ptr<ProductRegistry> preg_;
75  std::shared_ptr<BranchIDListHelper> branchIDListHelper_;
76  std::shared_ptr<ProcessBlockHelper> processBlockHelper_;
77  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper_;
79 
80  std::shared_ptr<ProcessConfiguration const> processConfiguration_;
83 
85  std::unique_ptr<HistoryAppender> historyAppender_;
86 
89 
90  std::unique_ptr<edm::InputSource> source_;
91 
92  std::shared_ptr<RunPrincipal> runPrincipal_;
93  std::shared_ptr<LuminosityBlockPrincipal> lumiPrincipal_;
94 
95  std::shared_ptr<FileBlock> fb_;
96  };
97 } // namespace edm::test
98 
99 #endif
std::shared_ptr< ActivityRegistry > actReg_
edm::test::LuminosityBlockFromSource readLuminosityBlock()
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
std::shared_ptr< ProcessConfiguration const > processConfiguration_
oneapi::tbb::task_group taskGroup_
std::shared_ptr< ProductRegistry > preg_
ProcessHistoryRegistry processHistoryRegistry_
std::shared_ptr< FileBlock > fb_
InputSource::ItemTypeInfo findNextTransition()
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
oneapi::tbb::task_arena arena_
std::shared_ptr< FileBlock > openFile()
std::unique_ptr< HistoryAppender > historyAppender_
MergeableRunProductProcesses mergeableRunProductProcesses_
std::shared_ptr< ProcessBlockHelper > processBlockHelper_
edm::test::EventFromSource readEvent()
oneapi::tbb::global_control globalControl_
std::shared_ptr< RunPrincipal > runPrincipal_
std::unique_ptr< edm::InputSource > source_
edm::InputSource::ItemTypeInfo lastTransition_
edm::test::RunFromSource readRun()
TestSourceProcessor(std::string const &iConfig, ServiceToken iToken=ServiceToken())
void closeFile(std::shared_ptr< FileBlock >)
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
PreallocationConfiguration preallocations_