1 #ifndef art_Framework_Core_Schedule_h 2 #define art_Framework_Core_Schedule_h 27 class ActivityRegistry;
29 class SharedResources;
39 std::unique_ptr<Worker> triggerResultsInserter,
50 void process_event_modifiers(hep::concurrency::WaitingTaskPtr endPathTask);
51 void process_event_observers(
52 hep::concurrency::WaitingTaskPtr finalizeEventTask);
55 void respondToOpenInputFile(
FileBlock const&);
56 void respondToCloseInputFile(
FileBlock const&);
57 void respondToOpenOutputFiles(
FileBlock const&);
58 void respondToCloseOutputFiles(
FileBlock const&);
64 return epExec_.outputsToOpen();
70 return epExec_.outputsToClose();
76 return epExec_.recordOutputClosureRequests(granularity);
82 return epExec_.someOutputsOpen();
88 epExec_.closeAllOutputFiles();
94 epExec_.openSomeOutputFiles(fb);
100 epExec_.closeSomeOutputFiles();
106 assert(eventPrincipal_);
107 epExec_.writeEvent(*eventPrincipal_);
109 eventPrincipal_.reset();
115 epExec_.incrementInputFileNumber();
121 epExec_.setOutputFileStatus(ofs);
127 return epExec_.fileStatus_.load();
133 return epExec_.allAtLimit();
140 epExec_.seedRunRangeSet(rsh);
146 epExec_.setRunAuxiliaryRangeSetID(rs);
152 epExec_.writeRun(rp);
158 return *epExec_.runRangeSetHandler_.get();
165 epExec_.seedSubRunRangeSet(rsh);
170 epExec_.setSubRunAuxiliaryRangeSetID(rs);
175 epExec_.writeSubRun(srp);
181 return *epExec_.subRunRangeSetHandler_.get();
194 assert(eventPrincipal_);
195 return *eventPrincipal_;
198 class EndPathRunnerTask;
206 std::unique_ptr<EventPrincipal> eventPrincipal_{
nullptr};
void closeAllOutputFiles()
void setSubRunAuxiliaryRangeSetID(RangeSet const &rs)
RangeSetHandler const & runRangeSetHandler()
ActivityRegistry const & actReg_
bool outputsToClose() const
void seedSubRunRangeSet(RangeSetHandler const &rsh)
ScheduleContext const context_
void setRunAuxiliaryRangeSetID(RangeSet const &rs)
TriggerPathsExecutor tpsExec_
EventPrincipal & event_principal()
RangeSetHandler const & subRunRangeSetHandler()
void recordOutputClosureRequests(Granularity const granularity)
OutputFileStatus fileStatus() const
void incrementInputFileNumber()
bool outputsToOpen() const
ActionTable const & actions_
void closeSomeOutputFiles()
void accept_principal(std::unique_ptr< EventPrincipal > principal)
Namespace containing all the test actions.
void seedRunRangeSet(RangeSetHandler const &rsh)
void writeRun(RunPrincipal &rp)
void openSomeOutputFiles(FileBlock const &fb)
void writeSubRun(SubRunPrincipal &srp)
void setOutputFileStatus(OutputFileStatus const ofs)
bool someOutputsOpen() const