CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::StreamerInputSource::EventPrincipalHolder Class Reference
Inheritance diagram for edm::StreamerInputSource::EventPrincipalHolder:
edm::EDProductGetter

Public Member Functions

 EventPrincipalHolder ()
 
WrapperBase const * getIt (ProductID const &id) const override
 
WrapperBase const * getThinnedProduct (ProductID const &, unsigned int &) const override
 
void getThinnedProducts (ProductID const &pid, std::vector< WrapperBase const * > &wrappers, std::vector< unsigned int > &keys) const override
 
void setEventPrincipal (EventPrincipal *ep)
 
unsigned int transitionIndex_ () const override
 
 ~EventPrincipalHolder () override
 
- Public Member Functions inherited from edm::EDProductGetter
 EDProductGetter ()
 
 EDProductGetter (EDProductGetter const &)=delete
 
EDProductGetter const & operator= (EDProductGetter const &)=delete
 
unsigned int transitionIndex () const
 
virtual ~EDProductGetter ()
 

Private Attributes

EventPrincipal const * eventPrincipal_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDProductGetter
static void assignEDProductGetter (EDProductGetter const *&)
 
static EDProductGetter const * switchProductGetter (EDProductGetter const *)
 These can only be used internally by the framework. More...
 

Detailed Description

Definition at line 71 of file StreamerInputSource.h.

Constructor & Destructor Documentation

edm::StreamerInputSource::EventPrincipalHolder::EventPrincipalHolder ( )

Definition at line 408 of file StreamerInputSource.cc.

408 : eventPrincipal_(nullptr) {}
edm::StreamerInputSource::EventPrincipalHolder::~EventPrincipalHolder ( )
override

Definition at line 410 of file StreamerInputSource.cc.

410 {}

Member Function Documentation

WrapperBase const * edm::StreamerInputSource::EventPrincipalHolder::getIt ( ProductID const &  id) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 413 of file StreamerInputSource.cc.

References eventPrincipal_, and edm::EventPrincipal::getIt().

413  {
414  return eventPrincipal_ ? eventPrincipal_->getIt(id) : nullptr;
415  }
WrapperBase const * getIt(ProductID const &pid) const override
WrapperBase const * edm::StreamerInputSource::EventPrincipalHolder::getThinnedProduct ( edm::ProductID const &  id,
unsigned int &  index 
) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 418 of file StreamerInputSource.cc.

References eventPrincipal_, and edm::EventPrincipal::getThinnedProduct().

418  {
419  return eventPrincipal_ ? eventPrincipal_->getThinnedProduct(id, index) : nullptr;
420  }
WrapperBase const * getThinnedProduct(ProductID const &pid, unsigned int &key) const override
void edm::StreamerInputSource::EventPrincipalHolder::getThinnedProducts ( ProductID const &  pid,
std::vector< WrapperBase const * > &  wrappers,
std::vector< unsigned int > &  keys 
) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 423 of file StreamerInputSource.cc.

References eventPrincipal_, and edm::EventPrincipal::getThinnedProducts().

425  {
427  }
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const override
void edm::StreamerInputSource::EventPrincipalHolder::setEventPrincipal ( EventPrincipal ep)

Definition at line 437 of file StreamerInputSource.cc.

References eventPrincipal_.

437  {
438  eventPrincipal_ = ep;
439  }
unsigned int edm::StreamerInputSource::EventPrincipalHolder::transitionIndex_ ( ) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 431 of file StreamerInputSource.cc.

References eventPrincipal_, and edm::EDProductGetter::transitionIndex().

431  {
432  assert(eventPrincipal_ != nullptr);
434  }
unsigned int transitionIndex() const

Member Data Documentation

EventPrincipal const* edm::StreamerInputSource::EventPrincipalHolder::eventPrincipal_
private