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

#include <PMTHitCollection.h>

Inheritance diagram for edm4eic::PMTHitCollection:

Public Types

using value_type = PMTHit
 
using const_iterator = PMTHitCollectionIterator
 
using iterator = PMTHitMutableCollectionIterator
 

Public Member Functions

 PMTHitCollection ()
 
 PMTHitCollection (PMTHitCollectionData &&data, bool isSubsetColl)
 
 PMTHitCollection (const PMTHitCollection &)=delete
 
PMTHitCollectionoperator= (const PMTHitCollection &)=delete
 
 PMTHitCollection (PMTHitCollection &&)=default
 
PMTHitCollectionoperator= (PMTHitCollection &&)=default
 
 ~PMTHitCollection ()
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
PMTHitCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutablePMTHit create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutablePMTHit 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
 
PMTHit operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutablePMTHit operator[] (std::size_t index)
 Returns the object of a given index.
 
PMTHit at (std::size_t index) const
 Returns the const object of given index.
 
MutablePMTHit at (std::size_t index)
 Returns the object of given index.
 
void push_back (MutablePMTHit object)
 Append object to the collection.
 
void push_back (PMTHit 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< float > npe (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< edm4hep::Vector3f > position (const size_t nElem=0) const
 
std::vector< edm4hep::Vector3f > dimension (const size_t nElem=0) const
 
std::vector< std::int32_t > sector (const size_t nElem=0) const
 
std::vector< edm4hep::Vector3f > local (const size_t nElem=0) const
 

Static Public Attributes

static constexpr auto typeName = "edm4eic::PMTHitCollection"
 
static constexpr auto valueTypeName = "edm4eic::PMTHit"
 
static constexpr auto dataTypeName = "edm4eic::PMTHitData"
 

Friends

class PMTHitCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ PMTHitCollection() [1/4]

edm4eic::PMTHitCollection::PMTHitCollection ( )

◆ PMTHitCollection() [2/4]

edm4eic::PMTHitCollection::PMTHitCollection ( PMTHitCollectionData && data,
bool isSubsetColl )

◆ PMTHitCollection() [3/4]

edm4eic::PMTHitCollection::PMTHitCollection ( const PMTHitCollection & )
delete

◆ PMTHitCollection() [4/4]

edm4eic::PMTHitCollection::PMTHitCollection ( PMTHitCollection && )
default

◆ ~PMTHitCollection()

edm4eic::PMTHitCollection::~PMTHitCollection ( )

Member Function Documentation

◆ at() [1/2]

MutablePMTHit edm4eic::PMTHitCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

PMTHit edm4eic::PMTHitCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::PMTHitCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ cellID()

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

◆ clear()

void edm4eic::PMTHitCollection::clear ( )
final

◆ create() [1/2]

MutablePMTHit edm4eic::PMTHitCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutablePMTHit edm4eic::PMTHitCollection::create ( Args &&... args)

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

◆ dimension()

std::vector< edm4hep::Vector3f > edm4eic::PMTHitCollection::dimension ( const size_t nElem = 0) const

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::PMTHitCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ local()

std::vector< edm4hep::Vector3f > edm4eic::PMTHitCollection::local ( const size_t nElem = 0) const

◆ npe()

std::vector< float > edm4eic::PMTHitCollection::npe ( const size_t nElem = 0) const

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutablePMTHit edm4eic::PMTHitCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

PMTHit edm4eic::PMTHitCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ position()

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

◆ prepareAfterRead()

void edm4eic::PMTHitCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::PMTHitCollection::push_back ( MutablePMTHit object)

Append object to the collection.

◆ push_back() [2/2]

void edm4eic::PMTHitCollection::push_back ( PMTHit object)

Append an object to the (subset) collection.

◆ sector()

std::vector< std::int32_t > edm4eic::PMTHitCollection::sector ( const size_t nElem = 0) const

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

◆ time()

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

◆ timeError()

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

Friends And Related Symbol Documentation

◆ PMTHitCollectionData

friend class PMTHitCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::PMTHitCollection::dataTypeName = "edm4eic::PMTHitData"
staticconstexpr

◆ typeName

auto edm4eic::PMTHitCollection::typeName = "edm4eic::PMTHitCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::PMTHitCollection::valueTypeName = "edm4eic::PMTHit"
staticconstexpr

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