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
 
OptionalThinnedKey getThinnedKeyFrom (ProductID const &, unsigned int, ProductID const &) const override
 
std::optional< std::tuple< edm::WrapperBase const *, unsigned int > > 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 90 of file StreamerInputSource.h.

Constructor & Destructor Documentation

◆ EventPrincipalHolder()

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

Definition at line 475 of file StreamerInputSource.cc.

475 : eventPrincipal_(nullptr) {}

◆ ~EventPrincipalHolder()

edm::StreamerInputSource::EventPrincipalHolder::~EventPrincipalHolder ( )
override

Definition at line 477 of file StreamerInputSource.cc.

477 {}

Member Function Documentation

◆ getIt()

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

Implements edm::EDProductGetter.

Definition at line 479 of file StreamerInputSource.cc.

479  {
480  return eventPrincipal_ ? eventPrincipal_->getIt(id) : nullptr;
481  }
WrapperBase const * getIt(ProductID const &pid) const override

◆ getThinnedKeyFrom()

edm::OptionalThinnedKey edm::StreamerInputSource::EventPrincipalHolder::getThinnedKeyFrom ( edm::ProductID const &  parent,
unsigned int  index,
edm::ProductID const &  thinned 
) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 497 of file StreamerInputSource.cc.

References class-composition::parent.

498  {
499  if (eventPrincipal_) {
500  return eventPrincipal_->getThinnedKeyFrom(parent, index, thinned);
501  } else {
502  return std::monostate{};
503  }
504  }
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override

◆ getThinnedProduct()

std::optional< std::tuple< edm::WrapperBase const *, unsigned int > > edm::StreamerInputSource::EventPrincipalHolder::getThinnedProduct ( edm::ProductID const &  id,
unsigned int  index 
) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 484 of file StreamerInputSource.cc.

484  {
485  if (eventPrincipal_)
487  return std::nullopt;
488  }
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key) const override

◆ getThinnedProducts()

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 490 of file StreamerInputSource.cc.

References relativeConstraints::keys.

492  {
493  if (eventPrincipal_)
494  eventPrincipal_->getThinnedProducts(pid, wrappers, keys);
495  }
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const *> &foundContainers, std::vector< unsigned int > &keys) const override

◆ setEventPrincipal()

void edm::StreamerInputSource::EventPrincipalHolder::setEventPrincipal ( EventPrincipal ep)

◆ transitionIndex_()

unsigned int edm::StreamerInputSource::EventPrincipalHolder::transitionIndex_ ( ) const
overridevirtual

Implements edm::EDProductGetter.

Definition at line 506 of file StreamerInputSource.cc.

References cms::cuda::assert().

506  {
507  assert(eventPrincipal_ != nullptr);
509  }
assert(be >=bs)
unsigned int transitionIndex() const

Member Data Documentation

◆ eventPrincipal_

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

Definition at line 109 of file StreamerInputSource.h.