1 #ifndef FWCore_Framework_Schedule_h
2 #define FWCore_Framework_Schedule_h
83 #include "boost/shared_ptr.hpp"
95 class TriggerNamesService;
98 class BranchIDListHelper;
100 class ExceptionCollector;
101 class OutputModuleCommunicator;
102 class ProcessContext;
103 class PreallocationConfiguration;
104 class StreamSchedule;
105 class GlobalSchedule;
106 struct TriggerTimingReport;
107 class ModuleRegistry;
108 class TriggerResultInserter;
124 std::shared_ptr<ActivityRegistry>
areg,
130 template <
typename T>
134 bool cleaningUpAfterException =
false);
136 template <
typename T>
139 bool cleaningUpAfterException =
false);
141 template <
typename T>
145 bool cleaningUpAfterException =
false);
189 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
193 std::vector<std::string>& oLabelsToFill)
const;
261 template <
typename T>
263 typename T::MyPrincipal& ep,
265 bool cleaningUpAfterException) {
270 template <
typename T>
272 typename T::MyPrincipal& ep,
274 bool cleaningUpAfterException) {
276 streamSchedules_[iStreamID]->processOneStream<
T>(ep,es,cleaningUpAfterException);
278 template <
typename T>
282 bool cleaningUpAfterException) {
void checkForCorrectness() const
Check that the schedule is actually runable.
std::vector< BranchIDList > BranchIDLists
AllWorkers const & allWorkers() const
returns the collection of pointers to workers
void availablePaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all paths in the process
bool endPathsEnabled() const
Schedule(ParameterSet &proc_pset, service::TriggerNamesService &tns, ProductRegistry &pregistry, BranchIDListHelper &branchIDListHelper, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, const ParameterSet *subProcPSet, PreallocationConfiguration const &config, ProcessContext const *processContext)
void respondToCloseInputFile(FileBlock const &fb)
std::vector< Worker * > AllWorkers
void writeRun(RunPrincipal const &rp, ProcessContext const *)
void endStream(unsigned int)
void processOneEvent(unsigned int iStreamID, typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
void writeLumi(LuminosityBlockPrincipal const &lbp, ProcessContext const *)
std::shared_ptr< Worker > WorkerPtr
void enableEndPaths(bool active)
std::shared_ptr< ModuleRegistry > moduleRegistry_
int totalEventsFailed() const
bool changeModule(std::string const &iLabel, ParameterSet const &iPSet, const ProductRegistry &iRegistry)
std::shared_ptr< TriggerResultInserter > resultsInserter_
int totalEventsPassed() const
void limitOutput(ParameterSet const &proc_pset, BranchIDLists const &branchIDLists)
void clearCounters()
Clear all the counters in the trigger report.
std::vector< std::shared_ptr< StreamSchedule > > streamSchedules_
std::vector< std::string > vstring
std::vector< std::shared_ptr< OutputModuleCommunicator > > AllOutputModuleCommunicators
bool terminate() const
Return whether each output module has reached its maximum count.
void respondToOpenInputFile(FileBlock const &fb)
std::vector< Worker * > Workers
void getTriggerReport(TriggerReport &rep) const
void processOneGlobal(typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
PreallocationConfiguration preallocConfig_
volatile bool endpathsAreActive_
std::unique_ptr< SystemTimeKeeper > summaryTimeKeeper_
AllOutputModuleCommunicators all_output_communicators_
void modulesInPath(std::string const &iPathLabel, std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill in execution order the labels of all modules in path iPathLabel ...
void beginStream(unsigned int)
void postForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren)
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
std::unique_ptr< GlobalSchedule > globalSchedule_
void processOneStream(unsigned int iStreamID, typename T::MyPrincipal &principal, EventSetup const &eventSetup, bool cleaningUpAfterException=false)
void beginJob(ProductRegistry const &)
void openNewOutputFilesIfNeeded()
void preForkReleaseResources()
void openOutputFiles(FileBlock &fb)
void endJob(ExceptionCollector &collector)
void getTriggerTimingReport(TriggerTimingReport &rep) const
bool shouldWeCloseOutput() const