CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

edm::WorkerT< T > Class Template Reference

#include <WorkerT.h>

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

List of all members.

Public Types

typedef T ModuleType
typedef WorkerT< TWorkerType

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

Tmodule ()
T const & module () const

Private Member Functions

virtual void implBeginJob ()
virtual bool implDoBegin (LuminosityBlockPrincipal &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoBegin (EventPrincipal &ep, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual bool implDoBegin (RunPrincipal &rp, 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 bool implDoEnd (LuminosityBlockPrincipal &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void implEndJob ()
virtual void implPostForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren)
virtual void implPreForkReleaseResources ()
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

std::auto_ptr< Tmodule_

Detailed Description

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

Definition at line 21 of file WorkerT.h.


Member Typedef Documentation

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

Definition at line 23 of file WorkerT.h.

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

Definition at line 24 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 78 of file WorkerT.h.

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

                                         :
    Worker(md, wp),
    module_(ed) {
    assert(module_.get() != 0);
    module_->setModuleDescription(md);
    module_->registerAnyProducts(module_.get(), wp.reg_);
  }
template<typename T >
edm::WorkerT< T >::~WorkerT ( ) [virtual]

Definition at line 89 of file WorkerT.h.

                       {
  }

Member Function Documentation

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

Implements edm::Worker.

Definition at line 144 of file WorkerT.h.

References sistrip::module_.

                           {
    module_->doBeginJob();
  }
template<typename T >
bool edm::WorkerT< T >::implDoBegin ( EventPrincipal ep,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private, virtual]

Implements edm::Worker.

Definition at line 95 of file WorkerT.h.

References sistrip::module_, asciidump::s, and edm::EventPrincipal::unscheduledHandler().

                                                                {
    UnscheduledHandlerSentry s(ep.unscheduledHandler().get(), cpc);
    return module_->doEvent(ep, c, cpc);
  }
template<typename T >
bool edm::WorkerT< T >::implDoBegin ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private, virtual]

Implements edm::Worker.

Definition at line 124 of file WorkerT.h.

References sistrip::module_.

                                                                {
    return module_->doBeginLuminosityBlock(lbp, c, cpc);
  }
template<typename T >
bool edm::WorkerT< T >::implDoBegin ( RunPrincipal rp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private, virtual]

Implements edm::Worker.

Definition at line 110 of file WorkerT.h.

References sistrip::module_.

                                                                {
    return module_->doBeginRun(rp, c, cpc);
  }
template<typename T >
bool edm::WorkerT< T >::implDoEnd ( RunPrincipal rp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private, virtual]

Implements edm::Worker.

Definition at line 117 of file WorkerT.h.

References sistrip::module_.

                                                                {
    return module_->doEndRun(rp, c, cpc);
  }
template<typename T >
bool edm::WorkerT< T >::implDoEnd ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private, virtual]

Implements edm::Worker.

Definition at line 131 of file WorkerT.h.

References sistrip::module_.

                                                                {
    return module_->doEndLuminosityBlock(lbp, c, cpc);
  }
template<typename T >
bool edm::WorkerT< T >::implDoEnd ( EventPrincipal ep,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private, virtual]

Implements edm::Worker.

Definition at line 103 of file WorkerT.h.

                                                            {
    return false;
  }
template<typename T >
void edm::WorkerT< T >::implEndJob ( ) [private, virtual]

Implements edm::Worker.

Definition at line 150 of file WorkerT.h.

References sistrip::module_.

                         {
    module_->doEndJob();
  }
template<typename T >
void edm::WorkerT< T >::implPostForkReacquireResources ( unsigned int  iChildIndex,
unsigned int  iNumberOfChildren 
) [private, virtual]

Implements edm::Worker.

Definition at line 186 of file WorkerT.h.

References sistrip::module_.

                                                                            {
    module_->doPostForkReacquireResources(iChildIndex, iNumberOfChildren);
  }  
template<typename T >
void edm::WorkerT< T >::implPreForkReleaseResources ( ) [private, virtual]

Implements edm::Worker.

Definition at line 180 of file WorkerT.h.

References sistrip::module_.

                                          {
    module_->doPreForkReleaseResources();
  }
template<typename T >
void edm::WorkerT< T >::implRespondToCloseInputFile ( FileBlock const &  fb) [private, virtual]

Implements edm::Worker.

Definition at line 162 of file WorkerT.h.

References sistrip::module_.

                                                             {
    module_->doRespondToCloseInputFile(fb);
  }
template<typename T >
void edm::WorkerT< T >::implRespondToCloseOutputFiles ( FileBlock const &  fb) [private, virtual]

Implements edm::Worker.

Definition at line 174 of file WorkerT.h.

References sistrip::module_.

                                                               {
    module_->doRespondToCloseOutputFiles(fb);
  }
template<typename T >
void edm::WorkerT< T >::implRespondToOpenInputFile ( FileBlock const &  fb) [private, virtual]

Implements edm::Worker.

Definition at line 156 of file WorkerT.h.

References sistrip::module_.

                                                            {
    module_->doRespondToOpenInputFile(fb);
  }
template<typename T >
void edm::WorkerT< T >::implRespondToOpenOutputFiles ( FileBlock const &  fb) [private, virtual]

Implements edm::Worker.

Definition at line 168 of file WorkerT.h.

References sistrip::module_.

                                                              {
    module_->doRespondToOpenOutputFiles(fb);
  }
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 33 of file WorkerT.h.

                                                                     {
    std::auto_ptr<ModType> module = std::auto_ptr<ModType>(new ModType(pset));
    return std::auto_ptr<T>(module.release());
  }
template<typename T>
T const& edm::WorkerT< T >::module ( ) const [inline, protected]

Definition at line 47 of file WorkerT.h.

{return *module_;}
template<typename T>
T& edm::WorkerT< T >::module ( ) [inline, protected]

Definition at line 46 of file WorkerT.h.

{return *module_;}
template<typename T>
void edm::WorkerT< T >::setModule ( std::auto_ptr< T > &  iModule) [inline]

Definition at line 39 of file WorkerT.h.

                                           {
     module_ = iModule;
     module_->setModuleDescription(description());
     
  }
template<typename T >
std::string edm::WorkerT< T >::workerType ( ) const [private, virtual]

Implements edm::Worker.

Definition at line 138 of file WorkerT.h.

References sistrip::module_.

                               {
    return module_->workerType();
  }

Member Data Documentation

template<typename T>
std::auto_ptr<T> edm::WorkerT< T >::module_ [private]