EDM4eic
EIC data model
|
#include <TrackerHitCollection.h>
Public Types | |
using | value_type = TrackerHit |
using | const_iterator = TrackerHitCollectionIterator |
using | iterator = TrackerHitMutableCollectionIterator |
Public Member Functions | |
TrackerHitCollection () | |
TrackerHitCollection (TrackerHitCollectionData &&data, bool isSubsetColl) | |
TrackerHitCollection (const TrackerHitCollection &)=delete | |
TrackerHitCollection & | operator= (const TrackerHitCollection &)=delete |
TrackerHitCollection (TrackerHitCollection &&)=default | |
TrackerHitCollection & | operator= (TrackerHitCollection &&)=default |
~TrackerHitCollection () | |
void | clear () final |
void | print (std::ostream &os=std::cout, bool flush=true) const final |
Print this collection to the passed stream. | |
TrackerHitCollection * | operator-> () |
operator to allow pointer like calling of members a la LCIO | |
MutableTrackerHit | create () |
Append a new object to the collection, and return this object. | |
template<typename... Args> | |
MutableTrackerHit | 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 |
TrackerHit | operator[] (std::size_t index) const |
Returns the const object of given index. | |
MutableTrackerHit | operator[] (std::size_t index) |
Returns the object of a given index. | |
TrackerHit | at (std::size_t index) const |
Returns the const object of given index. | |
MutableTrackerHit | at (std::size_t index) |
Returns the object of given index. | |
void | push_back (MutableTrackerHit object) |
Append object to the collection. | |
void | push_back (TrackerHit 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::uint64_t > | cellID (const size_t nElem=0) const |
std::vector< edm4hep::Vector3f > | position (const size_t nElem=0) const |
std::vector< edm4eic::CovDiag3f > | positionError (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 > | edep (const size_t nElem=0) const |
std::vector< float > | edepError (const size_t nElem=0) const |
Static Public Attributes | |
static constexpr auto | typeName = "edm4eic::TrackerHitCollection" |
static constexpr auto | valueTypeName = "edm4eic::TrackerHit" |
static constexpr auto | dataTypeName = "edm4eic::TrackerHitData" |
Friends | |
class | TrackerHitCollectionData |
A Collection is identified by an ID.
edm4eic::TrackerHitCollection::TrackerHitCollection | ( | ) |
edm4eic::TrackerHitCollection::TrackerHitCollection | ( | TrackerHitCollectionData && | data, |
bool | isSubsetColl ) |
|
delete |
|
default |
edm4eic::TrackerHitCollection::~TrackerHitCollection | ( | ) |
MutableTrackerHit edm4eic::TrackerHitCollection::at | ( | std::size_t | index | ) |
Returns the object of given index.
TrackerHit edm4eic::TrackerHitCollection::at | ( | std::size_t | index | ) | const |
Returns the const object of given index.
|
inline |
|
inline |
std::vector< std::uint64_t > edm4eic::TrackerHitCollection::cellID | ( | const size_t | nElem = 0 | ) | const |
|
final |
MutableTrackerHit edm4eic::TrackerHitCollection::create | ( | ) |
Append a new object to the collection, and return this object.
MutableTrackerHit edm4eic::TrackerHitCollection::create | ( | Args &&... | args | ) |
Append a new object to the collection, and return this object. Initialized with the parameters given
std::vector< float > edm4eic::TrackerHitCollection::edep | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::TrackerHitCollection::edepError | ( | const size_t | nElem = 0 | ) | const |
|
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 |
|
inline |
operator to allow pointer like calling of members a la LCIO
|
delete |
|
default |
MutableTrackerHit edm4eic::TrackerHitCollection::operator[] | ( | std::size_t | index | ) |
Returns the object of a given index.
TrackerHit edm4eic::TrackerHitCollection::operator[] | ( | std::size_t | index | ) | const |
Returns the const object of given index.
std::vector< edm4hep::Vector3f > edm4eic::TrackerHitCollection::position | ( | const size_t | nElem = 0 | ) | const |
std::vector< edm4eic::CovDiag3f > edm4eic::TrackerHitCollection::positionError | ( | const size_t | nElem = 0 | ) | const |
|
final |
|
final |
|
final |
Print this collection to the passed stream.
void edm4eic::TrackerHitCollection::push_back | ( | MutableTrackerHit | object | ) |
Append object to the collection.
void edm4eic::TrackerHitCollection::push_back | ( | TrackerHit | object | ) |
Append an object to the (subset) collection.
|
inlinefinal |
|
final |
|
final |
|
final |
number of elements in the collection
std::vector< float > edm4eic::TrackerHitCollection::time | ( | const size_t | nElem = 0 | ) | const |
std::vector< float > edm4eic::TrackerHitCollection::timeError | ( | const size_t | nElem = 0 | ) | const |
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |