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

#include <Measurement2DCollection.h>

Inheritance diagram for edm4eic::Measurement2DCollection:

Public Types

using value_type = Measurement2D
 
using const_iterator = Measurement2DCollectionIterator
 
using iterator = Measurement2DMutableCollectionIterator
 

Public Member Functions

 Measurement2DCollection ()
 
 Measurement2DCollection (Measurement2DCollectionData &&data, bool isSubsetColl)
 
 Measurement2DCollection (const Measurement2DCollection &)=delete
 
Measurement2DCollectionoperator= (const Measurement2DCollection &)=delete
 
 Measurement2DCollection (Measurement2DCollection &&)=default
 
Measurement2DCollectionoperator= (Measurement2DCollection &&)=default
 
 ~Measurement2DCollection ()
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
Measurement2DCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutableMeasurement2D create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutableMeasurement2D 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
 
Measurement2D operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutableMeasurement2D operator[] (std::size_t index)
 Returns the object of a given index.
 
Measurement2D at (std::size_t index) const
 Returns the const object of given index.
 
MutableMeasurement2D at (std::size_t index)
 Returns the object of given index.
 
void push_back (MutableMeasurement2D object)
 Append object to the collection.
 
void push_back (Measurement2D 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< std::uint64_t > surface (const size_t nElem=0) const
 
std::vector< edm4hep::Vector2f > loc (const size_t nElem=0) const
 
std::vector< float > time (const size_t nElem=0) const
 
std::vector< edm4eic::Cov3fcovariance (const size_t nElem=0) const
 

Static Public Attributes

static constexpr auto typeName = "edm4eic::Measurement2DCollection"
 
static constexpr auto valueTypeName = "edm4eic::Measurement2D"
 
static constexpr auto dataTypeName = "edm4eic::Measurement2DData"
 

Friends

class Measurement2DCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ Measurement2DCollection() [1/4]

edm4eic::Measurement2DCollection::Measurement2DCollection ( )

◆ Measurement2DCollection() [2/4]

edm4eic::Measurement2DCollection::Measurement2DCollection ( Measurement2DCollectionData && data,
bool isSubsetColl )

◆ Measurement2DCollection() [3/4]

edm4eic::Measurement2DCollection::Measurement2DCollection ( const Measurement2DCollection & )
delete

◆ Measurement2DCollection() [4/4]

edm4eic::Measurement2DCollection::Measurement2DCollection ( Measurement2DCollection && )
default

◆ ~Measurement2DCollection()

edm4eic::Measurement2DCollection::~Measurement2DCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableMeasurement2D edm4eic::Measurement2DCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

Measurement2D edm4eic::Measurement2DCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::Measurement2DCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ clear()

void edm4eic::Measurement2DCollection::clear ( )
final

◆ covariance()

std::vector< edm4eic::Cov3f > edm4eic::Measurement2DCollection::covariance ( const size_t nElem = 0) const

◆ create() [1/2]

MutableMeasurement2D edm4eic::Measurement2DCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutableMeasurement2D edm4eic::Measurement2DCollection::create ( Args &&... args)

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

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::Measurement2DCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ loc()

std::vector< edm4hep::Vector2f > edm4eic::Measurement2DCollection::loc ( const size_t nElem = 0) const

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutableMeasurement2D edm4eic::Measurement2DCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

Measurement2D edm4eic::Measurement2DCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ prepareAfterRead()

void edm4eic::Measurement2DCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::Measurement2DCollection::push_back ( Measurement2D object)

Append an object to the (subset) collection.

◆ push_back() [2/2]

void edm4eic::Measurement2DCollection::push_back ( MutableMeasurement2D object)

Append object to the collection.

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

◆ surface()

std::vector< std::uint64_t > edm4eic::Measurement2DCollection::surface ( const size_t nElem = 0) const

◆ time()

std::vector< float > edm4eic::Measurement2DCollection::time ( const size_t nElem = 0) const

Friends And Related Symbol Documentation

◆ Measurement2DCollectionData

friend class Measurement2DCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::Measurement2DCollection::dataTypeName = "edm4eic::Measurement2DData"
staticconstexpr

◆ typeName

auto edm4eic::Measurement2DCollection::typeName = "edm4eic::Measurement2DCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::Measurement2DCollection::valueTypeName = "edm4eic::Measurement2D"
staticconstexpr

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