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

#include <TrackSegmentCollection.h>

Inheritance diagram for edm4eic::TrackSegmentCollection:

Public Types

using value_type = TrackSegment
 
using const_iterator = TrackSegmentCollectionIterator
 
using iterator = TrackSegmentMutableCollectionIterator
 

Public Member Functions

 TrackSegmentCollection ()
 
 TrackSegmentCollection (TrackSegmentCollectionData &&data, bool isSubsetColl)
 
 TrackSegmentCollection (const TrackSegmentCollection &)=delete
 
TrackSegmentCollectionoperator= (const TrackSegmentCollection &)=delete
 
 TrackSegmentCollection (TrackSegmentCollection &&)=default
 
TrackSegmentCollectionoperator= (TrackSegmentCollection &&)=default
 
 ~TrackSegmentCollection ()
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
TrackSegmentCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutableTrackSegment create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutableTrackSegment 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
 
TrackSegment operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutableTrackSegment operator[] (std::size_t index)
 Returns the object of a given index.
 
TrackSegment at (std::size_t index) const
 Returns the const object of given index.
 
MutableTrackSegment at (std::size_t index)
 Returns the object of given index.
 
void push_back (MutableTrackSegment object)
 Append object to the collection.
 
void push_back (TrackSegment 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 > length (const size_t nElem=0) const
 
std::vector< float > lengthError (const size_t nElem=0) const
 

Static Public Attributes

static constexpr auto typeName = "edm4eic::TrackSegmentCollection"
 
static constexpr auto valueTypeName = "edm4eic::TrackSegment"
 
static constexpr auto dataTypeName = "edm4eic::TrackSegmentData"
 

Friends

class TrackSegmentCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ TrackSegmentCollection() [1/4]

edm4eic::TrackSegmentCollection::TrackSegmentCollection ( )

◆ TrackSegmentCollection() [2/4]

edm4eic::TrackSegmentCollection::TrackSegmentCollection ( TrackSegmentCollectionData && data,
bool isSubsetColl )

◆ TrackSegmentCollection() [3/4]

edm4eic::TrackSegmentCollection::TrackSegmentCollection ( const TrackSegmentCollection & )
delete

◆ TrackSegmentCollection() [4/4]

edm4eic::TrackSegmentCollection::TrackSegmentCollection ( TrackSegmentCollection && )
default

◆ ~TrackSegmentCollection()

edm4eic::TrackSegmentCollection::~TrackSegmentCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableTrackSegment edm4eic::TrackSegmentCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

TrackSegment edm4eic::TrackSegmentCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::TrackSegmentCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ clear()

void edm4eic::TrackSegmentCollection::clear ( )
final

◆ create() [1/2]

MutableTrackSegment edm4eic::TrackSegmentCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutableTrackSegment edm4eic::TrackSegmentCollection::create ( Args &&... args)

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

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::TrackSegmentCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ length()

std::vector< float > edm4eic::TrackSegmentCollection::length ( const size_t nElem = 0) const

◆ lengthError()

std::vector< float > edm4eic::TrackSegmentCollection::lengthError ( const size_t nElem = 0) const

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutableTrackSegment edm4eic::TrackSegmentCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

TrackSegment edm4eic::TrackSegmentCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ prepareAfterRead()

void edm4eic::TrackSegmentCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::TrackSegmentCollection::push_back ( MutableTrackSegment object)

Append object to the collection.

◆ push_back() [2/2]

void edm4eic::TrackSegmentCollection::push_back ( TrackSegment object)

Append an object to the (subset) collection.

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

Friends And Related Symbol Documentation

◆ TrackSegmentCollectionData

friend class TrackSegmentCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::TrackSegmentCollection::dataTypeName = "edm4eic::TrackSegmentData"
staticconstexpr

◆ typeName

auto edm4eic::TrackSegmentCollection::typeName = "edm4eic::TrackSegmentCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::TrackSegmentCollection::valueTypeName = "edm4eic::TrackSegment"
staticconstexpr

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