1 #ifndef FWCore_Framework_WorkerT_h
2 #define FWCore_Framework_WorkerT_h
21 class WorkerT :
public Worker {
31 template<
typename ModType>
34 std::unique_ptr<ModType>
module = std::unique_ptr<ModType>(
new ModType(pset));
35 return std::unique_ptr<T>(module.release());
45 bool anyProductProduced);
78 unsigned int iNumberOfChildren)
override;
WorkerT(std::unique_ptr< T > &&, ModuleDescription const &, WorkerParams const &)
std::unique_ptr< T > module_
ModuleDescription const & description() const
virtual Types moduleType() const override
virtual void implRespondToOpenOutputFiles(FileBlock const &fb) override
virtual bool implDoEnd(EventPrincipal &ep, EventSetup const &c, CurrentProcessingContext const *cpc) override
virtual void implEndJob() override
static std::unique_ptr< T > makeModule(ModuleDescription const &, ParameterSet const &pset)
virtual std::string workerType() const override
virtual void updateLookup(BranchType iBranchType, ProductHolderIndexHelper const &) override
virtual void implRespondToOpenInputFile(FileBlock const &fb) override
void setEventSelectionInfo(std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
UnscheduledHandler * getUnscheduledHandler(EventPrincipal const &ep)
virtual bool implDoBegin(EventPrincipal &ep, EventSetup const &c, CurrentProcessingContext const *cpc) override
virtual void implBeginJob() override
virtual void implPreForkReleaseResources() override
virtual void implRespondToCloseInputFile(FileBlock const &fb) override
void setModule(std::unique_ptr< T > &&iModule)
virtual void implRespondToCloseOutputFiles(FileBlock const &fb) override
virtual void implPostForkReacquireResources(unsigned int iChildIndex, unsigned int iNumberOfChildren) override