1 #ifndef FWCore_Framework_Schedule_h 2 #define FWCore_Framework_Schedule_h 96 class TriggerNamesService;
99 class BranchIDListHelper;
101 class ExceptionCollector;
102 class OutputModuleCommunicator;
103 class ProcessContext;
104 class ProductRegistry;
105 class PreallocationConfiguration;
106 class StreamSchedule;
107 class GlobalSchedule;
108 struct TriggerTimingReport;
109 class ModuleRegistry;
110 class ThinnedAssociationsHelper;
111 class SubProcessParentageHelper;
112 class TriggerResultInserter;
113 class PathStatusInserter;
114 class EndPathStatusInserter;
133 std::shared_ptr<ActivityRegistry> areg,
134 std::shared_ptr<ProcessConfiguration> processConfiguration,
135 bool hasSubprocesses,
140 unsigned int iStreamID,
145 template <
typename T>
150 bool cleaningUpAfterException =
false);
152 template <
typename T>
154 unsigned int iStreamID,
158 bool cleaningUpAfterException =
false);
163 void beginStream(
unsigned int);
164 void endStream(
unsigned int);
179 void closeOutputFiles();
191 bool shouldWeCloseOutput()
const;
199 std::vector<ModuleDescription const*> getAllModuleDescriptions()
const;
202 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
207 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
210 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
214 std::vector<std::string>& oLabelsToFill)
const;
218 void moduleDescriptionsInPath(
std::string const& iPathLabel,
219 std::vector<ModuleDescription const*>& descriptions,
220 unsigned int hint)
const;
224 void moduleDescriptionsInEndPath(
std::string const& iEndPathLabel,
225 std::vector<ModuleDescription const*>& descriptions,
226 unsigned int hint)
const;
228 void fillModuleAndConsumesInfo(std::vector<ModuleDescription const*>& allModuleDescriptions,
229 std::vector<std::pair<unsigned int, unsigned int> >& moduleIDToIndex,
230 std::vector<std::vector<ModuleDescription const*> >& modulesWhoseProductsAreConsumedBy,
236 int totalEvents()
const;
240 int totalEventsPassed()
const;
244 int totalEventsFailed()
const;
248 void enableEndPaths(
bool active);
252 bool endPathsEnabled()
const;
263 bool terminate()
const;
266 void clearCounters();
273 AllWorkers
const& allWorkers()
const;
310 template <
typename T>
312 unsigned int iStreamID,
313 typename T::MyPrincipal& ep,
316 bool cleaningUpAfterException) {
317 assert(iStreamID<streamSchedules_.size());
318 streamSchedules_[iStreamID]->processOneStreamAsync<
T>(
std::move(iTaskHolder),ep,es,token,cleaningUpAfterException);
321 template <
typename T>
324 typename T::MyPrincipal& ep,
327 bool cleaningUpAfterException) {
328 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