43 return "LuminosityBlock";
58 std::unique_ptr<InputSource>
makeInput(
unsigned int moduleIndex,
60 std::shared_ptr<ProductRegistry> preg,
61 std::shared_ptr<BranchIDListHelper> branchIDListHelper,
62 std::shared_ptr<ProcessBlockHelper>
const& processBlockHelper,
63 std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper,
64 std::shared_ptr<ActivityRegistry> areg,
65 std::shared_ptr<ProcessConfiguration const> processConfiguration,
68 if (main_input ==
nullptr) {
70 <<
"There must be exactly one source in the configuration.\n" 71 <<
"It is missing (or there are sufficient syntax errors such that it is not recognized as the source)\n";
76 std::unique_ptr<ParameterSetDescriptionFillerBase>
filler(
79 filler->fill(descriptions);
81 descriptions.validate(*main_input,
std::string(
"source"));
94 processConfiguration.get(),
98 md, preg, branchIDListHelper, processBlockHelper, thinnedAssociationsHelper, areg, -1, -1, 0, allocations);
107 : globalControl_(oneapi::tbb::global_control::max_allowed_parallelism, 1),
115 auto psetPtr =
desc.parameterSet();
119 auto procDesc =
desc.processDesc();
124 auto& serviceSets = procDesc->getServicesPSets();
132 items.initMisc(*psetPtr);
136 auto nConcurrentLumis = 1
U;
137 auto nConcurrentRuns = 1
U;
144 auto tempReg = std::make_shared<ProductRegistry>();
151 items.branchIDListHelper(),
153 items.thinnedAssociationsHelper(),
155 items.processConfiguration(),
157 items.preg()->addFromInput(*tempReg);
175 auto ep = std::make_shared<EventPrincipal>(
180 auto rp = std::make_unique<RunPrincipal>(
203 std::cerr <<
" caught exception while destroying TestSourceProcessor\n" << iExcept.what();
219 size_t size =
preg_->size();
221 if (size < preg_->size()) {
226 source_->fillProcessBlockHelper();
228 while (
source_->nextProcessBlock(processBlockPrincipal)) {
229 source_->readProcessBlock(processBlockPrincipal);
235 if (iBlock.get() !=
fb_.get()) {
237 <<
"closeFile given a FileBlock that does not correspond to the one returned by openFile";
std::shared_ptr< ActivityRegistry > actReg_
void setProcessesWithMergeableRunProducts(ProductRegistry const &productRegistry)
T getParameter(std::string const &) const
edm::test::LuminosityBlockFromSource readLuminosityBlock()
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
void setNumberOfConcurrentPrincipals(PreallocationConfiguration const &)
def create(alignables, pedeDump, additionalData, outputFile, config)
std::shared_ptr< ProcessConfiguration const > processConfiguration_
ProcessBlockPrincipal & inputProcessBlockPrincipal() const
std::shared_ptr< RunPrincipal > getAvailableRunPrincipalPtr()
void adjustEventsToNewProductRegistry(std::shared_ptr< ProductRegistry const >)
std::shared_ptr< ProductRegistry > preg_
void adjustIndexesAfterProductRegistryAddition()
static unsigned int getUniqueID()
Returns a unique id each time called. Intended to be passed to ModuleDescription's constructor's modI...
TEMPL(T2) struct Divides void
void validateTopLevelParameterSets(ParameterSet *processParameterSet)
std::shared_ptr< FileBlock > fb_
InputSource::ItemTypeInfo findNextTransition()
ParameterSetID id() const
ParameterSet const & registerIt()
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
std::shared_ptr< FileBlock > openFile()
std::unique_ptr< HistoryAppender > historyAppender_
unsigned int numberOfStreams() const
MergeableRunProductProcesses mergeableRunProductProcesses_
std::shared_ptr< ProcessBlockHelper > processBlockHelper_
PrincipalCache principalCache_
edm::test::EventFromSource readEvent()
unsigned int numberOfRuns() const
void insert(std::unique_ptr< ProcessBlockPrincipal >)
void setProcessConfiguration(ProcessConfiguration const *processConfiguration)
std::unique_ptr< InputSource > makeInput(unsigned int moduleIndex, ParameterSet ¶ms, CommonParams const &common, std::shared_ptr< ProductRegistry > preg, std::shared_ptr< BranchIDListHelper > branchIDListHelper, std::shared_ptr< ProcessBlockHelper > const &processBlockHelper, std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration const > processConfiguration, PreallocationConfiguration const &allocations)
unsigned int numberOfLuminosityBlocks() const
std::shared_ptr< RunPrincipal > runPrincipal_
std::unique_ptr< edm::InputSource > source_
EventPrincipal & eventPrincipal(unsigned int iStreamIndex) const
edm::InputSource::ItemTypeInfo lastTransition_
ProcessContext processContext_
edm::test::RunFromSource readRun()
std::shared_ptr< LuminosityBlockPrincipal > getAvailableLumiPrincipalPtr()
TestSourceProcessor(std::string const &iConfig, ServiceToken iToken=ServiceToken())
ServiceToken serviceToken_
void closeFile(std::shared_ptr< FileBlock >)
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
bool oneTimeInitialization()
PreallocationConfiguration preallocations_