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  }

◆ 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.

498  {
499  if (eventPrincipal_) {
500  return eventPrincipal_->getThinnedKeyFrom(parent, index, thinned);
501  } else {
502  return std::monostate{};
503  }
504  }

References class-composition::parent.

◆ 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  }

◆ 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.

492  {
493  if (eventPrincipal_)
494  eventPrincipal_->getThinnedProducts(pid, wrappers, keys);
495  }

References relativeConstraints::keys.

◆ 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.

506  {
507  assert(eventPrincipal_ != nullptr);
509  }

References cms::cuda::assert().

Member Data Documentation

◆ eventPrincipal_

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

Definition at line 109 of file StreamerInputSource.h.

edm::EventPrincipal::getIt
WrapperBase const * getIt(ProductID const &pid) const override
Definition: EventPrincipal.cc:303
edm::EventPrincipal::getThinnedProduct
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key) const override
Definition: EventPrincipal.cc:305
cms::cuda::assert
assert(be >=bs)
relativeConstraints.keys
keys
Definition: relativeConstraints.py:89
edm::EventPrincipal::getThinnedKeyFrom
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override
Definition: EventPrincipal.cc:329
edm::StreamerInputSource::EventPrincipalHolder::eventPrincipal_
EventPrincipal const * eventPrincipal_
Definition: StreamerInputSource.h:109
edm::EventPrincipal::getThinnedProducts
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const override
Definition: EventPrincipal.cc:316
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::EDProductGetter::transitionIndex
unsigned int transitionIndex() const
Definition: EDProductGetter.h:94
class-composition.parent
parent
Definition: class-composition.py:88
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86