1 #ifndef FWCore_Framework_Schedule_h 2 #define FWCore_Framework_Schedule_h 96 class TriggerNamesService;
99 class BranchIDListHelper;
101 class ExceptionCollector;
102 class MergeableRunProductMetadata;
103 class OutputModuleCommunicator;
104 class ProcessContext;
105 class ProductRegistry;
106 class PreallocationConfiguration;
107 class StreamSchedule;
108 class GlobalSchedule;
109 struct TriggerTimingReport;
110 class ModuleRegistry;
111 class ThinnedAssociationsHelper;
112 class SubProcessParentageHelper;
113 class TriggerResultInserter;
114 class PathStatusInserter;
115 class EndPathStatusInserter;
134 std::shared_ptr<ActivityRegistry> areg,
135 std::shared_ptr<ProcessConfiguration> processConfiguration,
136 bool hasSubprocesses,
141 unsigned int iStreamID,
146 template <
typename T>
151 bool cleaningUpAfterException =
false);
153 template <
typename T>
155 unsigned int iStreamID,
159 bool cleaningUpAfterException =
false);
164 void beginStream(
unsigned int);
165 void endStream(
unsigned int);
181 void closeOutputFiles();
193 bool shouldWeCloseOutput()
const;
201 std::vector<ModuleDescription const*> getAllModuleDescriptions()
const;
204 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
209 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
212 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
216 std::vector<std::string>& oLabelsToFill)
const;
220 void moduleDescriptionsInPath(
std::string const& iPathLabel,
221 std::vector<ModuleDescription const*>& descriptions,
222 unsigned int hint)
const;
226 void moduleDescriptionsInEndPath(
std::string const& iEndPathLabel,
227 std::vector<ModuleDescription const*>& descriptions,
228 unsigned int hint)
const;
230 void fillModuleAndConsumesInfo(std::vector<ModuleDescription const*>& allModuleDescriptions,
231 std::vector<std::pair<unsigned int, unsigned int> >& moduleIDToIndex,
232 std::vector<std::vector<ModuleDescription const*> >& modulesWhoseProductsAreConsumedBy,
238 int totalEvents()
const;
242 int totalEventsPassed()
const;
246 int totalEventsFailed()
const;
250 void enableEndPaths(
bool active);
254 bool endPathsEnabled()
const;
265 bool terminate()
const;
268 void clearCounters();
275 AllWorkers
const& allWorkers()
const;
312 template <
typename T>
314 unsigned int iStreamID,
315 typename T::MyPrincipal& ep,
318 bool cleaningUpAfterException) {
319 assert(iStreamID<streamSchedules_.size());
320 streamSchedules_[iStreamID]->processOneStreamAsync<
T>(
std::move(iTaskHolder),ep,es,token,cleaningUpAfterException);
323 template <
typename T>
326 typename T::MyPrincipal& ep,
329 bool cleaningUpAfterException) {
330 globalSchedule_->processOneGlobalAsync<
T>(iTaskHolder,ep,es,token,cleaningUpAfterException);
std::vector< BranchIDList > BranchIDLists
roAction_t actions[nactions]
std::shared_ptr< ModuleRegistry const > moduleRegistry() const
std::vector< Worker * > AllWorkers
std::vector< std::string > const * pathNames_
edm::propagate_const< std::unique_ptr< SystemTimeKeeper > > summaryTimeKeeper_
edm::propagate_const< std::unique_ptr< GlobalSchedule > > globalSchedule_
std::shared_ptr< TriggerResultInserter > & resultsInserter()
std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter > > > pathStatusInserters_
edm::propagate_const< std::shared_ptr< TriggerResultInserter > > resultsInserter_
void processOneStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamID, typename T::MyPrincipal &principal, EventSetup const &eventSetup, ServiceToken const &token, bool cleaningUpAfterException=false)
std::vector< std::string > vstring
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< ModuleRegistry > > moduleRegistry_
std::vector< Worker * > Workers
PreallocationConfiguration preallocConfig_
std::vector< edm::propagate_const< std::shared_ptr< StreamSchedule > > > streamSchedules_
volatile bool endpathsAreActive_
std::shared_ptr< TriggerResultInserter const > resultsInserter() const
std::vector< edm::propagate_const< std::shared_ptr< EndPathStatusInserter > > > endPathStatusInserters_
AllOutputModuleCommunicators all_output_communicators_
std::vector< edm::propagate_const< std::shared_ptr< OutputModuleCommunicator > > > AllOutputModuleCommunicators
std::vector< std::string > const * endPathNames_
std::shared_ptr< ModuleRegistry > & moduleRegistry()
void processOneGlobalAsync(WaitingTaskHolder iTask, typename T::MyPrincipal &principal, EventSetup const &eventSetup, ServiceToken const &token, bool cleaningUpAfterException=false)
static std::string const triggerPaths