CMS 3D CMS Logo

edm::WorkerT< T > Class Template Reference

#include <FWCore/Framework/src/WorkerT.h>

Inheritance diagram for edm::WorkerT< T >:

edm::Worker edm::OutputWorker

List of all members.

Public Types

typedef T ModuleType
typedef WorkerT< T > WorkerType

Public Member Functions

 WorkerT (std::auto_ptr< T >, ModuleDescription const &, WorkerParams const &)
virtual ~WorkerT ()

Static Public Member Functions

template<typename ModType>
static std::auto_ptr< T > makeModule (ModuleDescription const &md, ParameterSet const &pset)

Protected Member Functions

T const & module () const
T & module ()

Private Member Functions

virtual void implBeginJob (EventSetup const &)
virtual bool implDoBegin (LuminosityBlockPrincipal &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoBegin (RunPrincipal &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoBegin (EventPrincipal &ep, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoEnd (LuminosityBlockPrincipal &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoEnd (RunPrincipal &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoEnd (EventPrincipal &ep, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void implEndJob ()
virtual void implRespondToCloseInputFile (FileBlock const &fb)
virtual void implRespondToCloseOutputFiles (FileBlock const &fb)
virtual void implRespondToOpenInputFile (FileBlock const &fb)
virtual void implRespondToOpenOutputFiles (FileBlock const &fb)
virtual std::string workerType () const

Private Attributes

boost::shared_ptr< T > module_


Detailed Description

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

Definition at line 23 of file WorkerT.h.


Member Typedef Documentation

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

Definition at line 25 of file WorkerT.h.

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

Definition at line 26 of file WorkerT.h.


Constructor & Destructor Documentation

template<typename T>
edm::WorkerT< T >::WorkerT ( std::auto_ptr< T >  ed,
ModuleDescription const &  md,
WorkerParams const &  wp 
) [inline]

Definition at line 72 of file WorkerT.h.

References edm::WorkerT< T >::module_, and edm::WorkerParams::reg_.

00074                                          :
00075     Worker(md, wp),
00076     module_(ed) {
00077     module_->setModuleDescription(md);
00078     module_->registerAnyProducts(module_, wp.reg_);
00079   }

template<typename T>
edm::WorkerT< T >::~WorkerT (  )  [inline, virtual]

Definition at line 82 of file WorkerT.h.

00082                        {
00083   }


Member Function Documentation

template<typename T>
void edm::WorkerT< T >::implBeginJob ( EventSetup const &  es  )  [inline, private, virtual]

Implements edm::Worker.

Definition at line 136 of file WorkerT.h.

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

00136                                                {
00137     module_->doBeginJob(es);
00138   }

template<typename T>
bool edm::WorkerT< T >::implDoBegin ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [inline, private, virtual]

Implements edm::Worker.

Definition at line 116 of file WorkerT.h.

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

00117                                                                 {
00118     return module_->doBeginLuminosityBlock(lbp, c, cpc);
00119   }

template<typename T>
bool edm::WorkerT< T >::implDoBegin ( RunPrincipal rp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [inline, private, virtual]

Implements edm::Worker.

Definition at line 102 of file WorkerT.h.

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

00103                                                                 {
00104     return module_->doBeginRun(rp, c, cpc);
00105   }

template<typename T>
bool edm::WorkerT< T >::implDoBegin ( EventPrincipal ep,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [inline, private, virtual]

Implements edm::Worker.

Definition at line 88 of file WorkerT.h.

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

00089                                                                 {
00090     return module_->doEvent(ep, c, cpc);
00091   }

template<typename T>
bool edm::WorkerT< T >::implDoEnd ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [inline, private, virtual]

Implements edm::Worker.

Definition at line 123 of file WorkerT.h.

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

00124                                                                 {
00125     return module_->doEndLuminosityBlock(lbp, c, cpc);
00126   }

template<typename T>
bool edm::WorkerT< T >::implDoEnd ( RunPrincipal rp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [inline, private, virtual]

Implements edm::Worker.

Definition at line 109 of file WorkerT.h.

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

00110                                                                 {
00111     return module_->doEndRun(rp, c, cpc);
00112   }

template<typename T>
bool edm::WorkerT< T >::implDoEnd ( EventPrincipal ep,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [inline, private, virtual]

Implements edm::Worker.

Definition at line 95 of file WorkerT.h.

00096                                                             {
00097     return false;
00098   }

template<typename T>
void edm::WorkerT< T >::implEndJob (  )  [inline, private, virtual]

Implements edm::Worker.

Definition at line 142 of file WorkerT.h.

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

00142                          {
00143     module_->doEndJob();
00144   }

template<typename T>
void edm::WorkerT< T >::implRespondToCloseInputFile ( FileBlock const &  fb  )  [inline, private, virtual]

Implements edm::Worker.

Definition at line 154 of file WorkerT.h.

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

00154                                                              {
00155     module_->doRespondToCloseInputFile(fb);
00156   }

template<typename T>
void edm::WorkerT< T >::implRespondToCloseOutputFiles ( FileBlock const &  fb  )  [inline, private, virtual]

Implements edm::Worker.

Definition at line 166 of file WorkerT.h.

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

00166                                                                {
00167     module_->doRespondToCloseOutputFiles(fb);
00168   }

template<typename T>
void edm::WorkerT< T >::implRespondToOpenInputFile ( FileBlock const &  fb  )  [inline, private, virtual]

Implements edm::Worker.

Definition at line 148 of file WorkerT.h.

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

00148                                                             {
00149     module_->doRespondToOpenInputFile(fb);
00150   }

template<typename T>
void edm::WorkerT< T >::implRespondToOpenOutputFiles ( FileBlock const &  fb  )  [inline, private, virtual]

Implements edm::Worker.

Definition at line 160 of file WorkerT.h.

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

00160                                                               {
00161     module_->doRespondToOpenOutputFiles(fb);
00162   }

template<typename T>
template<typename ModType>
static std::auto_ptr<T> edm::WorkerT< T >::makeModule ( ModuleDescription const &  md,
ParameterSet const &  pset 
) [inline, static]

Definition at line 35 of file WorkerT.h.

00036                                                                      {
00037     std::auto_ptr<ModType> module = std::auto_ptr<ModType>(new ModType(pset));
00038     return std::auto_ptr<T>(module.release());
00039   }

template<typename T>
T const& edm::WorkerT< T >::module (  )  const [inline, protected]

Definition at line 44 of file WorkerT.h.

00044 {return *module_;}

template<typename T>
T& edm::WorkerT< T >::module (  )  [inline, protected]

Definition at line 43 of file WorkerT.h.

Referenced by edm::OutputWorker::closeFile(), edm::OutputWorker::configure(), edm::OutputWorker::limitReached(), edm::OutputWorker::openFile(), edm::OutputWorker::openNewFileIfNeeded(), edm::OutputWorker::shouldWeCloseFile(), edm::OutputWorker::wantAllEvents(), edm::OutputWorker::writeLumi(), and edm::OutputWorker::writeRun().

00043 {return *module_;}

template<typename T>
std::string edm::WorkerT< T >::workerType (  )  const [inline, private, virtual]

Implements edm::Worker.

Definition at line 130 of file WorkerT.h.

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

00130                                {
00131     return module_->workerType();
00132   }


Member Data Documentation

template<typename T>
boost::shared_ptr<T> edm::WorkerT< T >::module_ [private]

Definition at line 67 of file WorkerT.h.

Referenced by edm::WorkerT< T >::implBeginJob(), edm::WorkerT< T >::implDoBegin(), edm::WorkerT< T >::implDoEnd(), edm::WorkerT< T >::implEndJob(), edm::WorkerT< T >::implRespondToCloseInputFile(), edm::WorkerT< T >::implRespondToCloseOutputFiles(), edm::WorkerT< T >::implRespondToOpenInputFile(), edm::WorkerT< T >::implRespondToOpenOutputFiles(), edm::WorkerT< edm::OutputModule >::module(), edm::WorkerT< T >::WorkerT(), and edm::WorkerT< T >::workerType().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:44:47 2009 for CMSSW by  doxygen 1.5.4