EDM4eic
EIC data model
Loading...
Searching...
No Matches
edm4eic::RingImageCollection Class Reference

#include <RingImageCollection.h>

Inheritance diagram for edm4eic::RingImageCollection:

Public Types

using value_type = RingImage
 
using const_iterator = RingImageCollectionIterator
 
using iterator = RingImageMutableCollectionIterator
 

Public Member Functions

 RingImageCollection ()
 
 RingImageCollection (RingImageCollectionData &&data, bool isSubsetColl)
 
 RingImageCollection (const RingImageCollection &)=delete
 
RingImageCollectionoperator= (const RingImageCollection &)=delete
 
 RingImageCollection (RingImageCollection &&)=default
 
RingImageCollectionoperator= (RingImageCollection &&)=default
 
 ~RingImageCollection ()
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
RingImageCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutableRingImage create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutableRingImage create (Args &&... args)
 
std::size_t size () const final
 number of elements in the collection
 
bool empty () const final
 Is the collection empty.
 
const std::string_view getTypeName () const final
 fully qualified type name
 
const std::string_view getValueTypeName () const final
 fully qualified type name of elements - with namespace
 
const std::string_view getDataTypeName () const final
 fully qualified type name of stored POD elements - with namespace
 
podio::SchemaVersionT getSchemaVersion () const final
 schema version
 
bool isSubsetCollection () const final
 
void setSubsetCollection (bool setSubset=true) final
 
RingImage operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutableRingImage operator[] (std::size_t index)
 Returns the object of a given index.
 
RingImage at (std::size_t index) const
 Returns the const object of given index.
 
MutableRingImage at (std::size_t index)
 Returns the object of given index.
 
void push_back (MutableRingImage object)
 Append object to the collection.
 
void push_back (RingImage object)
 Append an object to the (subset) collection.
 
void prepareForWrite () const final
 
void prepareAfterRead () final
 
bool setReferences (const podio::ICollectionProvider *collectionProvider) final
 
podio::CollectionWriteBuffers getBuffers () final
 Get the collection buffers for this collection.
 
void setID (uint32_t ID) final
 
uint32_t getID () const final
 
bool isValid () const final
 
size_t getDatamodelRegistryIndex () const final
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
std::vector< float > npe (const size_t nElem=0) const
 
std::vector< edm4hep::Vector3f > position (const size_t nElem=0) const
 
std::vector< edm4hep::Vector3f > positionError (const size_t nElem=0) const
 
std::vector< float > theta (const size_t nElem=0) const
 
std::vector< float > thetaError (const size_t nElem=0) const
 
std::vector< float > radius (const size_t nElem=0) const
 
std::vector< float > radiusError (const size_t nElem=0) const
 

Static Public Attributes

static constexpr auto typeName = "edm4eic::RingImageCollection"
 
static constexpr auto valueTypeName = "edm4eic::RingImage"
 
static constexpr auto dataTypeName = "edm4eic::RingImageData"
 

Friends

class RingImageCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ RingImageCollection() [1/4]

edm4eic::RingImageCollection::RingImageCollection ( )

◆ RingImageCollection() [2/4]

edm4eic::RingImageCollection::RingImageCollection ( RingImageCollectionData && data,
bool isSubsetColl )

◆ RingImageCollection() [3/4]

edm4eic::RingImageCollection::RingImageCollection ( const RingImageCollection & )
delete

◆ RingImageCollection() [4/4]

edm4eic::RingImageCollection::RingImageCollection ( RingImageCollection && )
default

◆ ~RingImageCollection()

edm4eic::RingImageCollection::~RingImageCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableRingImage edm4eic::RingImageCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

RingImage edm4eic::RingImageCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::RingImageCollection::begin ( )
inline

◆ begin() [2/2]

const_iterator edm4eic::RingImageCollection::begin ( ) const
inline

◆ clear()

void edm4eic::RingImageCollection::clear ( )
final

◆ create() [1/2]

MutableRingImage edm4eic::RingImageCollection::create ( )

Append a new object to the collection, and return this object.

◆ create() [2/2]

template<typename... Args>
MutableRingImage edm4eic::RingImageCollection::create ( Args &&... args)

Append a new object to the collection, and return this object. Initialized with the parameters given

◆ empty()

bool edm4eic::RingImageCollection::empty ( ) const
final

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::RingImageCollection::end ( )
inline

◆ end() [2/2]

const_iterator edm4eic::RingImageCollection::end ( ) const
inline

◆ getBuffers()

podio::CollectionWriteBuffers edm4eic::RingImageCollection::getBuffers ( )
final

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

size_t edm4eic::RingImageCollection::getDatamodelRegistryIndex ( ) const
final

◆ getDataTypeName()

const std::string_view edm4eic::RingImageCollection::getDataTypeName ( ) const
inlinefinal

fully qualified type name of stored POD elements - with namespace

◆ getID()

uint32_t edm4eic::RingImageCollection::getID ( ) const
inlinefinal

◆ getSchemaVersion()

podio::SchemaVersionT edm4eic::RingImageCollection::getSchemaVersion ( ) const
final

schema version

◆ getTypeName()

const std::string_view edm4eic::RingImageCollection::getTypeName ( ) const
inlinefinal

fully qualified type name

◆ getValueTypeName()

const std::string_view edm4eic::RingImageCollection::getValueTypeName ( ) const
inlinefinal

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

bool edm4eic::RingImageCollection::isSubsetCollection ( ) const
inlinefinal

◆ isValid()

bool edm4eic::RingImageCollection::isValid ( ) const
inlinefinal

◆ npe()

std::vector< float > edm4eic::RingImageCollection::npe ( const size_t nElem = 0) const

◆ operator->()

RingImageCollection * edm4eic::RingImageCollection::operator-> ( )
inline

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

RingImageCollection & edm4eic::RingImageCollection::operator= ( const RingImageCollection & )
delete

◆ operator=() [2/2]

RingImageCollection & edm4eic::RingImageCollection::operator= ( RingImageCollection && )
default

◆ operator[]() [1/2]

MutableRingImage edm4eic::RingImageCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

RingImage edm4eic::RingImageCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ position()

std::vector< edm4hep::Vector3f > edm4eic::RingImageCollection::position ( const size_t nElem = 0) const

◆ positionError()

std::vector< edm4hep::Vector3f > edm4eic::RingImageCollection::positionError ( const size_t nElem = 0) const

◆ prepareAfterRead()

void edm4eic::RingImageCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

void edm4eic::RingImageCollection::prepareForWrite ( ) const
final

◆ print()

void edm4eic::RingImageCollection::print ( std::ostream & os = std::cout,
bool flush = true ) const
final

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::RingImageCollection::push_back ( MutableRingImage object)

Append object to the collection.

◆ push_back() [2/2]

void edm4eic::RingImageCollection::push_back ( RingImage object)

Append an object to the (subset) collection.

◆ radius()

std::vector< float > edm4eic::RingImageCollection::radius ( const size_t nElem = 0) const

◆ radiusError()

std::vector< float > edm4eic::RingImageCollection::radiusError ( const size_t nElem = 0) const

◆ setID()

void edm4eic::RingImageCollection::setID ( uint32_t ID)
inlinefinal

◆ setReferences()

bool edm4eic::RingImageCollection::setReferences ( const podio::ICollectionProvider * collectionProvider)
final

◆ setSubsetCollection()

void edm4eic::RingImageCollection::setSubsetCollection ( bool setSubset = true)
final

◆ size()

std::size_t edm4eic::RingImageCollection::size ( ) const
final

number of elements in the collection

◆ theta()

std::vector< float > edm4eic::RingImageCollection::theta ( const size_t nElem = 0) const

◆ thetaError()

std::vector< float > edm4eic::RingImageCollection::thetaError ( const size_t nElem = 0) const

Friends And Related Symbol Documentation

◆ RingImageCollectionData

friend class RingImageCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::RingImageCollection::dataTypeName = "edm4eic::RingImageData"
staticconstexpr

◆ typeName

auto edm4eic::RingImageCollection::typeName = "edm4eic::RingImageCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::RingImageCollection::valueTypeName = "edm4eic::RingImage"
staticconstexpr

The documentation for this class was generated from the following files: