1 #ifndef FWCore_Framework_Schedule_h 2 #define FWCore_Framework_Schedule_h 95 class TriggerNamesService;
98 class BranchIDListHelper;
100 class ExceptionCollector;
101 class OutputModuleCommunicator;
102 class ProcessContext;
103 class ProductRegistry;
104 class PreallocationConfiguration;
105 class StreamSchedule;
106 class GlobalSchedule;
107 struct TriggerTimingReport;
108 class ModuleRegistry;
109 class ThinnedAssociationsHelper;
110 class TriggerResultInserter;
128 std::shared_ptr<ActivityRegistry> areg,
129 std::shared_ptr<ProcessConfiguration> processConfiguration,
130 bool hasSubprocesses,
135 unsigned int iStreamID,
139 template <
typename T>
140 void processOneGlobal(
typename T::MyPrincipal&
principal,
142 bool cleaningUpAfterException =
false);
144 template <
typename T>
145 void processOneStream(
unsigned int iStreamID,
148 bool cleaningUpAfterException =
false);
153 void beginStream(
unsigned int);
154 void endStream(
unsigned int);
163 void closeOutputFiles();
166 void openNewOutputFilesIfNeeded();
178 bool shouldWeCloseOutput()
const;
180 void preForkReleaseResources();
181 void postForkReacquireResources(
unsigned int iChildIndex,
unsigned int iNumberOfChildren);
189 std::vector<ModuleDescription const*> getAllModuleDescriptions()
const;
192 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
197 void triggerPaths(std::vector<std::string>& oLabelsToFill)
const;
200 void endPaths(std::vector<std::string>& oLabelsToFill)
const;
204 std::vector<std::string>& oLabelsToFill)
const;
208 void moduleDescriptionsInPath(
std::string const& iPathLabel,
209 std::vector<ModuleDescription const*>& descriptions,
210 unsigned int hint)
const;
214 void moduleDescriptionsInEndPath(
std::string const& iEndPathLabel,
215 std::vector<ModuleDescription const*>& descriptions,
216 unsigned int hint)
const;
218 void fillModuleAndConsumesInfo(std::vector<ModuleDescription const*>& allModuleDescriptions,
219 std::vector<std::pair<unsigned int, unsigned int> >& moduleIDToIndex,
220 std::vector<std::vector<ModuleDescription const*> >& modulesWhoseProductsAreConsumedBy,
226 int totalEvents()
const;
230 int totalEventsPassed()
const;
234 int totalEventsFailed()
const;
238 void enableEndPaths(
bool active);
242 bool endPathsEnabled()
const;
253 bool terminate()
const;
256 void clearCounters();
263 AllWorkers
const& allWorkers()
const;
291 template <
typename T>
293 typename T::MyPrincipal& ep,
295 bool cleaningUpAfterException) {
296 assert(iStreamID<streamSchedules_.size());
297 streamSchedules_[iStreamID]->processOneStream<
T>(ep,es,cleaningUpAfterException);
299 template <
typename T>
303 bool cleaningUpAfterException) {
304 globalSchedule_->processOneGlobal<
T>(ep,es,cleaningUpAfterException);
std::vector< BranchIDList > BranchIDLists
roAction_t actions[nactions]
std::shared_ptr< ModuleRegistry const > moduleRegistry() const
std::vector< Worker * > AllWorkers
edm::propagate_const< std::unique_ptr< SystemTimeKeeper > > summaryTimeKeeper_
edm::propagate_const< std::unique_ptr< GlobalSchedule > > globalSchedule_
std::shared_ptr< TriggerResultInserter > & resultsInserter()
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
void processOneGlobal(typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
PreallocationConfiguration preallocConfig_
std::vector< edm::propagate_const< std::shared_ptr< StreamSchedule > > > streamSchedules_
volatile bool endpathsAreActive_
std::shared_ptr< TriggerResultInserter const > resultsInserter() const
AllOutputModuleCommunicators all_output_communicators_
std::vector< edm::propagate_const< std::shared_ptr< OutputModuleCommunicator > > > AllOutputModuleCommunicators
void processOneStream(unsigned int iStreamID, typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
std::shared_ptr< ModuleRegistry > & moduleRegistry()
static std::string const triggerPaths