EDM4eic
EIC data model
|
#include <ClusterCollection.h>
Public Types | |
using | value_type = Cluster |
using | const_iterator = ClusterCollectionIterator |
using | iterator = ClusterMutableCollectionIterator |
Public Member Functions | |
ClusterCollection () | |
ClusterCollection (ClusterCollectionData &&data, bool isSubsetColl) | |
ClusterCollection (const ClusterCollection &)=delete | |
ClusterCollection & | operator= (const ClusterCollection &)=delete |
ClusterCollection (ClusterCollection &&)=default | |
ClusterCollection & | operator= (ClusterCollection &&)=default |
~ClusterCollection () | |
void | clear () final |
void | print (std::ostream &os=std::cout, bool flush=true) const final |
Print this collection to the passed stream. | |
ClusterCollection * | operator-> () |
operator to allow pointer like calling of members a la LCIO | |
MutableCluster | create () |
Append a new object to the collection, and return this object. | |
template<typename... Args> | |
MutableCluster | 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 |
Cluster | operator[] (std::size_t index) const |
Returns the const object of given index. | |
MutableCluster | operator[] (std::size_t index) |
Returns the object of a given index. | |
Cluster | at (std::size_t index) const |
Returns the const object of given index. | |
MutableCluster | at (std::size_t index) |
Returns the object of given index. | |
void | push_back (MutableCluster object) |
Append object to the collection. | |
void | push_back (Cluster 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 > | energy (const size_t nElem=0) const |
std::vector< float > | energyError (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< std::uint32_t > | nhits (const size_t nElem=0) const |
std::vector< edm4hep::Vector3f > | position (const size_t nElem=0) const |
std::vector< edm4eic::Cov3f > | positionError (const size_t nElem=0) const |
std::vector< float > | intrinsicTheta (const size_t nElem=0) const |
std::vector< float > | intrinsicPhi (const size_t nElem=0) const |
std::vector< edm4eic::Cov2f > | intrinsicDirectionError (const size_t nElem=0) const |
Static Public Attributes | |
static constexpr auto | typeName = "edm4eic::ClusterCollection" |
static constexpr auto | valueTypeName = "edm4eic::Cluster" |
static constexpr auto | dataTypeName = "edm4eic::ClusterData" |
Friends | |
class | ClusterCollectionData |
A Collection is identified by an ID.
edm4eic::ClusterCollection::ClusterCollection | ( | ) |
edm4eic::ClusterCollection::ClusterCollection | ( | ClusterCollectionData && | data, |
bool | isSubsetColl ) |
|
delete |
|
default |
edm4eic::ClusterCollection::~ClusterCollection | ( | ) |
MutableCluster edm4eic::ClusterCollection::at | ( | std::size_t | index | ) |
Returns the object of given index.
Cluster edm4eic::ClusterCollection::at | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
inline |
|
inline |
|
final |
MutableCluster edm4eic::ClusterCollection::create | ( | ) |
Append a new object to the collection, and return this object.
MutableCluster edm4eic::ClusterCollection::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 |
std::vector< float > edm4eic::ClusterCollection::energy | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::ClusterCollection::energyError | ( | const size_t | nElem = 0 | ) | const |
|
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
std::vector< edm4eic::Cov2f > edm4eic::ClusterCollection::intrinsicDirectionError | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::ClusterCollection::intrinsicPhi | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::ClusterCollection::intrinsicTheta | ( | const size_t | nElem = 0 | ) | const |
|
inlinefinal |
|
inlinefinal |
std::vector< std::uint32_t > edm4eic::ClusterCollection::nhits | ( | const size_t | nElem = 0 | ) | const |
|
inline |
operator to allow pointer like calling of members a la LCIO
|
default |
|
delete |
MutableCluster edm4eic::ClusterCollection::operator[] | ( | std::size_t | index | ) |
Returns the object of a given index.
Cluster edm4eic::ClusterCollection::operator[] | ( | std::size_t | index | ) | const |
Returns the const object of given index.
std::vector< edm4hep::Vector3f > edm4eic::ClusterCollection::position | ( | const size_t | nElem = 0 | ) | const |
std::vector< edm4eic::Cov3f > edm4eic::ClusterCollection::positionError | ( | const size_t | nElem = 0 | ) | const |
|
final |
|
final |
|
final |
Print this collection to the passed stream.
void edm4eic::ClusterCollection::push_back | ( | Cluster | object | ) |
Append an object to the (subset) collection.
void edm4eic::ClusterCollection::push_back | ( | MutableCluster | object | ) |
Append object to the collection.
|
inlinefinal |
|
final |
|
final |
|
final |
number of elements in the collection
std::vector< float > edm4eic::ClusterCollection::time | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::ClusterCollection::timeError | ( | const size_t | nElem = 0 | ) | const |
std::vector< std::int32_t > edm4eic::ClusterCollection::type | ( | const size_t | nElem = 0 | ) | const |
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |