CMS 3D CMS Logo

List of all members | Public Member Functions
simproducer::ProductInfo< T > Class Template Reference

#include <SimProducer.h>

Inheritance diagram for simproducer::ProductInfo< T >:
simproducer::ProductInfoBase

Public Member Functions

 ProductInfo (const std::string &iInstanceName)
 
void registerProduct (edm::ProducesCollector producesCollector) const override
 
- Public Member Functions inherited from simproducer::ProductInfoBase
const std::string & instanceName () const
 
 ProductInfoBase (const std::string &iInstanceName)
 
virtual ~ProductInfoBase ()
 

Detailed Description

template<class T>
class simproducer::ProductInfo< T >

Definition at line 54 of file SimProducer.h.

Constructor & Destructor Documentation

◆ ProductInfo()

template<class T >
simproducer::ProductInfo< T >::ProductInfo ( const std::string &  iInstanceName)
inline

Definition at line 56 of file SimProducer.h.

56 : ProductInfoBase(iInstanceName) {}

Member Function Documentation

◆ registerProduct()

template<class T >
void simproducer::ProductInfo< T >::registerProduct ( edm::ProducesCollector  producesCollector) const
inlineoverridevirtual

Implements simproducer::ProductInfoBase.

Definition at line 58 of file SimProducer.h.

58  {
59  producesCollector.produces<T>(this->instanceName());
60  }

References simproducer::ProductInfoBase::instanceName(), and edm::ProducesCollector::produces().

simproducer::ProductInfoBase::ProductInfoBase
ProductInfoBase(const std::string &iInstanceName)
Definition: SimProducer.h:41
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
T
long double T
Definition: Basic3DVectorLD.h:48
simproducer::ProductInfoBase::instanceName
const std::string & instanceName() const
Definition: SimProducer.h:45