dd4pod::PhotoMultiplierHitCollection Class Reference

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

#include <PhotoMultiplierHitCollection.h>

Inheritance diagram for dd4pod::PhotoMultiplierHitCollection:
Collaboration diagram for dd4pod::PhotoMultiplierHitCollection:

Public Types

using const_iterator = const PhotoMultiplierHitCollectionIterator
 

Public Member Functions

 PhotoMultiplierHitCollection ()
 
 ~PhotoMultiplierHitCollection ()
 
void clear () override final
 
PhotoMultiplierHitCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO More...
 
PhotoMultiplierHit create ()
 Append a new object to the collection, and return this object. More...
 
template<typename... Args>
PhotoMultiplierHit 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 PhotoMultiplierHit operator[] (unsigned int index) const
 Returns the const object of given index. More...
 
PhotoMultiplierHit operator[] (unsigned int index)
 Returns the object of a given index. More...
 
const PhotoMultiplierHit at (unsigned int index) const
 Returns the const object of given index. More...
 
PhotoMultiplierHit at (unsigned int index)
 Returns the object of given index. More...
 
void push_back (ConstPhotoMultiplierHit 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< PhotoMultiplierHitData > * _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::FourVector, arraysize > momentum () const
 
template<size_t arraysize>
const std::array< double, arraysize > length () const
 
template<size_t arraysize>
const std::array< dd4pod::MonteCarloContrib, arraysize > truth () const
 
template<size_t arraysize>
const std::array< double, arraysize > energy () const
 

Detailed Description

A Collection is identified by an ID.

Definition at line 50 of file PhotoMultiplierHitCollection.h.

Member Typedef Documentation

◆ const_iterator

Constructor & Destructor Documentation

◆ PhotoMultiplierHitCollection()

dd4pod::PhotoMultiplierHitCollection::PhotoMultiplierHitCollection ( )

Definition at line 13 of file PhotoMultiplierHitCollection.cc.

◆ ~PhotoMultiplierHitCollection()

dd4pod::PhotoMultiplierHitCollection::~PhotoMultiplierHitCollection ( )

Definition at line 18 of file PhotoMultiplierHitCollection.cc.

Member Function Documentation

◆ _getBuffer()

std::vector<PhotoMultiplierHitData>* dd4pod::PhotoMultiplierHitCollection::_getBuffer ( )
inline

Returns the pointer to the data buffer.

Definition at line 128 of file PhotoMultiplierHitCollection.h.

◆ at() [1/2]

PhotoMultiplierHit dd4pod::PhotoMultiplierHitCollection::at ( unsigned int  index)

Returns the object of given index.

Definition at line 35 of file PhotoMultiplierHitCollection.cc.

◆ at() [2/2]

const PhotoMultiplierHit dd4pod::PhotoMultiplierHitCollection::at ( unsigned int  index) const

Returns the const object of given index.

Definition at line 27 of file PhotoMultiplierHitCollection.cc.

◆ begin()

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

Definition at line 117 of file PhotoMultiplierHitCollection.h.

◆ cellID()

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

Definition at line 173 of file PhotoMultiplierHitCollection.h.

◆ clear()

void dd4pod::PhotoMultiplierHitCollection::clear ( )
finaloverride

Definition at line 50 of file PhotoMultiplierHitCollection.cc.

◆ create() [1/2]

PhotoMultiplierHit dd4pod::PhotoMultiplierHitCollection::create ( )

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

Definition at line 43 of file PhotoMultiplierHitCollection.cc.

◆ create() [2/2]

template<typename... Args>
PhotoMultiplierHit dd4pod::PhotoMultiplierHitCollection::create ( Args &&...  args)

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

Initialized with the parameters given

Definition at line 165 of file PhotoMultiplierHitCollection.h.

◆ end()

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

Definition at line 120 of file PhotoMultiplierHitCollection.h.

◆ energy()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::PhotoMultiplierHitCollection::energy

Definition at line 243 of file PhotoMultiplierHitCollection.h.

◆ flag()

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

Definition at line 183 of file PhotoMultiplierHitCollection.h.

◆ g4ID()

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

Definition at line 193 of file PhotoMultiplierHitCollection.h.

◆ getBufferAddress()

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

returns the address of the pointer to the data buffer

Definition at line 125 of file PhotoMultiplierHitCollection.h.

◆ getID()

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

Definition at line 108 of file PhotoMultiplierHitCollection.h.

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

Definition at line 77 of file PhotoMultiplierHitCollection.h.

◆ isValid()

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

Definition at line 112 of file PhotoMultiplierHitCollection.h.

◆ length()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::PhotoMultiplierHitCollection::length

Definition at line 223 of file PhotoMultiplierHitCollection.h.

◆ momentum()

template<size_t arraysize>
const std::array< dd4pod::FourVector, arraysize > dd4pod::PhotoMultiplierHitCollection::momentum

Definition at line 213 of file PhotoMultiplierHitCollection.h.

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

Definition at line 63 of file PhotoMultiplierHitCollection.h.

◆ operator[]() [1/2]

PhotoMultiplierHit dd4pod::PhotoMultiplierHitCollection::operator[] ( unsigned int  index)

Returns the object of a given index.

Definition at line 31 of file PhotoMultiplierHitCollection.cc.

◆ operator[]() [2/2]

const PhotoMultiplierHit dd4pod::PhotoMultiplierHitCollection::operator[] ( unsigned int  index) const

Returns the const object of given index.

Definition at line 23 of file PhotoMultiplierHitCollection.cc.

◆ position()

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

Definition at line 203 of file PhotoMultiplierHitCollection.h.

◆ prepareAfterRead()

void dd4pod::PhotoMultiplierHitCollection::prepareAfterRead ( )
finaloverride

Definition at line 70 of file PhotoMultiplierHitCollection.cc.

◆ prepareForWrite()

void dd4pod::PhotoMultiplierHitCollection::prepareForWrite ( )
finaloverride

Definition at line 56 of file PhotoMultiplierHitCollection.cc.

◆ push_back()

void dd4pod::PhotoMultiplierHitCollection::push_back ( ConstPhotoMultiplierHit  object)

Append object to the collection.

Definition at line 91 of file PhotoMultiplierHitCollection.cc.

◆ referenceCollections()

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

Definition at line 97 of file PhotoMultiplierHitCollection.h.

◆ setBuffer()

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

Definition at line 103 of file PhotoMultiplierHitCollection.cc.

◆ setID()

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

Definition at line 101 of file PhotoMultiplierHitCollection.h.

◆ setReferences()

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

Definition at line 86 of file PhotoMultiplierHitCollection.cc.

◆ size()

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

number of elements in the collection

Definition at line 39 of file PhotoMultiplierHitCollection.cc.

◆ truth()

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

Definition at line 233 of file PhotoMultiplierHitCollection.h.

◆ vectorMembers()

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

Definition at line 99 of file PhotoMultiplierHitCollection.h.


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