dd4pod::CalorimeterHitCollection Class Reference

A Collection is identified by an ID. More...

#include <CalorimeterHitCollection.h>

Inheritance diagram for dd4pod::CalorimeterHitCollection:
Collaboration diagram for dd4pod::CalorimeterHitCollection:

Public Types

using const_iterator = const CalorimeterHitCollectionIterator
 

Public Member Functions

 CalorimeterHitCollection ()
 
 ~CalorimeterHitCollection ()
 
void clear () override final
 
CalorimeterHitCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO More...
 
CalorimeterHit create ()
 Append a new object to the collection, and return this object. More...
 
template<typename... Args>
CalorimeterHit create (Args &&... args)
 Append a new object to the collection, and return this object. More...
 
size_t size () const override final
 number of elements in the collection More...
 
std::string getValueTypeName () const override
 fully qualified type name of elements - with namespace More...
 
const CalorimeterHit operator[] (unsigned int index) const
 Returns the const object of given index. More...
 
CalorimeterHit operator[] (unsigned int index)
 Returns the object of a given index. More...
 
const CalorimeterHit at (unsigned int index) const
 Returns the const object of given index. More...
 
CalorimeterHit at (unsigned int index)
 Returns the object of given index. More...
 
void push_back (ConstCalorimeterHit object)
 Append object to the collection. More...
 
void prepareForWrite () override final
 
void prepareAfterRead () override final
 
void setBuffer (void *address) override final
 
bool setReferences (const podio::ICollectionProvider *collectionProvider) override final
 
podio::CollRefCollection * referenceCollections () override final
 
podio::VectorMembersInfo * vectorMembers () override
 
void setID (unsigned ID) override final
 
unsigned getID () const override final
 
bool isValid () const override final
 
const const_iterator begin () const
 
const const_iterator end () const
 
void * getBufferAddress () override final
 returns the address of the pointer to the data buffer More...
 
std::vector< CalorimeterHitData > * _getBuffer ()
 Returns the pointer to the data buffer. More...
 
template<size_t arraysize>
const std::array< long long, arraysize > cellID () const
 
template<size_t arraysize>
const std::array< long, arraysize > flag () const
 
template<size_t arraysize>
const std::array< long, arraysize > g4ID () const
 
template<size_t arraysize>
const std::array< dd4pod::FourVector, arraysize > position () const
 
template<size_t arraysize>
const std::array< dd4pod::MonteCarloContrib, arraysize > truth () const
 
template<size_t arraysize>
const std::array< double, arraysize > energyDeposit () const
 

Detailed Description

A Collection is identified by an ID.

Definition at line 50 of file CalorimeterHitCollection.h.

Member Typedef Documentation

◆ const_iterator

Constructor & Destructor Documentation

◆ CalorimeterHitCollection()

dd4pod::CalorimeterHitCollection::CalorimeterHitCollection ( )

Definition at line 13 of file CalorimeterHitCollection.cc.

◆ ~CalorimeterHitCollection()

dd4pod::CalorimeterHitCollection::~CalorimeterHitCollection ( )

Definition at line 18 of file CalorimeterHitCollection.cc.

Member Function Documentation

◆ _getBuffer()

std::vector<CalorimeterHitData>* dd4pod::CalorimeterHitCollection::_getBuffer ( )
inline

Returns the pointer to the data buffer.

Definition at line 128 of file CalorimeterHitCollection.h.

◆ at() [1/2]

CalorimeterHit dd4pod::CalorimeterHitCollection::at ( unsigned int  index)

Returns the object of given index.

Definition at line 35 of file CalorimeterHitCollection.cc.

◆ at() [2/2]

const CalorimeterHit dd4pod::CalorimeterHitCollection::at ( unsigned int  index) const

Returns the const object of given index.

Definition at line 27 of file CalorimeterHitCollection.cc.

◆ begin()

const const_iterator dd4pod::CalorimeterHitCollection::begin ( ) const
inline

Definition at line 117 of file CalorimeterHitCollection.h.

◆ cellID()

template<size_t arraysize>
const std::array< long long, arraysize > dd4pod::CalorimeterHitCollection::cellID

Definition at line 169 of file CalorimeterHitCollection.h.

◆ clear()

void dd4pod::CalorimeterHitCollection::clear ( )
finaloverride

Definition at line 50 of file CalorimeterHitCollection.cc.

◆ create() [1/2]

CalorimeterHit dd4pod::CalorimeterHitCollection::create ( )

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

Definition at line 43 of file CalorimeterHitCollection.cc.

◆ create() [2/2]

template<typename... Args>
CalorimeterHit dd4pod::CalorimeterHitCollection::create ( Args &&...  args)

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

Initialized with the parameters given

Definition at line 161 of file CalorimeterHitCollection.h.

◆ end()

const const_iterator dd4pod::CalorimeterHitCollection::end ( ) const
inline

Definition at line 120 of file CalorimeterHitCollection.h.

◆ energyDeposit()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::CalorimeterHitCollection::energyDeposit

Definition at line 219 of file CalorimeterHitCollection.h.

◆ flag()

template<size_t arraysize>
const std::array< long, arraysize > dd4pod::CalorimeterHitCollection::flag

Definition at line 179 of file CalorimeterHitCollection.h.

◆ g4ID()

template<size_t arraysize>
const std::array< long, arraysize > dd4pod::CalorimeterHitCollection::g4ID

Definition at line 189 of file CalorimeterHitCollection.h.

◆ getBufferAddress()

void* dd4pod::CalorimeterHitCollection::getBufferAddress ( )
inlinefinaloverride

returns the address of the pointer to the data buffer

Definition at line 125 of file CalorimeterHitCollection.h.

◆ getID()

unsigned dd4pod::CalorimeterHitCollection::getID ( ) const
inlinefinaloverride

Definition at line 108 of file CalorimeterHitCollection.h.

◆ getValueTypeName()

std::string dd4pod::CalorimeterHitCollection::getValueTypeName ( ) const
inlineoverride

fully qualified type name of elements - with namespace

Definition at line 77 of file CalorimeterHitCollection.h.

◆ isValid()

bool dd4pod::CalorimeterHitCollection::isValid ( ) const
inlinefinaloverride

Definition at line 112 of file CalorimeterHitCollection.h.

◆ operator->()

CalorimeterHitCollection* dd4pod::CalorimeterHitCollection::operator-> ( )
inline

operator to allow pointer like calling of members a la LCIO

Definition at line 63 of file CalorimeterHitCollection.h.

◆ operator[]() [1/2]

CalorimeterHit dd4pod::CalorimeterHitCollection::operator[] ( unsigned int  index)

Returns the object of a given index.

Definition at line 31 of file CalorimeterHitCollection.cc.

◆ operator[]() [2/2]

const CalorimeterHit dd4pod::CalorimeterHitCollection::operator[] ( unsigned int  index) const

Returns the const object of given index.

Definition at line 23 of file CalorimeterHitCollection.cc.

◆ position()

template<size_t arraysize>
const std::array< dd4pod::FourVector, arraysize > dd4pod::CalorimeterHitCollection::position

Definition at line 199 of file CalorimeterHitCollection.h.

◆ prepareAfterRead()

void dd4pod::CalorimeterHitCollection::prepareAfterRead ( )
finaloverride

Definition at line 70 of file CalorimeterHitCollection.cc.

◆ prepareForWrite()

void dd4pod::CalorimeterHitCollection::prepareForWrite ( )
finaloverride

Definition at line 56 of file CalorimeterHitCollection.cc.

◆ push_back()

void dd4pod::CalorimeterHitCollection::push_back ( ConstCalorimeterHit  object)

Append object to the collection.

Definition at line 91 of file CalorimeterHitCollection.cc.

◆ referenceCollections()

podio::CollRefCollection* dd4pod::CalorimeterHitCollection::referenceCollections ( )
inlinefinaloverride

Definition at line 97 of file CalorimeterHitCollection.h.

◆ setBuffer()

void dd4pod::CalorimeterHitCollection::setBuffer ( void *  address)
finaloverride

Definition at line 103 of file CalorimeterHitCollection.cc.

◆ setID()

void dd4pod::CalorimeterHitCollection::setID ( unsigned  ID)
inlinefinaloverride

Definition at line 101 of file CalorimeterHitCollection.h.

◆ setReferences()

bool dd4pod::CalorimeterHitCollection::setReferences ( const podio::ICollectionProvider *  collectionProvider)
finaloverride

Definition at line 86 of file CalorimeterHitCollection.cc.

◆ size()

size_t dd4pod::CalorimeterHitCollection::size ( ) const
finaloverride

number of elements in the collection

Definition at line 39 of file CalorimeterHitCollection.cc.

◆ truth()

template<size_t arraysize>
const std::array< dd4pod::MonteCarloContrib, arraysize > dd4pod::CalorimeterHitCollection::truth

Definition at line 209 of file CalorimeterHitCollection.h.

◆ vectorMembers()

podio::VectorMembersInfo* dd4pod::CalorimeterHitCollection::vectorMembers ( )
inlineoverride

Definition at line 99 of file CalorimeterHitCollection.h.


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