CMS 3D CMS Logo

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

edm::one::EDProducerBase Class Reference

#include <EDProducerBase.h>

Inheritance diagram for edm::one::EDProducerBase:
edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper edm::one::EDProducer< T > edm::one::EDProducer< edm::BeginLuminosityBlockProducer > edm::one::EDProducer< edm::BeginRunProducer > edm::one::EDProducer< edm::BeginRunProducer, edm::EndRunProducer > edm::one::EDProducer< edm::EndLuminosityBlockProducer > edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks > edm::one::EDProducer< edm::EndRunProducer > edm::one::EDProducer< edm::EndRunProducer, edm::EndLuminosityBlockProducer > edm::one::EDProducer< edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks > edm::one::EDProducer< edm::one::WatchLuminosityBlocks, edm::EndLuminosityBlockProducer > edm::one::EDProducer< edm::one::WatchRuns, edm::BeginLuminosityBlockProducer, edm::EndRunProducer > edm::one::EDProducer< edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::EndRunProducer > edm::one::EDProducer< EndRunProducer > edm::one::EDProducer< one::WatchRuns, EndRunProducer >

List of all members.

Public Types

typedef EDProducerBase ModuleType
typedef WorkerT< EDProducerBaseWorkerType

Public Member Functions

 EDProducerBase ()
virtual ~EDProducerBase ()

Static Public Member Functions

static const std::string & baseType ()
static void fillDescriptions (ConfigurationDescriptions &descriptions)
static void prevalidate (ConfigurationDescriptions &descriptions)

Protected Member Functions

CurrentProcessingContext const * currentContext () const

Private Member Functions

virtual void beginJob ()
void doBeginJob ()
void doBeginLuminosityBlock (LuminosityBlockPrincipal &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void doBeginLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
virtual void doBeginLuminosityBlockProduce_ (LuminosityBlock &lbp, EventSetup const &c)
void doBeginRun (RunPrincipal &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void doBeginRun_ (Run const &rp, EventSetup const &c)
virtual void doBeginRunProduce_ (Run &rp, EventSetup const &c)
void doEndJob ()
void doEndLuminosityBlock (LuminosityBlockPrincipal &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void doEndLuminosityBlock_ (LuminosityBlock const &lbp, EventSetup const &c)
virtual void doEndLuminosityBlockProduce_ (LuminosityBlock &lbp, EventSetup const &c)
void doEndRun (RunPrincipal &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
virtual void doEndRun_ (Run const &rp, EventSetup const &c)
virtual void doEndRunProduce_ (Run &rp, EventSetup const &c)
bool doEvent (EventPrincipal &ep, EventSetup const &c, CurrentProcessingContext const *cpcp)
void doPostForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren)
void doPreForkReleaseResources ()
void doRespondToCloseInputFile (FileBlock const &fb)
void doRespondToCloseOutputFiles (FileBlock const &fb)
void doRespondToOpenInputFile (FileBlock const &fb)
void doRespondToOpenOutputFiles (FileBlock const &fb)
virtual void endJob ()
virtual void produce (Event &, EventSetup const &)=0
void registerProductsAndCallbacks (EDProducerBase *module, ProductRegistry *reg)
void setModuleDescription (ModuleDescription const &md)
std::string workerType () const

Private Attributes

CurrentProcessingContext const * current_context_
ModuleDescription moduleDescription_
std::vector< BranchIDpreviousParentage_
ParentageID previousParentageId_

Friends

class edm::WorkerT

Detailed Description

Definition at line 35 of file EDProducerBase.h.


Member Typedef Documentation

Definition at line 40 of file EDProducerBase.h.

Definition at line 41 of file EDProducerBase.h.


Constructor & Destructor Documentation

edm::one::EDProducerBase::EDProducerBase ( )
edm::one::EDProducerBase::~EDProducerBase ( ) [virtual]

Definition at line 47 of file EDProducerBase.cc.

    {
    }

Member Function Documentation

const std::string & edm::one::EDProducerBase::baseType ( ) [static]

Definition at line 181 of file EDProducerBase.cc.

References edm::one::kBaseType().

                             {
      return kBaseType;
    }
virtual void edm::one::EDProducerBase::beginJob ( void  ) [inline, private, virtual]
CurrentProcessingContext const * edm::one::EDProducerBase::currentContext ( ) const [protected]

Definition at line 162 of file EDProducerBase.cc.

References current_context_.

                                         {
      return current_context_;
    }
void edm::one::EDProducerBase::doBeginJob ( ) [private]

Definition at line 63 of file EDProducerBase.cc.

References beginJob().

                               {
      this->beginJob();
    }
void edm::one::EDProducerBase::doBeginLuminosityBlock ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private]
void edm::one::EDProducerBase::doBeginLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
) [private, virtual]

Definition at line 153 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

{}
void edm::one::EDProducerBase::doBeginLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
) [private, virtual]

Definition at line 158 of file EDProducerBase.cc.

Referenced by doBeginLuminosityBlock().

{}
void edm::one::EDProducerBase::doBeginRun ( RunPrincipal rp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private]

Definition at line 73 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), current_context_, doBeginRun_(), doBeginRunProduce_(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

                                                                {
      
      detail::CPCSentry sentry(current_context_, cpc);
      Run r(rp, moduleDescription_);
      r.setConsumer(this);
      Run const& cnstR = r;
      this->doBeginRun_(cnstR, c);
      this->doBeginRunProduce_(r,c);
      commit_(r);
    }
void edm::one::EDProducerBase::doBeginRun_ ( Run const &  rp,
EventSetup const &  c 
) [private, virtual]

Definition at line 151 of file EDProducerBase.cc.

Referenced by doBeginRun().

{}
void edm::one::EDProducerBase::doBeginRunProduce_ ( Run rp,
EventSetup const &  c 
) [private, virtual]

Definition at line 156 of file EDProducerBase.cc.

Referenced by doBeginRun().

{}
void edm::one::EDProducerBase::doEndJob ( ) [private]

Definition at line 68 of file EDProducerBase.cc.

References endJob().

                             {
      this->endJob();
    }
void edm::one::EDProducerBase::doEndLuminosityBlock ( LuminosityBlockPrincipal lbp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private]
void edm::one::EDProducerBase::doEndLuminosityBlock_ ( LuminosityBlock const &  lbp,
EventSetup const &  c 
) [private, virtual]

Definition at line 154 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

{}
void edm::one::EDProducerBase::doEndLuminosityBlockProduce_ ( LuminosityBlock lbp,
EventSetup const &  c 
) [private, virtual]

Definition at line 159 of file EDProducerBase.cc.

Referenced by doEndLuminosityBlock().

{}
void edm::one::EDProducerBase::doEndRun ( RunPrincipal rp,
EventSetup const &  c,
CurrentProcessingContext const *  cpc 
) [private]

Definition at line 86 of file EDProducerBase.cc.

References edm::ProducerBase::commit_(), current_context_, doEndRun_(), doEndRunProduce_(), moduleDescription_, alignCSCRings::r, and edm::Run::setConsumer().

                                                              {
      detail::CPCSentry sentry(current_context_, cpc);
      Run r(rp, moduleDescription_);
      r.setConsumer(this);
      Run const& cnstR = r;
      this->doEndRun_(cnstR, c);
      this->doEndRunProduce_(r, c);
      commit_(r);
    }
void edm::one::EDProducerBase::doEndRun_ ( Run const &  rp,
EventSetup const &  c 
) [private, virtual]

Definition at line 152 of file EDProducerBase.cc.

Referenced by doEndRun().

{}
void edm::one::EDProducerBase::doEndRunProduce_ ( Run rp,
EventSetup const &  c 
) [private, virtual]

Definition at line 157 of file EDProducerBase.cc.

Referenced by doEndRun().

{}
bool edm::one::EDProducerBase::doEvent ( EventPrincipal ep,
EventSetup const &  c,
CurrentProcessingContext const *  cpcp 
) [private]
void edm::one::EDProducerBase::doPostForkReacquireResources ( unsigned int  iChildIndex,
unsigned int  iNumberOfChildren 
) [private]

Definition at line 147 of file EDProducerBase.cc.

                                                                                                         {
      //postForkReacquireResources(iChildIndex, iNumberOfChildren);
    }
void edm::one::EDProducerBase::doPreForkReleaseResources ( ) [private]

Definition at line 142 of file EDProducerBase.cc.

                                              {
      //preForkReleaseResources();
    }
void edm::one::EDProducerBase::doRespondToCloseInputFile ( FileBlock const &  fb) [private]

Definition at line 127 of file EDProducerBase.cc.

                                                                 {
      //respondToCloseInputFile(fb);
    }
void edm::one::EDProducerBase::doRespondToCloseOutputFiles ( FileBlock const &  fb) [private]

Definition at line 137 of file EDProducerBase.cc.

                                                                   {
      //respondToCloseOutputFiles(fb);
    }
void edm::one::EDProducerBase::doRespondToOpenInputFile ( FileBlock const &  fb) [private]

Definition at line 122 of file EDProducerBase.cc.

                                                                {
      //respondToOpenInputFile(fb);
    }
void edm::one::EDProducerBase::doRespondToOpenOutputFiles ( FileBlock const &  fb) [private]

Definition at line 132 of file EDProducerBase.cc.

                                                                  {
      //respondToOpenOutputFiles(fb);
    }
virtual void edm::one::EDProducerBase::endJob ( void  ) [inline, private, virtual]
void edm::one::EDProducerBase::fillDescriptions ( ConfigurationDescriptions descriptions) [static]

Reimplemented in ExternalLHEProducer, and RandomEngineStateProducer.

Definition at line 167 of file EDProducerBase.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

                                                                            {
      ParameterSetDescription desc;
      desc.setUnknown();
      descriptions.addDefault(desc);
    }
void edm::one::EDProducerBase::prevalidate ( ConfigurationDescriptions descriptions) [static]

Definition at line 174 of file EDProducerBase.cc.

References edm::edmodule_mightGet_config().

                                                                  {
      edmodule_mightGet_config(iConfig);
    }
virtual void edm::one::EDProducerBase::produce ( Event ,
EventSetup const &   
) [private, pure virtual]
void edm::one::EDProducerBase::registerProductsAndCallbacks ( EDProducerBase module,
ProductRegistry reg 
) [inline, private]
void edm::one::EDProducerBase::setModuleDescription ( ModuleDescription const &  md) [inline, private]

Definition at line 100 of file EDProducerBase.h.

References moduleDescription_.

                                                             {
        moduleDescription_ = md;
      }
std::string edm::one::EDProducerBase::workerType ( ) const [inline, private]

Definition at line 83 of file EDProducerBase.h.

{return "WorkerT<EDProducer>";}

Friends And Related Function Documentation

friend class edm::WorkerT [friend]

Definition at line 39 of file EDProducerBase.h.


Member Data Documentation

Definition at line 105 of file EDProducerBase.h.

Referenced by doEvent().

Definition at line 106 of file EDProducerBase.h.

Referenced by doEvent().