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

#include <CherenkovParticleIDCollection.h>

Inheritance diagram for edm4eic::CherenkovParticleIDCollection:

Public Types

using value_type = CherenkovParticleID
 
using const_iterator = CherenkovParticleIDCollectionIterator
 
using iterator = CherenkovParticleIDMutableCollectionIterator
 

Public Member Functions

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

Static Public Attributes

static constexpr auto typeName = "edm4eic::CherenkovParticleIDCollection"
 
static constexpr auto valueTypeName = "edm4eic::CherenkovParticleID"
 
static constexpr auto dataTypeName = "edm4eic::CherenkovParticleIDData"
 

Friends

class CherenkovParticleIDCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ iterator

◆ value_type

Constructor & Destructor Documentation

◆ CherenkovParticleIDCollection() [1/4]

edm4eic::CherenkovParticleIDCollection::CherenkovParticleIDCollection ( )

◆ CherenkovParticleIDCollection() [2/4]

edm4eic::CherenkovParticleIDCollection::CherenkovParticleIDCollection ( CherenkovParticleIDCollectionData && data,
bool isSubsetColl )

◆ CherenkovParticleIDCollection() [3/4]

edm4eic::CherenkovParticleIDCollection::CherenkovParticleIDCollection ( const CherenkovParticleIDCollection & )
delete

◆ CherenkovParticleIDCollection() [4/4]

edm4eic::CherenkovParticleIDCollection::CherenkovParticleIDCollection ( CherenkovParticleIDCollection && )
default

◆ ~CherenkovParticleIDCollection()

edm4eic::CherenkovParticleIDCollection::~CherenkovParticleIDCollection ( )

Member Function Documentation

◆ at() [1/2]

MutableCherenkovParticleID edm4eic::CherenkovParticleIDCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

CherenkovParticleID edm4eic::CherenkovParticleIDCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::CherenkovParticleIDCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ clear()

void edm4eic::CherenkovParticleIDCollection::clear ( )
final

◆ create() [1/2]

MutableCherenkovParticleID edm4eic::CherenkovParticleIDCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutableCherenkovParticleID edm4eic::CherenkovParticleIDCollection::create ( Args &&... args)

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

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::CherenkovParticleIDCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ npe()

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

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutableCherenkovParticleID edm4eic::CherenkovParticleIDCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

CherenkovParticleID edm4eic::CherenkovParticleIDCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ photonEnergy()

std::vector< float > edm4eic::CherenkovParticleIDCollection::photonEnergy ( const size_t nElem = 0) const

◆ prepareAfterRead()

void edm4eic::CherenkovParticleIDCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::CherenkovParticleIDCollection::push_back ( CherenkovParticleID object)

Append an object to the (subset) collection.

◆ push_back() [2/2]

void edm4eic::CherenkovParticleIDCollection::push_back ( MutableCherenkovParticleID object)

Append object to the collection.

◆ refractiveIndex()

std::vector< float > edm4eic::CherenkovParticleIDCollection::refractiveIndex ( const size_t nElem = 0) const

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

Friends And Related Symbol Documentation

◆ CherenkovParticleIDCollectionData

friend class CherenkovParticleIDCollectionData
friend

Member Data Documentation

◆ dataTypeName

auto edm4eic::CherenkovParticleIDCollection::dataTypeName = "edm4eic::CherenkovParticleIDData"
staticconstexpr

◆ typeName

auto edm4eic::CherenkovParticleIDCollection::typeName = "edm4eic::CherenkovParticleIDCollection"
staticconstexpr

◆ valueTypeName

auto edm4eic::CherenkovParticleIDCollection::valueTypeName = "edm4eic::CherenkovParticleID"
staticconstexpr

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