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

#include <TrackCollection.h>

Inheritance diagram for edm4eic::TrackCollection:

Public Types

using value_type = Track
 
using const_iterator = TrackCollectionIterator
 
using iterator = TrackMutableCollectionIterator
 

Public Member Functions

 TrackCollection ()
 
 TrackCollection (TrackCollectionData &&data, bool isSubsetColl)
 
 TrackCollection (const TrackCollection &)=delete
 
TrackCollectionoperator= (const TrackCollection &)=delete
 
 TrackCollection (TrackCollection &&)=default
 
TrackCollectionoperator= (TrackCollection &&)=default
 
 ~TrackCollection ()
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
TrackCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutableTrack create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutableTrack 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
 
Track operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutableTrack operator[] (std::size_t index)
 Returns the object of a given index.
 
Track at (std::size_t index) const
 Returns the const object of given index.
 
MutableTrack at (std::size_t index)
 Returns the object of given index.
 
void push_back (MutableTrack object)
 Append object to the collection.
 
void push_back (Track 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::int32_t > type (const size_t nElem=0) const
 
std::vector< edm4hep::Vector3f > position (const size_t nElem=0) const
 
std::vector< edm4hep::Vector3f > momentum (const size_t nElem=0) const
 
std::vector< edm4eic::Cov6fpositionMomentumCovariance (const size_t nElem=0) const
 
std::vector< float > time (const size_t nElem=0) const
 
std::vector< float > timeError (const size_t nElem=0) const
 
std::vector< float > charge (const size_t nElem=0) const
 
std::vector< float > chi2 (const size_t nElem=0) const
 
std::vector< std::uint32_t > ndf (const size_t nElem=0) const
 
std::vector< std::int32_t > pdg (const size_t nElem=0) const
 

Static Public Attributes

static constexpr auto typeName = "edm4eic::TrackCollection"
 
static constexpr auto valueTypeName = "edm4eic::Track"
 
static constexpr auto dataTypeName = "edm4eic::TrackData"
 

Friends

class TrackCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ TrackCollection() [1/4]

edm4eic::TrackCollection::TrackCollection ( )

◆ TrackCollection() [2/4]

edm4eic::TrackCollection::TrackCollection ( TrackCollectionData && data,
bool isSubsetColl )

◆ TrackCollection() [3/4]

edm4eic::TrackCollection::TrackCollection ( const TrackCollection & )
delete

◆ TrackCollection() [4/4]

edm4eic::TrackCollection::TrackCollection ( TrackCollection && )
default

◆ ~TrackCollection()

edm4eic::TrackCollection::~TrackCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableTrack edm4eic::TrackCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

Track edm4eic::TrackCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::TrackCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ charge()

std::vector< float > edm4eic::TrackCollection::charge ( const size_t nElem = 0) const

◆ chi2()

std::vector< float > edm4eic::TrackCollection::chi2 ( const size_t nElem = 0) const

◆ clear()

void edm4eic::TrackCollection::clear ( )
final

◆ create() [1/2]

MutableTrack edm4eic::TrackCollection::create ( )

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

◆ create() [2/2]

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

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

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::TrackCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ momentum()

std::vector< edm4hep::Vector3f > edm4eic::TrackCollection::momentum ( const size_t nElem = 0) const

◆ ndf()

std::vector< std::uint32_t > edm4eic::TrackCollection::ndf ( const size_t nElem = 0) const

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutableTrack edm4eic::TrackCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

Track edm4eic::TrackCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ pdg()

std::vector< std::int32_t > edm4eic::TrackCollection::pdg ( const size_t nElem = 0) const

◆ position()

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

◆ positionMomentumCovariance()

std::vector< edm4eic::Cov6f > edm4eic::TrackCollection::positionMomentumCovariance ( const size_t nElem = 0) const

◆ prepareAfterRead()

void edm4eic::TrackCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::TrackCollection::push_back ( MutableTrack object)

Append object to the collection.

◆ push_back() [2/2]

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

Append an object to the (subset) collection.

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

◆ time()

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

◆ timeError()

std::vector< float > edm4eic::TrackCollection::timeError ( const size_t nElem = 0) const

◆ type()

std::vector< std::int32_t > edm4eic::TrackCollection::type ( const size_t nElem = 0) const

Friends And Related Symbol Documentation

◆ TrackCollectionData

friend class TrackCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::TrackCollection::dataTypeName = "edm4eic::TrackData"
staticconstexpr

◆ typeName

auto edm4eic::TrackCollection::typeName = "edm4eic::TrackCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::TrackCollection::valueTypeName = "edm4eic::Track"
staticconstexpr

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