CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
edm::WorkerT< T > Class Template Reference

#include <Frameworkfwd.h>

Inheritance diagram for edm::WorkerT< T >:
edm::Worker

Public Types

typedef T ModuleType
 
typedef WorkerT< TWorkerType
 
- Public Types inherited from edm::Worker
enum  State { Ready, Pass, Fail, Exception }
 
enum  Types { kAnalyzer, kFilter, kProducer, kOutputModule }
 

Public Member Functions

template<typename D >
void callWorkerBeginStream (D, StreamID)
 
template<typename D >
void callWorkerEndStream (D, StreamID)
 
template<typename D >
void callWorkerStreamBegin (D, StreamID id, RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc)
 
template<typename D >
void callWorkerStreamBegin (D, StreamID id, LuminosityBlockPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc)
 
template<typename D >
void callWorkerStreamEnd (D, StreamID id, RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc)
 
template<typename D >
void callWorkerStreamEnd (D, StreamID id, LuminosityBlockPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc)
 
virtual Types moduleType () const override
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
template<>
Worker::Types moduleType () const
 
void setModule (std::shared_ptr< T > iModule)
 
virtual void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) override
 
 WorkerT (std::shared_ptr< T >, ModuleDescription const &, ExceptionToActionTable const *actions)
 
virtual ~WorkerT ()
 
- Public Member Functions inherited from edm::Worker
void beginJob ()
 
void beginStream (StreamID id, StreamContext &streamContext)
 
void clearCounters ()
 
ModuleDescription const * descPtr () const
 
ModuleDescription const & description () const
 
template<typename T >
bool doWork (typename T::MyPrincipal &, EventSetup const &c, StreamID stream, ParentContext const &parentContext, typename T::Context const *context)
 
void endJob ()
 
void endStream (StreamID id, StreamContext &streamContext)
 
Workeroperator= (Worker const &)=delete
 
void pathFinished (EventPrincipal &)
 
void postDoEvent (EventPrincipal &)
 
void postForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren)
 
void preForkReleaseResources ()
 
void registerThinnedAssociations (ProductRegistry const &registry, ThinnedAssociationsHelper &helper)
 
void reset ()
 
void respondToCloseInputFile (FileBlock const &fb)
 
void respondToOpenInputFile (FileBlock const &fb)
 
void setActivityRegistry (std::shared_ptr< ActivityRegistry > areg)
 
void setEarlyDeleteHelper (EarlyDeleteHelper *iHelper)
 
State state () const
 
int timesExcept () const
 
int timesFailed () const
 
int timesPass () const
 
int timesPassed () const
 
int timesRun () const
 
int timesVisited () const
 
 Worker (ModuleDescription const &iMD, ExceptionToActionTable const *iActions)
 
 Worker (Worker const &)=delete
 
virtual ~Worker ()
 

Protected Member Functions

Tmodule ()
 
T const & module () const
 
- Protected Member Functions inherited from edm::Worker
ActivityRegistryactivityRegistry ()
 
void resetModuleDescription (ModuleDescription const *)
 

Private Member Functions

virtual std::vector< ConsumesInfoconsumesInfo () const override
 
virtual void implBeginJob () override
 
virtual void implBeginStream (StreamID) override
 
