EDM4eic
EIC data model
|
#include <ReconstructedParticleCollection.h>
Public Types | |
using | value_type = ReconstructedParticle |
using | const_iterator = ReconstructedParticleCollectionIterator |
using | iterator = ReconstructedParticleMutableCollectionIterator |
Public Member Functions | |
ReconstructedParticleCollection () | |
ReconstructedParticleCollection (ReconstructedParticleCollectionData &&data, bool isSubsetColl) | |
ReconstructedParticleCollection (const ReconstructedParticleCollection &)=delete | |
ReconstructedParticleCollection & | operator= (const ReconstructedParticleCollection &)=delete |
ReconstructedParticleCollection (ReconstructedParticleCollection &&)=default | |
ReconstructedParticleCollection & | operator= (ReconstructedParticleCollection &&)=default |
~ReconstructedParticleCollection () | |
void | clear () final |
void | print (std::ostream &os=std::cout, bool flush=true) const final |
Print this collection to the passed stream. | |
ReconstructedParticleCollection * | operator-> () |
operator to allow pointer like calling of members a la LCIO | |
MutableReconstructedParticle | create () |
Append a new object to the collection, and return this object. | |
template<typename... Args> | |
MutableReconstructedParticle | 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 |
ReconstructedParticle | operator[] (std::size_t index) const |
Returns the const object of given index. | |
MutableReconstructedParticle | operator[] (std::size_t index) |
Returns the object of a given index. | |
ReconstructedParticle | at (std::size_t index) const |
Returns the const object of given index. | |
MutableReconstructedParticle | at (std::size_t index) |
Returns the object of given index. | |
void | push_back (MutableReconstructedParticle object) |
Append object to the collection. | |
void | push_back (ReconstructedParticle 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< edm4hep::Vector3f > | momentum (const size_t nElem=0) const |
std::vector< edm4hep::Vector3f > | referencePoint (const size_t nElem=0) const |
std::vector< float > | charge (const size_t nElem=0) const |
std::vector< float > | mass (const size_t nElem=0) const |
std::vector< float > | goodnessOfPID (const size_t nElem=0) const |
std::vector< edm4eic::Cov4f > | covMatrix (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::ReconstructedParticleCollection" |
static constexpr auto | valueTypeName = "edm4eic::ReconstructedParticle" |
static constexpr auto | dataTypeName = "edm4eic::ReconstructedParticleData" |
Friends | |
class | ReconstructedParticleCollectionData |
A Collection is identified by an ID.
using edm4eic::ReconstructedParticleCollection::const_iterator = ReconstructedParticleCollectionIterator |
using edm4eic::ReconstructedParticleCollection::iterator = ReconstructedParticleMutableCollectionIterator |
edm4eic::ReconstructedParticleCollection::ReconstructedParticleCollection | ( | ) |
edm4eic::ReconstructedParticleCollection::ReconstructedParticleCollection | ( | ReconstructedParticleCollectionData && | data, |
bool | isSubsetColl ) |
|
delete |
|
default |
edm4eic::ReconstructedParticleCollection::~ReconstructedParticleCollection | ( | ) |
MutableReconstructedParticle edm4eic::ReconstructedParticleCollection::at | ( | std::size_t | index | ) |
Returns the object of given index.
ReconstructedParticle edm4eic::ReconstructedParticleCollection::at | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
inline |
|
inline |
std::vector< float > edm4eic::ReconstructedParticleCollection::charge | ( | const size_t | nElem = 0 | ) | const |
|
final |
std::vector< edm4eic::Cov4f > edm4eic::ReconstructedParticleCollection::covMatrix | ( | const size_t | nElem = 0 | ) | const |
MutableReconstructedParticle edm4eic::ReconstructedParticleCollection::create | ( | ) |
Append a new object to the collection, and return this object.
MutableReconstructedParticle edm4eic::ReconstructedParticleCollection::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::ReconstructedParticleCollection::energy | ( | 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< float > edm4eic::ReconstructedParticleCollection::goodnessOfPID | ( | const size_t | nElem = 0 | ) | const |
|
inlinefinal |
|
inlinefinal |
std::vector< float > edm4eic::ReconstructedParticleCollection::mass | ( | const size_t | nElem = 0 | ) | const |
std::vector< edm4hep::Vector3f > edm4eic::ReconstructedParticleCollection::momentum | ( | const size_t | nElem = 0 | ) | const |
|
inline |
operator to allow pointer like calling of members a la LCIO
|
delete |
|
default |
MutableReconstructedParticle edm4eic::ReconstructedParticleCollection::operator[] | ( | std::size_t | index | ) |
Returns the object of a given index.
ReconstructedParticle edm4eic::ReconstructedParticleCollection::operator[] | ( | std::size_t | index | ) | const |
Returns the const object of given index.
std::vector< std::int32_t > edm4eic::ReconstructedParticleCollection::PDG | ( | const size_t | nElem = 0 | ) | const |
|
final |
|
final |
|
final |
Print this collection to the passed stream.
void edm4eic::ReconstructedParticleCollection::push_back | ( | MutableReconstructedParticle | object | ) |
Append object to the collection.
void edm4eic::ReconstructedParticleCollection::push_back | ( | ReconstructedParticle | object | ) |
Append an object to the (subset) collection.
std::vector< edm4hep::Vector3f > edm4eic::ReconstructedParticleCollection::referencePoint | ( | const size_t | nElem = 0 | ) | const |
|
inlinefinal |
|
final |
|
final |
|
final |
number of elements in the collection
std::vector< std::int32_t > edm4eic::ReconstructedParticleCollection::type | ( | const size_t | nElem = 0 | ) | const |
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |