EDM4eic
EIC data model
|
#include <TrackSegmentCollection.h>
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 | |
TrackSegmentCollection & | operator= (const TrackSegmentCollection &)=delete |
TrackSegmentCollection (TrackSegmentCollection &&)=default | |
TrackSegmentCollection & | operator= (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. | |
TrackSegmentCollection * | operator-> () |
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 |
A Collection is identified by an ID.
edm4eic::TrackSegmentCollection::TrackSegmentCollection | ( | ) |
edm4eic::TrackSegmentCollection::TrackSegmentCollection | ( | TrackSegmentCollectionData && | data, |
bool | isSubsetColl ) |
|
delete |
|
default |
edm4eic::TrackSegmentCollection::~TrackSegmentCollection | ( | ) |
MutableTrackSegment edm4eic::TrackSegmentCollection::at | ( | std::size_t | index | ) |
Returns the object of given index.
TrackSegment edm4eic::TrackSegmentCollection::at | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
inline |
|
inline |
|
final |
MutableTrackSegment edm4eic::TrackSegmentCollection::create | ( | ) |
Append a new object to the collection, and return this object.
MutableTrackSegment edm4eic::TrackSegmentCollection::create | ( | Args &&... | args | ) |
Append a new object to the collection, and return this object. Initialized with the parameters given
|
final |
Is the collection empty.
|
inline |
|
inline |
|
final |
Get the collection buffers for this collection.
|
final |
|
inlinefinal |
fully qualified type name of stored POD elements - with namespace
|
inlinefinal |
|
final |
schema version
|
inlinefinal |
fully qualified type name
|
inlinefinal |
fully qualified type name of elements - with namespace
|
inlinefinal |
|
inlinefinal |
std::vector< float > edm4eic::TrackSegmentCollection::length | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::TrackSegmentCollection::lengthError | ( | const size_t | nElem = 0 | ) | const |
|
inline |
operator to allow pointer like calling of members a la LCIO
|
delete |
|
default |
MutableTrackSegment edm4eic::TrackSegmentCollection::operator[] | ( | std::size_t | index | ) |
Returns the object of a given index.
TrackSegment edm4eic::TrackSegmentCollection::operator[] | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
final |
|
final |
|
final |
Print this collection to the passed stream.
void edm4eic::TrackSegmentCollection::push_back | ( | MutableTrackSegment | object | ) |
Append object to the collection.
void edm4eic::TrackSegmentCollection::push_back | ( | TrackSegment | object | ) |
Append an object to the (subset) collection.
|
inlinefinal |
|
final |
|
final |
|
final |
number of elements in the collection
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |