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 ThinnedAssociationsHelper;
109 class TriggerResultInserter;
126 std::shared_ptr<ActivityRegistry>
areg,
132 template <
typename T>
136 bool cleaningUpAfterException =
false);
138 template <
typename T>
141 bool cleaningUpAfterException =
false);
143 template <
typename T>
147 bool cleaningUpAfterException =
false);
191 void availablePaths(std::vector<std::string>& oLabelsToFill)
const;
195 std::vector<std::string>& oLabelsToFill)
const;
263 template <
typename T>
265 typename T::MyPrincipal& ep,
267 bool cleaningUpAfterException) {
272 template <
typename T>
274 typename T::MyPrincipal& ep,
276 bool cleaningUpAfterException) {
278 streamSchedules_[iStreamID]->processOneStream<
T>(ep,es,cleaningUpAfterException);
280 template <
typename T>
284 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
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)
Schedule(ParameterSet &proc_pset, service::TriggerNamesService &tns, ProductRegistry &pregistry, BranchIDListHelper &branchIDListHelper, ThinnedAssociationsHelper &thinnedAssociationsHelper, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, const ParameterSet *subProcPSet, PreallocationConfiguration const &config, ProcessContext const *processContext)
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