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,
144 template <
typename T>
148 bool cleaningUpAfterException =
false);
150 template <
typename T>
152 unsigned int iStreamID,
155 bool cleaningUpAfterException =
false);
160 void beginStream(
unsigned int);
161 void endStream(
unsigned int);
170 void closeOutputFiles();
182 bool shouldWeCloseOutput()
const;
190 std::vector<ModuleDescription const*> getAllModuleDescriptions()
const;
193 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
198 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
201 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
205 std::vector<std::string>& oLabelsToFill)
const;
209 void moduleDescriptionsInPath(
std::string const& iPathLabel,
210 std::vector<ModuleDescription const*>& descriptions,
211 unsigned int hint)
const;
215 void moduleDescriptionsInEndPath(
std::string const& iEndPathLabel,
216 std::vector<ModuleDescription const*>& descriptions,
217 unsigned int hint)
const;
219 void fillModuleAndConsumesInfo(std::vector<ModuleDescription const*>& allModuleDescriptions,
220 std::vector<std::pair<unsigned int, unsigned int> >& moduleIDToIndex,
221 std::vector<std::vector<ModuleDescription const*> >& modulesWhoseProductsAreConsumedBy,
227 int totalEvents()
const;
231 int totalEventsPassed()
const;
235 int totalEventsFailed()
const;
239 void enableEndPaths(
bool active);
243 bool endPathsEnabled()
const;
254 bool terminate()
const;
257 void clearCounters();
264 AllWorkers
const& allWorkers()
const;
301 template <
typename T>
303 unsigned int iStreamID,
304 typename T::MyPrincipal& ep,
306 bool cleaningUpAfterException) {
307 assert(iStreamID<streamSchedules_.size());
308 streamSchedules_[iStreamID]->processOneStreamAsync<
T>(
std::move(iTaskHolder),ep,es,cleaningUpAfterException);
311 template <
typename T>
314 typename T::MyPrincipal& ep,
316 bool cleaningUpAfterException) {
317 globalSchedule_->processOneGlobalAsync<
T>(iTaskHolder,ep,es,cleaningUpAfterException);
void processOneGlobalAsync(WaitingTaskHolder iTask, typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
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_
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 processOneStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamID, typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
static std::string const triggerPaths