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

#include <RawTrackerHitCollection.h>

Inheritance diagram for edm4eic::RawTrackerHitCollection:

Public Types

using value_type = RawTrackerHit
 
using const_iterator = RawTrackerHitCollectionIterator
 
using iterator = RawTrackerHitMutableCollectionIterator
 

Public Member Functions

 RawTrackerHitCollection ()
 
 RawTrackerHitCollection (RawTrackerHitCollectionData &&data, bool isSubsetColl)
 
 RawTrackerHitCollection (const RawTrackerHitCollection &)=delete
 
RawTrackerHitCollectionoperator= (const RawTrackerHitCollection &)=delete
 
 RawTrackerHitCollection (RawTrackerHitCollection &&)=default
 
RawTrackerHitCollectionoperator= (RawTrackerHitCollection &&)=default
 
 ~RawTrackerHitCollection ()
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
RawTrackerHitCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutableRawTrackerHit create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutableRawTrackerHit 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
 
RawTrackerHit operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutableRawTrackerHit operator[] (std::size_t index)
 Returns the object of a given index.
 
RawTrackerHit at (std::size_t index) const
 Returns the const object of given index.
 
MutableRawTrackerHit at (std::size_t index)
 Returns the object of given index.
 
void push_back (MutableRawTrackerHit object)
 Append object to the collection.
 
void push_back (RawTrackerHit 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< std::int32_t > charge (const size_t nElem=0) const
 
std::vector< std::int32_t > timeStamp (const size_t nElem=0) const
 

Static Public Attributes

static constexpr auto typeName = "edm4eic::RawTrackerHitCollection"
 
static constexpr auto valueTypeName = "edm4eic::RawTrackerHit"
 
static constexpr auto dataTypeName = "edm4eic::RawTrackerHitData"
 

Friends

class RawTrackerHitCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ RawTrackerHitCollection() [1/4]

edm4eic::RawTrackerHitCollection::RawTrackerHitCollection ( )

◆ RawTrackerHitCollection() [2/4]

edm4eic::RawTrackerHitCollection::RawTrackerHitCollection ( RawTrackerHitCollectionData && data,
bool isSubsetColl )

◆ RawTrackerHitCollection() [3/4]

edm4eic::RawTrackerHitCollection::RawTrackerHitCollection ( const RawTrackerHitCollection & )
delete

◆ RawTrackerHitCollection() [4/4]

edm4eic::RawTrackerHitCollection::RawTrackerHitCollection ( RawTrackerHitCollection && )
default

◆ ~RawTrackerHitCollection()

edm4eic::RawTrackerHitCollection::~RawTrackerHitCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableRawTrackerHit edm4eic::RawTrackerHitCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

RawTrackerHit edm4eic::RawTrackerHitCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::RawTrackerHitCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ cellID()

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

◆ charge()

std::vector< std::int32_t > edm4eic::RawTrackerHitCollection::charge ( const size_t nElem = 0) const

◆ clear()

void edm4eic::RawTrackerHitCollection::clear ( )
final

◆ create() [1/2]

MutableRawTrackerHit edm4eic::RawTrackerHitCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutableRawTrackerHit edm4eic::RawTrackerHitCollection::create ( Args &&... args)

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

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::RawTrackerHitCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutableRawTrackerHit edm4eic::RawTrackerHitCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

RawTrackerHit edm4eic::RawTrackerHitCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ prepareAfterRead()

void edm4eic::RawTrackerHitCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::RawTrackerHitCollection::push_back ( MutableRawTrackerHit object)

Append object to the collection.

◆ push_back() [2/2]

void edm4eic::RawTrackerHitCollection::push_back ( RawTrackerHit object)

Append an object to the (subset) collection.

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

◆ timeStamp()

std::vector< std::int32_t > edm4eic::RawTrackerHitCollection::timeStamp ( const size_t nElem = 0) const

Friends And Related Symbol Documentation

◆ RawTrackerHitCollectionData

friend class RawTrackerHitCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::RawTrackerHitCollection::dataTypeName = "edm4eic::RawTrackerHitData"
staticconstexpr

◆ typeName

auto edm4eic::RawTrackerHitCollection::typeName = "edm4eic::RawTrackerHitCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::RawTrackerHitCollection::valueTypeName = "edm4eic::RawTrackerHit"
staticconstexpr

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