CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::stream::EDProducerBase Class Referenceabstract

#include "FWCore/Framework/interface/stream/EDProducerBase.h"

Inheritance diagram for edm::stream::EDProducerBase:
edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper edm::stream::EDProducer< T > edm::stream::EDProducer< edm::GlobalCache< AlCaHBHEMuons::Counters > > edm::stream::EDProducer< edm::GlobalCache< AlCaIsoTracks::Counters > > edm::stream::EDProducer< edm::GlobalCache< convbremhelpers::HeavyObjectCache > > edm::stream::EDProducer< edm::GlobalCache< Count > > edm::stream::EDProducer< edm::GlobalCache< Counters > > edm::stream::EDProducer< edm::GlobalCache< egamma::MVAObjectCache > > edm::stream::EDProducer< edm::GlobalCache< GlobalInputTags > > edm::stream::EDProducer< edm::GlobalCache< goodseedhelpers::HeavyObjectCache > > edm::stream::EDProducer< edm::GlobalCache< gsfAlgoHelpers::HeavyObjectCache > > edm::stream::EDProducer< edm::GlobalCache< OscarMTMasterThread >, edm::RunCache< int > > edm::stream::EDProducer< edm::GlobalCache< pfEGHelpers::HeavyObjectCache > > edm::stream::EDProducer< GlobalCache< MixingCache::Config > > edm::stream::EDProducer<>

Public Types

typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

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

Private Member Functions

virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void beginStream (StreamID)
 
 EDProducerBase (const EDProducerBase &)=delete
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
virtual void endStream ()
 
const EDProducerBaseoperator= (const EDProducerBase &)=delete
 
virtual void produce (Event &, EventSetup const &)=0
 
virtual void registerThinnedAssociations (ProductRegistry const &, ThinnedAssociationsHelper &)
 
void setModuleDescriptionPtr (ModuleDescription const *iDesc)
 

Private Attributes

ModuleDescription const * moduleDescriptionPtr_
 
std::vector< BranchIDpreviousParentage_
 
ParentageID previousParentageId_
 

Friends

class EDProducerAdaptorBase
 
class ProducingModuleAdaptorBase< EDProducerBase >
 

Additional Inherited Members

- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 41 of file EDProducerBase.h.

Member Typedef Documentation

Definition at line 48 of file EDProducerBase.h.

Constructor & Destructor Documentation

EDProducerBase::EDProducerBase ( )

Definition at line 34 of file EDProducerBase.cc.

Referenced by moduleDescription().

34  : moduleDescriptionPtr_(nullptr)
35 {
36 }
ModuleDescription const * moduleDescriptionPtr_
EDProducerBase::~EDProducerBase ( )
virtual

Definition at line 43 of file EDProducerBase.cc.

44 {
45 }
edm::stream::EDProducerBase::EDProducerBase ( const EDProducerBase )
privatedelete

Member Function Documentation

const std::string & EDProducerBase::baseType ( )
static

Definition at line 85 of file EDProducerBase.cc.

References edm::kBaseType().

85  {
86  return kBaseType;
87 }
static const std::string kBaseType("EDAnalyzer")
virtual void edm::stream::EDProducerBase::beginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
inlineprivatevirtual
virtual void edm::stream::EDProducerBase::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineprivatevirtual
virtual void edm::stream::EDProducerBase::beginStream ( StreamID  )
inlineprivatevirtual
virtual void edm::stream::EDProducerBase::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
inlineprivatevirtual

Reimplemented in edm::DataMixingModule, edm::MixingModule, l1t::L1TDigiToRaw, and l1t::L1TRawToDigi.

Definition at line 70 of file EDProducerBase.h.

70 {}
virtual void edm::stream::EDProducerBase::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineprivatevirtual
virtual void edm::stream::EDProducerBase::endStream ( )
inlineprivatevirtual
void EDProducerBase::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 71 of file EDProducerBase.cc.

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

71  {
73  desc.setUnknown();
74  descriptions.addDefault(desc);
75 }
ModuleDescription const& edm::stream::EDProducerBase::moduleDescription ( ) const
inline
const EDProducerBase& edm::stream::EDProducerBase::operator= ( const EDProducerBase )
privatedelete

Referenced by moduleDescription().

void EDProducerBase::prevalidate ( ConfigurationDescriptions descriptions)
static

Definition at line 78 of file EDProducerBase.cc.

References edm::edmodule_mightGet_config(), edm::kBaseType(), and AlCaHLTBitMon_QueryRunRegistry::string.

78  {
79  edmodule_mightGet_config(iConfig);
80 }
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
virtual void edm::stream::EDProducerBase::produce ( Event ,
EventSetup const &   
)
privatepure virtual
virtual void edm::stream::EDProducerBase::registerThinnedAssociations ( ProductRegistry const &  ,
ThinnedAssociationsHelper  
)
inlineprivatevirtual

Reimplemented in edm::ThinningProducer< Collection, Selector >.

Definition at line 74 of file EDProducerBase.h.

75  { }
void edm::stream::EDProducerBase::setModuleDescriptionPtr ( ModuleDescription const *  iDesc)
inlineprivate

Definition at line 77 of file EDProducerBase.h.

References moduleDescriptionPtr_.

77  {
78  moduleDescriptionPtr_ = iDesc;
79  }
ModuleDescription const * moduleDescriptionPtr_

Friends And Related Function Documentation

friend class EDProducerAdaptorBase
friend

Definition at line 44 of file EDProducerBase.h.

Definition at line 45 of file EDProducerBase.h.

Member Data Documentation

ModuleDescription const* edm::stream::EDProducerBase::moduleDescriptionPtr_
private

Definition at line 83 of file EDProducerBase.h.

Referenced by moduleDescription(), and setModuleDescriptionPtr().

std::vector<BranchID> edm::stream::EDProducerBase::previousParentage_
private

Definition at line 81 of file EDProducerBase.h.

ParentageID edm::stream::EDProducerBase::previousParentageId_
private

Definition at line 82 of file EDProducerBase.h.