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

#include <TruthinessCollection.h>

Inheritance diagram for edm4eic::TruthinessCollection:

Public Types

using value_type = Truthiness
 
using mutable_type = MutableTruthiness
 
using const_iterator = TruthinessCollectionIterator
 
using iterator = TruthinessMutableCollectionIterator
 
using difference_type = ptrdiff_t
 
using size_type = size_t
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 
using reverse_iterator = std::reverse_iterator<iterator>
 

Public Member Functions

 TruthinessCollection ()
 
 TruthinessCollection (TruthinessCollectionData &&data, bool isSubsetColl)
 
 TruthinessCollection (const TruthinessCollection &)=delete
 
TruthinessCollectionoperator= (const TruthinessCollection &)=delete
 
 TruthinessCollection (TruthinessCollection &&)=default
 
TruthinessCollectionoperator= (TruthinessCollection &&)=default
 
 ~TruthinessCollection () override
 
void clear () final
 
void print (std::ostream &os=std::cout, bool flush=true) const final
 Print this collection to the passed stream.
 
TruthinessCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO
 
MutableTruthiness create ()
 Append a new object to the collection, and return this object.
 
template<typename... Args>
MutableTruthiness create (Args &&... args)
 
std::size_t size () const final
 number of elements in the collection
 
std::size_t max_size () const final
 maximal 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
 
Truthiness operator[] (std::size_t index) const
 Returns the const object of given index.
 
MutableTruthiness operator[] (std::size_t index)
 Returns the object of a given index.
 
Truthiness at (std::size_t index) const
 Returns the const object of given index.
 
MutableTruthiness at (std::size_t index)
 Returns the object of given index.
 
void push_back (const MutableTruthiness &object)
 Append object to the collection.
 
void push_back (const Truthiness &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
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator crbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_reverse_iterator crend () const
 
std::vector< float > truthiness (const size_t nElem=0) const
 
std::vector< edm4eic::TruthinessContributionassociationContribution (const size_t nElem=0) const
 
std::vector< float > unassociatedMCParticlesContribution (const size_t nElem=0) const
 
std::vector< float > unassociatedRecoParticlesContribution (const size_t nElem=0) const
 

Static Public Attributes

static constexpr std::string_view typeName = "edm4eic::TruthinessCollection"
 
static constexpr std::string_view valueTypeName = "edm4eic::Truthiness"
 
static constexpr std::string_view dataTypeName = "edm4eic::TruthinessData"
 

Friends

class TruthinessCollectionData
 

Detailed Description

A Collection is identified by an ID.

Member Typedef Documentation

◆ const_iterator

◆ const_reverse_iterator

◆ difference_type

◆ iterator

◆ mutable_type

◆ reverse_iterator

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ TruthinessCollection() [1/4]

edm4eic::TruthinessCollection::TruthinessCollection ( )

◆ TruthinessCollection() [2/4]

edm4eic::TruthinessCollection::TruthinessCollection ( TruthinessCollectionData && data,
bool isSubsetColl )

◆ TruthinessCollection() [3/4]

edm4eic::TruthinessCollection::TruthinessCollection ( const TruthinessCollection & )
delete

◆ TruthinessCollection() [4/4]

edm4eic::TruthinessCollection::TruthinessCollection ( TruthinessCollection && )
default

◆ ~TruthinessCollection()

edm4eic::TruthinessCollection::~TruthinessCollection ( )
override

Member Function Documentation

◆ associationContribution()

std::vector< edm4eic::TruthinessContribution > edm4eic::TruthinessCollection::associationContribution ( const size_t nElem = 0) const

◆ at() [1/2]

MutableTruthiness edm4eic::TruthinessCollection::at ( std::size_t index)

Returns the object of given index.

◆ at() [2/2]

Truthiness edm4eic::TruthinessCollection::at ( std::size_t index) const

Returns the const object of given index.

◆ begin() [1/2]

iterator edm4eic::TruthinessCollection::begin ( )
inline

◆ begin() [2/2]

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

◆ cbegin()

const_iterator edm4eic::TruthinessCollection::cbegin ( ) const
inline

◆ cend()

const_iterator edm4eic::TruthinessCollection::cend ( ) const
inline

◆ clear()

void edm4eic::TruthinessCollection::clear ( )
final

◆ crbegin()

const_reverse_iterator edm4eic::TruthinessCollection::crbegin ( ) const
inline

◆ create() [1/2]

MutableTruthiness edm4eic::TruthinessCollection::create ( )

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

◆ create() [2/2]

template<typename... Args>
MutableTruthiness edm4eic::TruthinessCollection::create ( Args &&... args)

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

◆ crend()

const_reverse_iterator edm4eic::TruthinessCollection::crend ( ) const
inline

◆ empty()

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

Is the collection empty.

◆ end() [1/2]

iterator edm4eic::TruthinessCollection::end ( )
inline

◆ end() [2/2]

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

◆ getBuffers()

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

Get the collection buffers for this collection.

◆ getDatamodelRegistryIndex()

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

◆ getDataTypeName()

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

fully qualified type name of stored POD elements - with namespace

◆ getID()

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

◆ getSchemaVersion()

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

schema version

◆ getTypeName()

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

fully qualified type name

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

◆ isSubsetCollection()

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

◆ isValid()

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

◆ max_size()

std::size_t edm4eic::TruthinessCollection::max_size ( ) const
final

maximal number of elements in the collection

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]() [1/2]

MutableTruthiness edm4eic::TruthinessCollection::operator[] ( std::size_t index)

Returns the object of a given index.

◆ operator[]() [2/2]

Truthiness edm4eic::TruthinessCollection::operator[] ( std::size_t index) const

Returns the const object of given index.

◆ prepareAfterRead()

void edm4eic::TruthinessCollection::prepareAfterRead ( )
final

◆ prepareForWrite()

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

◆ print()

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

Print this collection to the passed stream.

◆ push_back() [1/2]

void edm4eic::TruthinessCollection::push_back ( const MutableTruthiness & object)

Append object to the collection.

◆ push_back() [2/2]

void edm4eic::TruthinessCollection::push_back ( const Truthiness & object)

Append an object to the (subset) collection.

◆ rbegin() [1/2]

reverse_iterator edm4eic::TruthinessCollection::rbegin ( )
inline

◆ rbegin() [2/2]

const_reverse_iterator edm4eic::TruthinessCollection::rbegin ( ) const
inline

◆ rend() [1/2]

reverse_iterator edm4eic::TruthinessCollection::rend ( )
inline

◆ rend() [2/2]

const_reverse_iterator edm4eic::TruthinessCollection::rend ( ) const
inline

◆ setID()

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

◆ setReferences()

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

◆ setSubsetCollection()

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

◆ size()

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

number of elements in the collection

◆ truthiness()

std::vector< float > edm4eic::TruthinessCollection::truthiness ( const size_t nElem = 0) const

◆ unassociatedMCParticlesContribution()

std::vector< float > edm4eic::TruthinessCollection::unassociatedMCParticlesContribution ( const size_t nElem = 0) const

◆ unassociatedRecoParticlesContribution()

std::vector< float > edm4eic::TruthinessCollection::unassociatedRecoParticlesContribution ( const size_t nElem = 0) const

Friends And Related Symbol Documentation

◆ TruthinessCollectionData

friend class TruthinessCollectionData
friend

Member Data Documentation

◆ dataTypeName

std::string_view edm4eic::TruthinessCollection::dataTypeName = "edm4eic::TruthinessData"
staticconstexpr

◆ typeName

std::string_view edm4eic::TruthinessCollection::typeName = "edm4eic::TruthinessCollection"
staticconstexpr

◆ valueTypeName

std::string_view edm4eic::TruthinessCollection::valueTypeName = "edm4eic::Truthiness"
staticconstexpr

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