dd4pod::Geant4ParticleCollection Class Reference

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

#include <Geant4ParticleCollection.h>

Inheritance diagram for dd4pod::Geant4ParticleCollection:
Collaboration diagram for dd4pod::Geant4ParticleCollection:

Public Types

using const_iterator = const Geant4ParticleCollectionIterator
 

Public Member Functions

 Geant4ParticleCollection ()
 
 ~Geant4ParticleCollection ()
 
void clear () override final
 
Geant4ParticleCollectionoperator-> ()
 operator to allow pointer like calling of members a la LCIO More...
 
Geant4Particle create ()
 Append a new object to the collection, and return this object. More...
 
template<typename... Args>
Geant4Particle 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 Geant4Particle operator[] (unsigned int index) const
 Returns the const object of given index. More...
 
Geant4Particle operator[] (unsigned int index)
 Returns the object of a given index. More...
 
const Geant4Particle at (unsigned int index) const
 Returns the const object of given index. More...
 
Geant4Particle at (unsigned int index)
 Returns the object of given index. More...
 
void push_back (ConstGeant4Particle 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< Geant4ParticleData > * _getBuffer ()
 Returns the pointer to the data buffer. More...
 
template<size_t arraysize>
const std::array< int, arraysize > ID () const
 
template<size_t arraysize>
const std::array< int, arraysize > g4Parent () const
 
template<size_t arraysize>
const std::array< int, arraysize > reason () const
 
template<size_t arraysize>
const std::array< int, arraysize > mask () const
 
template<size_t arraysize>
const std::array< int, arraysize > steps () const
 
template<size_t arraysize>
const std::array< int, arraysize > secondaries () const
 
template<size_t arraysize>
const std::array< int, arraysize > pdgID () const
 
template<size_t arraysize>
const std::array< int, arraysize > status () const
 
template<size_t arraysize>
const std::array< std::array< int, 2 >, arraysize > colorFlow () const
 
template<size_t arraysize>
const std::array< int, arraysize > genStatus () const
 
template<size_t arraysize>
const std::array< int, arraysize > charge () const
 
template<size_t arraysize>
const std::array< std::array< int, 1 >, arraysize > spare () const
 
template<size_t arraysize>
const std::array< std::array< float, 3 >, arraysize > spin () const
 
template<size_t arraysize>
const std::array< double, arraysize > vsx () const
 
template<size_t arraysize>
const std::array< double, arraysize > vsy () const
 
template<size_t arraysize>
const std::array< double, arraysize > vsz () const
 
template<size_t arraysize>
const std::array< double, arraysize > vex () const
 
template<size_t arraysize>
const std::array< double, arraysize > vey () const
 
template<size_t arraysize>
const std::array< double, arraysize > vez () const
 
template<size_t arraysize>
const std::array< double, arraysize > psx () const
 
template<size_t arraysize>
const std::array< double, arraysize > psy () const
 
template<size_t arraysize>
const std::array< double, arraysize > psz () const
 
template<size_t arraysize>
const std::array< double, arraysize > pex () const
 
template<size_t arraysize>
const std::array< double, arraysize > pey () const
 
template<size_t arraysize>
const std::array< double, arraysize > pez () const
 
template<size_t arraysize>
const std::array< double, arraysize > mass () const
 
template<size_t arraysize>
const std::array< double, arraysize > time () const
 
template<size_t arraysize>
const std::array< double, arraysize > properTime () const
 

Detailed Description

A Collection is identified by an ID.

Definition at line 50 of file Geant4ParticleCollection.h.

Member Typedef Documentation

◆ const_iterator

Constructor & Destructor Documentation

◆ Geant4ParticleCollection()

dd4pod::Geant4ParticleCollection::Geant4ParticleCollection ( )

Definition at line 14 of file Geant4ParticleCollection.cc.

◆ ~Geant4ParticleCollection()

dd4pod::Geant4ParticleCollection::~Geant4ParticleCollection ( )

Definition at line 23 of file Geant4ParticleCollection.cc.

Member Function Documentation

◆ _getBuffer()

std::vector<Geant4ParticleData>* dd4pod::Geant4ParticleCollection::_getBuffer ( )
inline

Returns the pointer to the data buffer.

Definition at line 128 of file Geant4ParticleCollection.h.

◆ at() [1/2]

Geant4Particle dd4pod::Geant4ParticleCollection::at ( unsigned int  index)

Returns the object of given index.

Definition at line 42 of file Geant4ParticleCollection.cc.

◆ at() [2/2]

const Geant4Particle dd4pod::Geant4ParticleCollection::at ( unsigned int  index) const

Returns the const object of given index.

Definition at line 34 of file Geant4ParticleCollection.cc.

◆ begin()

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

Definition at line 117 of file Geant4ParticleCollection.h.

◆ charge()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::charge

Definition at line 317 of file Geant4ParticleCollection.h.

◆ clear()

void dd4pod::Geant4ParticleCollection::clear ( )
finaloverride

Definition at line 59 of file Geant4ParticleCollection.cc.

◆ colorFlow()

template<size_t arraysize>
const std::array< std::array< int, 2 >, arraysize > dd4pod::Geant4ParticleCollection::colorFlow

Definition at line 297 of file Geant4ParticleCollection.h.

◆ create() [1/2]

Geant4Particle dd4pod::Geant4ParticleCollection::create ( )

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

Definition at line 50 of file Geant4ParticleCollection.cc.

◆ create() [2/2]

template<typename... Args>
Geant4Particle dd4pod::Geant4ParticleCollection::create ( Args &&...  args)

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

Initialized with the parameters given

Definition at line 209 of file Geant4ParticleCollection.h.

◆ end()

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

Definition at line 120 of file Geant4ParticleCollection.h.

◆ g4Parent()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::g4Parent

Definition at line 227 of file Geant4ParticleCollection.h.

◆ genStatus()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::genStatus

Definition at line 307 of file Geant4ParticleCollection.h.

◆ getBufferAddress()

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

returns the address of the pointer to the data buffer

Definition at line 125 of file Geant4ParticleCollection.h.

◆ getID()

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

Definition at line 108 of file Geant4ParticleCollection.h.

◆ getValueTypeName()

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

fully qualified type name of elements - with namespace

Definition at line 77 of file Geant4ParticleCollection.h.

◆ ID()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::ID

Definition at line 217 of file Geant4ParticleCollection.h.

◆ isValid()

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

Definition at line 112 of file Geant4ParticleCollection.h.

◆ mask()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::mask

Definition at line 247 of file Geant4ParticleCollection.h.

◆ mass()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::mass

Definition at line 467 of file Geant4ParticleCollection.h.

◆ operator->()

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

operator to allow pointer like calling of members a la LCIO

Definition at line 63 of file Geant4ParticleCollection.h.

◆ operator[]() [1/2]

Geant4Particle dd4pod::Geant4ParticleCollection::operator[] ( unsigned int  index)

Returns the object of a given index.

Definition at line 38 of file Geant4ParticleCollection.cc.

◆ operator[]() [2/2]

const Geant4Particle dd4pod::Geant4ParticleCollection::operator[] ( unsigned int  index) const

Returns the const object of given index.

Definition at line 30 of file Geant4ParticleCollection.cc.

◆ pdgID()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::pdgID

Definition at line 277 of file Geant4ParticleCollection.h.

◆ pex()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::pex

Definition at line 437 of file Geant4ParticleCollection.h.

◆ pey()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::pey

Definition at line 447 of file Geant4ParticleCollection.h.

◆ pez()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::pez

Definition at line 457 of file Geant4ParticleCollection.h.

◆ prepareAfterRead()

void dd4pod::Geant4ParticleCollection::prepareAfterRead ( )
finaloverride

Definition at line 104 of file Geant4ParticleCollection.cc.

◆ prepareForWrite()

void dd4pod::Geant4ParticleCollection::prepareForWrite ( )
finaloverride

Definition at line 73 of file Geant4ParticleCollection.cc.

◆ properTime()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::properTime

Definition at line 487 of file Geant4ParticleCollection.h.

◆ psx()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::psx

Definition at line 407 of file Geant4ParticleCollection.h.

◆ psy()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::psy

Definition at line 417 of file Geant4ParticleCollection.h.

◆ psz()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::psz

Definition at line 427 of file Geant4ParticleCollection.h.

◆ push_back()

void dd4pod::Geant4ParticleCollection::push_back ( ConstGeant4Particle  object)

Append object to the collection.

Definition at line 127 of file Geant4ParticleCollection.cc.

◆ reason()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::reason

Definition at line 237 of file Geant4ParticleCollection.h.

◆ referenceCollections()

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

Definition at line 97 of file Geant4ParticleCollection.h.

◆ secondaries()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::secondaries

Definition at line 267 of file Geant4ParticleCollection.h.

◆ setBuffer()

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

Definition at line 141 of file Geant4ParticleCollection.cc.

◆ setID()

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

Definition at line 101 of file Geant4ParticleCollection.h.

◆ setReferences()

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

Definition at line 122 of file Geant4ParticleCollection.cc.

◆ size()

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

number of elements in the collection

Definition at line 46 of file Geant4ParticleCollection.cc.

◆ spare()

template<size_t arraysize>
const std::array< std::array< int, 1 >, arraysize > dd4pod::Geant4ParticleCollection::spare

Definition at line 327 of file Geant4ParticleCollection.h.

◆ spin()

template<size_t arraysize>
const std::array< std::array< float, 3 >, arraysize > dd4pod::Geant4ParticleCollection::spin

Definition at line 337 of file Geant4ParticleCollection.h.

◆ status()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::status

Definition at line 287 of file Geant4ParticleCollection.h.

◆ steps()

template<size_t arraysize>
const std::array< int, arraysize > dd4pod::Geant4ParticleCollection::steps

Definition at line 257 of file Geant4ParticleCollection.h.

◆ time()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::time

Definition at line 477 of file Geant4ParticleCollection.h.

◆ vectorMembers()

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

Definition at line 99 of file Geant4ParticleCollection.h.

◆ vex()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::vex

Definition at line 377 of file Geant4ParticleCollection.h.

◆ vey()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::vey

Definition at line 387 of file Geant4ParticleCollection.h.

◆ vez()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::vez

Definition at line 397 of file Geant4ParticleCollection.h.

◆ vsx()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::vsx

Definition at line 347 of file Geant4ParticleCollection.h.

◆ vsy()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::vsy

Definition at line 357 of file Geant4ParticleCollection.h.

◆ vsz()

template<size_t arraysize>
const std::array< double, arraysize > dd4pod::Geant4ParticleCollection::vsz

Definition at line 367 of file Geant4ParticleCollection.h.


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