EICd
EIC data model
eicd::TrackCollection Class Reference

#include <TrackCollection.h>

Inheritance diagram for eicd::TrackCollection:

Public Types

using const_iterator = TrackCollectionIterator
 
using iterator = TrackMutableCollectionIterator
 

Public Member Functions

 TrackCollection ()
 
 TrackCollection (const TrackCollection &)=delete
 
TrackCollectionoperator= (const TrackCollection &)=delete
 
 TrackCollection (TrackCollection &&)=default
 
TrackCollectionoperator= (TrackCollection &&)=default
 
 ~TrackCollection ()
 
void clear () final
 
TrackCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO More...
 
MutableTrack create ()
 Append a new object to the collection, and return this object. More...
 
template<typename... Args>
MutableTrack create (Args &&... args)
 
size_t size () const final
 number of elements in the collection More...
 
std::string getTypeName () const final
 fully qualified type name More...
 
std::string getValueTypeName () const final
 fully qualified type name of elements - with namespace More...
 
std::string getDataTypeName () const final
 fully qualified type name of stored POD elements - with namespace More...
 
bool isSubsetCollection () const final
 
void setSubsetCollection (bool setSubset=true) final
 
Track operator[] (unsigned int index) const
 Returns the const object of given index. More...
 
MutableTrack operator[] (unsigned int index)
 Returns the object of a given index. More...
 
Track at (unsigned int index) const
 Returns the const object of given index. More...
 
MutableTrack at (unsigned int index)
 Returns the object of given index. More...
 
void push_back (Track object)
 Append object to the collection. More...
 
void prepareForWrite () const final
 
void prepareAfterRead () final
 
bool setReferences (const podio::ICollectionProvider *collectionProvider) final
 
podio::CollectionBuffers getBuffers () final
 Get the collection buffers for this collection. More...
 
void setID (unsigned ID) final
 
unsigned getID () const final
 
bool isValid () const final
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
template<size_t arraysize>
const std::array< std::int32_t, arraysize > type () const
 
template<size_t arraysize>
const std::array< float, arraysize > chi2 () const
 
template<size_t arraysize>
const std::array< std::int32_t, arraysize > ndf () const
 
template<size_t arraysize>
const std::array< edm4hep::Vector3f, arraysize > momentum () const
 
template<size_t arraysize>
const std::array< eicd::Cov3f, arraysize > momentumError () const
 
template<size_t arraysize>
const std::array< float, arraysize > time () const
 
template<size_t arraysize>
const std::array< float, arraysize > timeError () const
 
template<size_t arraysize>
const std::array< float, arraysize > charge () const
 

Friends

class TrackCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ TrackCollection() [1/3]

eicd::TrackCollection::TrackCollection ( )

◆ TrackCollection() [2/3]

eicd::TrackCollection::TrackCollection ( const TrackCollection )
delete

◆ TrackCollection() [3/3]

eicd::TrackCollection::TrackCollection ( TrackCollection &&  )
default

◆ ~TrackCollection()

eicd::TrackCollection::~TrackCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableTrack eicd::TrackCollection::at ( unsigned int  index)

Returns the object of given index.

◆ at() [2/2]

Track eicd::TrackCollection::at ( unsigned int  index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator eicd::TrackCollection::begin ( )
inline

◆ begin() [2/2]

const_iterator eicd::TrackCollection::begin ( ) const
inline

◆ charge()

template<size_t arraysize>
const std::array< float, arraysize > eicd::TrackCollection::charge

◆ chi2()

template<size_t arraysize>
const std::array< float, arraysize > eicd::TrackCollection::chi2

◆ clear()

void eicd::TrackCollection::clear ( )
final

◆ create() [1/2]

MutableTrack eicd::TrackCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutableTrack eicd::TrackCollection::create ( Args &&...  args)

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

◆ end() [1/2]

iterator eicd::TrackCollection::end ( )
inline

◆ end() [2/2]

const_iterator eicd::TrackCollection::end ( ) const
inline

◆ getBuffers()

podio::CollectionBuffers eicd::TrackCollection::getBuffers ( )
final

Get the collection buffers for this collection.

◆ getDataTypeName()

std::string eicd::TrackCollection::getDataTypeName ( ) const
inlinefinal

fully qualified type name of stored POD elements - with namespace

◆ getID()

unsigned eicd::TrackCollection::getID ( ) const
inlinefinal

◆ getTypeName()

std::string eicd::TrackCollection::getTypeName ( ) const
inlinefinal

fully qualified type name

◆ getValueTypeName()

std::string eicd::TrackCollection::getValueTypeName ( ) const
inlinefinal

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

bool eicd::TrackCollection::isSubsetCollection ( ) const
inlinefinal

◆ isValid()

bool eicd::TrackCollection::isValid ( ) const
inlinefinal

◆ momentum()

template<size_t arraysize>
const std::array< edm4hep::Vector3f, arraysize > eicd::TrackCollection::momentum

◆ momentumError()

template<size_t arraysize>
const std::array< eicd::Cov3f, arraysize > eicd::TrackCollection::momentumError

◆ ndf()

template<size_t arraysize>
const std::array< std::int32_t, arraysize > eicd::TrackCollection::ndf

◆ operator->()

TrackCollection * eicd::TrackCollection::operator-> ( )
inline

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

TrackCollection & eicd::TrackCollection::operator= ( const TrackCollection )
delete

◆ operator=() [2/2]

TrackCollection & eicd::TrackCollection::operator= ( TrackCollection &&  )
default

◆ operator[]() [1/2]

MutableTrack eicd::TrackCollection::operator[] ( unsigned int  index)

Returns the object of a given index.

◆ operator[]() [2/2]

Track eicd::TrackCollection::operator[] ( unsigned int  index) const

Returns the const object of given index.

◆ prepareAfterRead()

void eicd::TrackCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

void eicd::TrackCollection::prepareForWrite ( ) const
final

◆ push_back()

void eicd::TrackCollection::push_back ( Track  object)

Append object to the collection.

◆ setID()

void eicd::TrackCollection::setID ( unsigned  ID)
inlinefinal

◆ setReferences()

bool eicd::TrackCollection::setReferences ( const podio::ICollectionProvider *  collectionProvider)
final

◆ setSubsetCollection()

void eicd::TrackCollection::setSubsetCollection ( bool  setSubset = true)
final

◆ size()

size_t eicd::TrackCollection::size ( ) const
final

number of elements in the collection

◆ time()

template<size_t arraysize>
const std::array< float, arraysize > eicd::TrackCollection::time

◆ timeError()

template<size_t arraysize>
const std::array< float, arraysize > eicd::TrackCollection::timeError

◆ type()

template<size_t arraysize>
const std::array< std::int32_t, arraysize > eicd::TrackCollection::type

Friends And Related Function Documentation

◆ TrackCollectionData

friend class TrackCollectionData
friend

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