virtual bool implDo (EventPrincipal &ep, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoBegin (RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoBegin (LuminosityBlockPrincipal &lbp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoEnd (RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoEnd (LuminosityBlockPrincipal &lbp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoPrePrefetchSelection (StreamID id, EventPrincipal &ep, ModuleCallingContext const *mcc) override
 
template<>
bool implDoPrePrefetchSelection (StreamID id, EventPrincipal &ep, ModuleCallingContext const *mcc)
 
template<>
bool implDoPrePrefetchSelection (StreamID id, EventPrincipal &ep, ModuleCallingContext const *mcc)
 
template<>
bool implDoPrePrefetchSelection (StreamID id, EventPrincipal &ep, ModuleCallingContext const *mcc)
 
virtual bool implDoStreamBegin (StreamID id, RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoStreamBegin (StreamID id, LuminosityBlockPrincipal &lbp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoStreamEnd (StreamID id, RunPrincipal &rp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual bool implDoStreamEnd (StreamID id, LuminosityBlockPrincipal &lbp, EventSetup const &c, ModuleCallingContext const *mcc) override
 
virtual void implEndJob () override
 
virtual void implEndStream (StreamID) override
 
virtual void implPostForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren) override
 
virtual void implPreForkReleaseResources () override
 
virtual void implRegisterThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &) override
 
virtual void implRespondToCloseInputFile (FileBlock const &fb) override
 
virtual void implRespondToOpenInputFile (FileBlock const &fb) override
 
virtual void itemsMayGet (BranchType branchType, std::vector< ProductHolderIndexAndSkipBit > &indexes) const override
 
virtual void itemsToGet (BranchType branchType, std::vector< ProductHolderIndexAndSkipBit > &indexes) const override
 
virtual std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const override
 
virtual void modulesDependentUpon (std::vector< const char * > &oModuleLabels) const override
 
virtual void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc) const override
 
virtual std::string workerType () const override
 

Private Attributes

std::shared_ptr< Tmodule_
 

Detailed Description

template<typename T>
class edm::WorkerT< T >

Definition at line 47 of file Frameworkfwd.h.

Member Typedef Documentation

template<typename T>
typedef T edm::WorkerT< T >::ModuleType

Definition at line 34 of file WorkerT.h.

template<typename T>
typedef WorkerT<T> edm::WorkerT< T >::WorkerType

Definition at line 35 of file WorkerT.h.

Constructor & Destructor Documentation

template<typename T >
edm::WorkerT< T >::WorkerT ( std::shared_ptr< T ed,
ModuleDescription const &  md,
ExceptionToActionTable const *  actions 
)
inline

Definition at line 105 of file WorkerT.cc.

References assert(), and edm::WorkerT< T >::module_.

105  :
106  Worker(md, actions),
107  module_(ed) {
108  assert(module_ != 0);
109  }
assert(m_qm.get())
actions
Definition: Schedule.cc:369
Worker(ModuleDescription const &iMD, ExceptionToActionTable const *iActions)
Definition: Worker.cc:71
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
edm::WorkerT< T >::~WorkerT ( )
virtual

Definition at line 112 of file WorkerT.cc.

112  {
113  }

Member Function Documentation

template<typename T >
template<typename D >
void edm::WorkerT< T >::callWorkerBeginStream ( ,
StreamID  id 
)

Definition at line 304 of file WorkerT.cc.

References sistrip::module_.

Referenced by edm::workerimpl::DoBeginStream< T >::operator()().

304  {
305  module_->doBeginStream(id);
306  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
template<typename D >
void edm::WorkerT< T >::callWorkerEndStream ( ,
StreamID  id 
)

Definition at line 320 of file WorkerT.cc.

References sistrip::module_.

Referenced by edm::workerimpl::DoEndStream< T >::operator()().

320  {
321  module_->doEndStream(id);
322  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
template<typename D >
void edm::WorkerT< T >::callWorkerStreamBegin ( ,
StreamID  id,
RunPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)

Definition at line 170 of file WorkerT.cc.

References sistrip::module_.

Referenced by edm::workerimpl::DoStreamBeginTrans< T, P >::operator()().

172  {
173  module_->doStreamBeginRun(id, rp, c, mcc);
174  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
template<typename D >
void edm::WorkerT< T >::callWorkerStreamBegin ( ,
StreamID  id,
LuminosityBlockPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)

Definition at line 231 of file WorkerT.cc.

References sistrip::module_.

233  {
234  module_->doStreamBeginLuminosityBlock(id, rp, c, mcc);
235  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
template<typename D >
void edm::WorkerT< T >::callWorkerStreamEnd ( ,
StreamID  id,
RunPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)

Definition at line 179 of file WorkerT.cc.

References sistrip::module_.

Referenced by edm::workerimpl::DoStreamEndTrans< T, P >::operator()().

181  {
182  module_->doStreamEndRun(id, rp, c, mcc);
183  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
template<typename D >
void edm::WorkerT< T >::callWorkerStreamEnd ( ,
StreamID  id,
LuminosityBlockPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)

Definition at line 240 of file WorkerT.cc.

References sistrip::module_.

242  {
243  module_->doStreamEndLuminosityBlock(id, rp, c, mcc);
244  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
virtual std::vector<ConsumesInfo> edm::WorkerT< T >::consumesInfo ( ) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 122 of file WorkerT.h.

References edm::WorkerT< T >::module_.

122  {
123  return module_->consumesInfo();
124  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::implBeginJob ( )
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 291 of file WorkerT.cc.

References sistrip::module_.

291  {
292  module_->doBeginJob();
293  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::implBeginStream ( StreamID  id)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 311 of file WorkerT.cc.

References relativeConstraints::value.

311  {
313  workerimpl::DoBeginStream<T>,
314  workerimpl::DoNothing>::type might_call;
315  might_call(this,id);
316  }
type
Definition: HCALResponse.h:21
template<typename T >
bool edm::WorkerT< T >::implDo ( EventPrincipal ep,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 118 of file WorkerT.cc.

References sistrip::module_, getGTfromDQMFile::obj, and edm::Worker::postDoEvent().

118  {
119  std::shared_ptr<Worker> sentry(this,[&ep](Worker* obj) {obj->postDoEvent(ep);});
120  return module_->doEvent(ep, c, activityRegistry(), mcc);
121  }
ActivityRegistry * activityRegistry()
Definition: Worker.h:165
Worker(ModuleDescription const &iMD, ExceptionToActionTable const *iActions)
Definition: Worker.cc:71
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
bool edm::WorkerT< T >::implDoBegin ( RunPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 162 of file WorkerT.cc.

References sistrip::module_.

162  {
163  module_->doBeginRun(rp, c, mcc);
164  return true;
165  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
bool edm::WorkerT< T >::implDoBegin ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 222 of file WorkerT.cc.

References sistrip::module_.

223  {
224  module_->doBeginLuminosityBlock(lbp, c, mcc);
225  return true;
226  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
bool edm::WorkerT< T >::implDoEnd ( RunPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 213 of file WorkerT.cc.

References sistrip::module_.

214  {
215  module_->doEndRun(rp, c, mcc);
216  return true;
217  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
bool edm::WorkerT< T >::implDoEnd ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 275 of file WorkerT.cc.

References sistrip::module_.

276  {
277  module_->doEndLuminosityBlock(lbp, c, mcc);
278  return true;
279  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
bool edm::WorkerT< T >::implDoPrePrefetchSelection ( StreamID  id,
EventPrincipal ep,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 126 of file WorkerT.cc.

128  {
129  return true;
130  }
template<>
bool edm::WorkerT< OutputModule >::implDoPrePrefetchSelection ( StreamID  id,
EventPrincipal ep,
ModuleCallingContext const *  mcc 
)
inlineprivatevirtual

Implements edm::Worker.

Definition at line 135 of file WorkerT.cc.

References sistrip::module_.

137  {
138  return module_->prePrefetchSelection(id,ep,mcc);
139  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<>
bool edm::WorkerT< edm::one::OutputModuleBase >::implDoPrePrefetchSelection ( StreamID  id,
EventPrincipal ep,
ModuleCallingContext const *  mcc 
)
inlineprivatevirtual

Implements edm::Worker.

Definition at line 144 of file WorkerT.cc.

References sistrip::module_.

146  {
147  return module_->prePrefetchSelection(id,ep,mcc);
148  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<>
bool edm::WorkerT< edm::global::OutputModuleBase >::implDoPrePrefetchSelection ( StreamID  id,
EventPrincipal ep,
ModuleCallingContext const *  mcc 
)
inlineprivatevirtual

Implements edm::Worker.

Definition at line 153 of file WorkerT.cc.

References sistrip::module_.

155  {
156  return module_->prePrefetchSelection(id,ep,mcc);
157  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
bool edm::WorkerT< T >::implDoStreamBegin ( StreamID  id,
RunPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 189 of file WorkerT.cc.

References relativeConstraints::value.

190  {
192  workerimpl::DoStreamBeginTrans<T,RunPrincipal>,
193  workerimpl::DoNothing>::type might_call;
194  might_call(this,id,rp,c, mcc);
195  return true;
196  }
type
Definition: HCALResponse.h:21
template<typename T >
bool edm::WorkerT< T >::implDoStreamBegin ( StreamID  id,
LuminosityBlockPrincipal lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 250 of file WorkerT.cc.

References relativeConstraints::value.

251  {
253  workerimpl::DoStreamBeginTrans<T,LuminosityBlockPrincipal>,
254  workerimpl::DoNothing>::type might_call;
255  might_call(this,id,lbp,c, mcc);
256  return true;
257  }
type
Definition: HCALResponse.h:21
template<typename T >
bool edm::WorkerT< T >::implDoStreamEnd ( StreamID  id,
RunPrincipal rp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 201 of file WorkerT.cc.

References relativeConstraints::value.

202  {
204  workerimpl::DoStreamEndTrans<T,RunPrincipal>,
205  workerimpl::DoNothing>::type might_call;
206  might_call(this,id,rp,c, mcc);
207  return true;
208  }
type
Definition: HCALResponse.h:21
template<typename T >
bool edm::WorkerT< T >::implDoStreamEnd ( StreamID  id,
LuminosityBlockPrincipal lbp,
EventSetup const &  c,
ModuleCallingContext const *  mcc 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 262 of file WorkerT.cc.

References relativeConstraints::value.

263  {
265  workerimpl::DoStreamEndTrans<T,LuminosityBlockPrincipal>,
266  workerimpl::DoNothing>::type might_call;
267  might_call(this,id,lbp,c,mcc);
268 
269  return true;
270  }
type
Definition: HCALResponse.h:21
template<typename T >
void edm::WorkerT< T >::implEndJob ( )
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 298 of file WorkerT.cc.

References sistrip::module_.

298  {
299  module_->doEndJob();
300  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::implEndStream ( StreamID  id)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 327 of file WorkerT.cc.

References relativeConstraints::value.

327  {
329  workerimpl::DoEndStream<T>,
330  workerimpl::DoNothing>::type might_call;
331  might_call(this,id);
332  }
type
Definition: HCALResponse.h:21
template<typename T >
void edm::WorkerT< T >::implPostForkReacquireResources ( unsigned int  iChildIndex,
unsigned int  iNumberOfChildren 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 358 of file WorkerT.cc.

References sistrip::module_.

359  {
360  module_->doPostForkReacquireResources(iChildIndex, iNumberOfChildren);
361  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::implPreForkReleaseResources ( )
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 351 of file WorkerT.cc.

References sistrip::module_.

351  {
352  module_->doPreForkReleaseResources();
353  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::implRegisterThinnedAssociations ( ProductRegistry const &  registry,
ThinnedAssociationsHelper helper 
)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 367 of file WorkerT.cc.

References sistrip::module_.

368  {
369  module_->doRegisterThinnedAssociations(registry, helper);
370  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
static Interceptor::Registry registry("Interceptor")
template<typename T >
void edm::WorkerT< T >::implRespondToCloseInputFile ( FileBlock const &  fb)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 344 of file WorkerT.cc.

References sistrip::module_.

344  {
345  module_->doRespondToCloseInputFile(fb);
346  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::implRespondToOpenInputFile ( FileBlock const &  fb)
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 337 of file WorkerT.cc.

References sistrip::module_.

337  {
338  module_->doRespondToOpenInputFile(fb);
339  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
virtual void edm::WorkerT< T >::itemsMayGet ( BranchType  branchType,
std::vector< ProductHolderIndexAndSkipBit > &  indexes 
) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 130 of file WorkerT.h.

References edm::WorkerT< T >::module_.

130  {
131  module_->itemsMayGet(branchType, indexes);
132  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
virtual void edm::WorkerT< T >::itemsToGet ( BranchType  branchType,
std::vector< ProductHolderIndexAndSkipBit > &  indexes 
) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 126 of file WorkerT.h.

References edm::WorkerT< T >::module_.

126  {
127  module_->itemsToGet(branchType, indexes);
128  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
virtual std::vector<ProductHolderIndexAndSkipBit> const& edm::WorkerT< T >::itemsToGetFromEvent ( ) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 134 of file WorkerT.h.

References edm::WorkerT< T >::module_.

134 { return module_->itemsToGetFromEvent(); }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
T& edm::WorkerT< T >::module ( )
inlineprotected

Definition at line 75 of file WorkerT.h.

References edm::WorkerT< T >::module_.

75 {return *module_;}
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
T const& edm::WorkerT< T >::module ( ) const
inlineprotected

Definition at line 76 of file WorkerT.h.

References edm::WorkerT< T >::module_.

76 {return *module_;}
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
virtual void edm::WorkerT< T >::modulesDependentUpon ( std::vector< const char * > &  oModuleLabels) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 112 of file WorkerT.h.

References edm::WorkerT< T >::module_.

112  {
113  module_->modulesDependentUpon(module_->moduleDescription().processName(),oModuleLabels);
114  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T>
virtual void edm::WorkerT< T >::modulesWhoseProductsAreConsumed ( std::vector< ModuleDescription const * > &  modules,
ProductRegistry const &  preg,
std::map< std::string, ModuleDescription const * > const &  labelsToDesc 
) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 116 of file WorkerT.h.

References edm::WorkerT< T >::module_.

118  {
119  module_->modulesWhoseProductsAreConsumed(modules, preg, labelsToDesc, module_->moduleDescription().processName());
120  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
preg
Definition: Schedule.cc:369
template<typename T>
virtual Types edm::WorkerT< T >::moduleType ( ) const
overridevirtual

Implements edm::Worker.

template<>
Worker::Types edm::WorkerT< EDAnalyzer >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 379 of file WorkerT.cc.

References edm::Worker::kAnalyzer.

template<>
Worker::Types edm::WorkerT< EDProducer >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 381 of file WorkerT.cc.

References edm::Worker::kProducer.

template<>
Worker::Types edm::WorkerT< EDFilter >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 383 of file WorkerT.cc.

References edm::Worker::kFilter.

383 { return Worker::kFilter;}
template<>
Worker::Types edm::WorkerT< OutputModule >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 385 of file WorkerT.cc.

References edm::Worker::kOutputModule.

template<>
Worker::Types edm::WorkerT< edm::one::EDProducerBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 387 of file WorkerT.cc.

References edm::Worker::kProducer.

template<>
Worker::Types edm::WorkerT< edm::one::EDFilterBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 389 of file WorkerT.cc.

References edm::Worker::kFilter.

389 { return Worker::kFilter;}
template<>
Worker::Types edm::WorkerT< edm::one::EDAnalyzerBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 391 of file WorkerT.cc.

References edm::Worker::kAnalyzer.

template<>
Worker::Types edm::WorkerT< edm::one::OutputModuleBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 393 of file WorkerT.cc.

References edm::Worker::kOutputModule.

template<>
Worker::Types edm::WorkerT< edm::global::EDProducerBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 396 of file WorkerT.cc.

References edm::Worker::kProducer.

template<>
Worker::Types edm::WorkerT< edm::global::EDFilterBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 398 of file WorkerT.cc.

References edm::Worker::kFilter.

398 { return Worker::kFilter;}
template<>
Worker::Types edm::WorkerT< edm::global::EDAnalyzerBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 400 of file WorkerT.cc.

References edm::Worker::kAnalyzer.

template<>
Worker::Types edm::WorkerT< edm::global::OutputModuleBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 402 of file WorkerT.cc.

References edm::Worker::kOutputModule.

template<>
Worker::Types edm::WorkerT< edm::stream::EDProducerAdaptorBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 406 of file WorkerT.cc.

References edm::Worker::kProducer.

template<>
Worker::Types edm::WorkerT< edm::stream::EDFilterAdaptorBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 408 of file WorkerT.cc.

References edm::Worker::kFilter.

408 { return Worker::kFilter;}
template<>
Worker::Types edm::WorkerT< edm::stream::EDAnalyzerAdaptorBase >::moduleType ( ) const
virtual

Implements edm::Worker.

Definition at line 410 of file WorkerT.cc.

References edm::Worker::kAnalyzer.

template<typename T>
void edm::WorkerT< T >::setModule ( std::shared_ptr< T iModule)
inline

Definition at line 42 of file WorkerT.h.

References edm::WorkerT< T >::module_, and edm::Worker::resetModuleDescription().

42  {
43  module_ = iModule;
44  resetModuleDescription(&(module_->moduleDescription()));
45  }
void resetModuleDescription(ModuleDescription const *)
Definition: Worker.cc:98
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
void edm::WorkerT< T >::updateLookup ( BranchType  iBranchType,
ProductHolderIndexHelper const &  iHelper 
)
overridevirtual

Implements edm::Worker.

Definition at line 373 of file WorkerT.cc.

References sistrip::module_.

374  {
375  module_->updateLookup(iBranchType,iHelper);
376  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136
template<typename T >
std::string edm::WorkerT< T >::workerType ( ) const
inlineoverrideprivatevirtual

Implements edm::Worker.

Definition at line 284 of file WorkerT.cc.

References sistrip::module_.

284  {
285  return module_->workerType();
286  }
std::shared_ptr< T > module_
Definition: WorkerT.h:136

Member Data Documentation

template<typename T>
std::shared_ptr<T> edm::WorkerT< T >::module_
private