EDM4eic
EIC data model
Loading...
Searching...
No Matches
edm4eic::TrackerHitCollection Class Reference

#include <TrackerHitCollection.h>

Inheritance diagram for edm4eic::TrackerHitCollection:

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
 
TrackerHitCollectionoperator= (const TrackerHitCollection &)=delete
 
 TrackerHitCollection (TrackerHitCollection &&)=default
 
TrackerHitCollectionoperator= (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.
 
TrackerHitCollectionoperator-> ()
 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::CovDiag3fpositionError (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
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ TrackerHitCollection() [1/4]

edm4eic::TrackerHitCollection::TrackerHitCollection ( )

◆ TrackerHitCollection() [2/4]

edm4eic::TrackerHitCollection::TrackerHitCollection ( TrackerHitCollectionData && data,
bool isSubsetColl )

◆ TrackerHitCollection() [3/4]

edm4eic::TrackerHitCollection::TrackerHitCollection ( const TrackerHitCollection & )
delete

◆ TrackerHitCollection() [4/4]

edm4eic::TrackerHitCollection::TrackerHitCollection ( TrackerHitCollection && )
default

◆ ~TrackerHitCollection()

edm4eic::TrackerHitCollection::~TrackerHitCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableTrackerHit edm4eic::TrackerHitCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

TrackerHit edm4eic::TrackerHitCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::TrackerHitCollection::begin ( )
inline

◆ begin() [2/2]

const_iterator edm4eic::TrackerHitCollection::begin ( ) const
inline

◆ cellID()

std::vector< std::uint64_t > edm4eic::TrackerHitCollection::cellID ( const size_t nElem = 0) const

◆ clear()

void edm4eic::TrackerHitCollection::clear ( )
final

◆ create() [1/2]

MutableTrackerHit edm4eic::TrackerHitCollection::create ( )

Append a new object to the collection, and return this object.

◆ create() [2/2]

template<typename... Args>
MutableTrackerHit edm4eic::TrackerHitCollection::create ( Args &&... args)

Append a new object to the collection, and return this object. Initialized with the parameters given

◆ edep()

std::vector< float > edm4eic::TrackerHitCollection::edep ( const size_t nElem = 0) const

◆ edepError()

std::vector< float > edm4eic::TrackerHitCollection::edepError ( const size_t nElem = 0) const

◆ empty()

bool edm4eic::TrackerHitCollection::empty ( ) const
final

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::TrackerHitCollection::end ( )
inline

◆ end() [2/2]

const_iterator edm4eic::TrackerHitCollection::end ( ) const
inline

◆ getBuffers()

podio::CollectionWriteBuffers edm4eic::TrackerHitCollection::getBuffers ( )
final

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

size_t edm4eic::TrackerHitCollection::getDatamodelRegistryIndex ( ) const
final

◆ getDataTypeName()

const std::string_view edm4eic::TrackerHitCollection::getDataTypeName ( ) const
inlinefinal

fully qualified type name of stored POD elements - with namespace

◆ getID()

uint32_t edm4eic::TrackerHitCollection::getID ( ) const
inlinefinal

◆ getSchemaVersion()

podio::SchemaVersionT edm4eic::TrackerHitCollection::getSchemaVersion ( ) const
final

schema version

◆ getTypeName()

const std::string_view edm4eic::TrackerHitCollection::getTypeName ( ) const
inlinefinal

fully qualified type name

◆ getValueTypeName()

const std::string_view edm4eic::TrackerHitCollection::getValueTypeName ( ) const
inlinefinal

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

bool edm4eic::TrackerHitCollection::isSubsetCollection ( ) const
inlinefinal

◆ isValid()

bool edm4eic::TrackerHitCollection::isValid ( ) const
inlinefinal

◆ operator->()

TrackerHitCollection * edm4eic::TrackerHitCollection::operator-> ( )
inline

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

TrackerHitCollection & edm4eic::TrackerHitCollection::operator= ( const TrackerHitCollection & )
delete

◆ operator=() [2/2]

TrackerHitCollection & edm4eic::TrackerHitCollection::operator= ( TrackerHitCollection && )
default

◆ operator[]() [1/2]

MutableTrackerHit edm4eic::TrackerHitCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

TrackerHit edm4eic::TrackerHitCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ position()

std::vector< edm4hep::Vector3f > edm4eic::TrackerHitCollection::position ( const size_t nElem = 0) const

◆ positionError()

std::vector< edm4eic::CovDiag3f > edm4eic::TrackerHitCollection::positionError ( const size_t nElem = 0) const

◆ prepareAfterRead()

void edm4eic::TrackerHitCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

void edm4eic::TrackerHitCollection::prepareForWrite ( ) const
final

◆ print()

void edm4eic::TrackerHitCollection::print ( std::ostream & os = std::cout,
bool flush = true ) const
final

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::TrackerHitCollection::push_back ( MutableTrackerHit object)

Append object to the collection.

◆ push_back() [2/2]

void edm4eic::TrackerHitCollection::push_back ( TrackerHit object)

Append an object to the (subset) collection.

◆ setID()

void edm4eic::TrackerHitCollection::setID ( uint32_t ID)
inlinefinal

◆ setReferences()

bool edm4eic::TrackerHitCollection::setReferences ( const podio::ICollectionProvider * collectionProvider)
final

◆ setSubsetCollection()

void edm4eic::TrackerHitCollection::setSubsetCollection ( bool setSubset = true)
final

◆ size()

std::size_t edm4eic::TrackerHitCollection::size ( ) const
final

number of elements in the collection

◆ time()

std::vector< float > edm4eic::TrackerHitCollection::time ( const size_t nElem = 0) const

◆ timeError()

std::vector< float > edm4eic::TrackerHitCollection::timeError ( const size_t nElem = 0) const

Friends And Related Symbol Documentation

◆ TrackerHitCollectionData

friend class TrackerHitCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::TrackerHitCollection::dataTypeName = "edm4eic::TrackerHitData"
staticconstexpr

◆ typeName

auto edm4eic::TrackerHitCollection::typeName = "edm4eic::TrackerHitCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::TrackerHitCollection::valueTypeName = "edm4eic::TrackerHit"
staticconstexpr

The documentation for this class was generated from the following files: