EDM4eic
EIC data model
|
#include <VertexCollection.h>
Public Types | |
using | value_type = Vertex |
using | const_iterator = VertexCollectionIterator |
using | iterator = VertexMutableCollectionIterator |
Public Member Functions | |
VertexCollection () | |
VertexCollection (VertexCollectionData &&data, bool isSubsetColl) | |
VertexCollection (const VertexCollection &)=delete | |
VertexCollection & | operator= (const VertexCollection &)=delete |
VertexCollection (VertexCollection &&)=default | |
VertexCollection & | operator= (VertexCollection &&)=default |
~VertexCollection () | |
void | clear () final |
void | print (std::ostream &os=std::cout, bool flush=true) const final |
Print this collection to the passed stream. | |
VertexCollection * | operator-> () |
operator to allow pointer like calling of members a la LCIO | |
MutableVertex | create () |
Append a new object to the collection, and return this object. | |
template<typename... Args> | |
MutableVertex | 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 |
Vertex | operator[] (std::size_t index) const |
Returns the const object of given index. | |
MutableVertex | operator[] (std::size_t index) |
Returns the object of a given index. | |
Vertex | at (std::size_t index) const |
Returns the const object of given index. | |
MutableVertex | at (std::size_t index) |
Returns the object of given index. | |
void | push_back (MutableVertex object) |
Append object to the collection. | |
void | push_back (Vertex 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< float > | chi2 (const size_t nElem=0) const |
std::vector< int > | ndf (const size_t nElem=0) const |
std::vector< edm4hep::Vector4f > | position (const size_t nElem=0) const |
std::vector< edm4eic::Cov4f > | positionError (const size_t nElem=0) const |
Static Public Attributes | |
static constexpr auto | typeName = "edm4eic::VertexCollection" |
static constexpr auto | valueTypeName = "edm4eic::Vertex" |
static constexpr auto | dataTypeName = "edm4eic::VertexData" |
Friends | |
class | VertexCollectionData |
A Collection is identified by an ID.
edm4eic::VertexCollection::VertexCollection | ( | ) |
edm4eic::VertexCollection::VertexCollection | ( | VertexCollectionData && | data, |
bool | isSubsetColl ) |
|
delete |
|
default |
edm4eic::VertexCollection::~VertexCollection | ( | ) |
MutableVertex edm4eic::VertexCollection::at | ( | std::size_t | index | ) |
Returns the object of given index.
Vertex edm4eic::VertexCollection::at | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
inline |
|
inline |
std::vector< float > edm4eic::VertexCollection::chi2 | ( | const size_t | nElem = 0 | ) | const |
|
final |
MutableVertex edm4eic::VertexCollection::create | ( | ) |
Append a new object to the collection, and return this object.
MutableVertex edm4eic::VertexCollection::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< int > edm4eic::VertexCollection::ndf | ( | const size_t | nElem = 0 | ) | const |
|
inline |
operator to allow pointer like calling of members a la LCIO
|
delete |
|
default |
MutableVertex edm4eic::VertexCollection::operator[] | ( | std::size_t | index | ) |
Returns the object of a given index.
Vertex edm4eic::VertexCollection::operator[] | ( | std::size_t | index | ) | const |
Returns the const object of given index.
std::vector< edm4hep::Vector4f > edm4eic::VertexCollection::position | ( | const size_t | nElem = 0 | ) | const |
std::vector< edm4eic::Cov4f > edm4eic::VertexCollection::positionError | ( | const size_t | nElem = 0 | ) | const |
|
final |
|
final |
|
final |
Print this collection to the passed stream.
void edm4eic::VertexCollection::push_back | ( | MutableVertex | object | ) |
Append object to the collection.
void edm4eic::VertexCollection::push_back | ( | Vertex | object | ) |
Append an object to the (subset) collection.
|
inlinefinal |
|
final |
|
final |
|
final |
number of elements in the collection
std::vector< std::int32_t > edm4eic::VertexCollection::type | ( | const size_t | nElem = 0 | ) | const |
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |