Geant4ParticleCollection.cc
Go to the documentation of this file.
84 const int parents_size = std::accumulate(m_entries.begin(), m_entries.end(), 0, [](int sum, const Geant4ParticleObj* obj) { return sum + obj->m_parents->size(); });
87 const int daughters_size = std::accumulate(m_entries.begin(), m_entries.end(), 0, [](int sum, const Geant4ParticleObj* obj) { return sum + obj->m_daughters->size(); });
122 bool Geant4ParticleCollection::setReferences(const podio::ICollectionProvider* collectionProvider) {
137 throw std::invalid_argument("Object already in a collection. Cannot add it to a second collection");
const std::array< double, arraysize > vsy() const
Definition: Geant4ParticleCollection.h:357
const std::array< double, arraysize > pez() const
Definition: Geant4ParticleCollection.h:457
const std::array< int, arraysize > g4Parent() const
Definition: Geant4ParticleCollection.h:227
size_t size() const override final
number of elements in the collection
Definition: Geant4ParticleCollection.cc:46
const std::array< double, arraysize > properTime() const
Definition: Geant4ParticleCollection.h:487
const Geant4Particle operator*() const
Definition: Geant4ParticleCollection.cc:146
Definition: Geant4Particle.h:27
Geant4Particle create()
Append a new object to the collection, and return this object.
Definition: Geant4ParticleCollection.cc:50
const std::array< int, arraysize > ID() const
Definition: Geant4ParticleCollection.h:217
const std::array< double, arraysize > vey() const
Definition: Geant4ParticleCollection.h:387
const std::array< double, arraysize > psy() const
Definition: Geant4ParticleCollection.h:417
const std::array< double, arraysize > vsx() const
Definition: Geant4ParticleCollection.h:347
const Geant4ParticleCollectionIterator & operator++() const
Definition: Geant4ParticleCollection.cc:156
const std::array< double, arraysize > vez() const
Definition: Geant4ParticleCollection.h:397
std::vector< Geant4ParticleData > Geant4ParticleDataContainer
Definition: Geant4ParticleCollection.h:26
const std::array< double, arraysize > mass() const
Definition: Geant4ParticleCollection.h:467
Definition: Geant4Output2Podio.h:12
Definition: Geant4ParticleObj.h:20
const std::array< int, arraysize > steps() const
Definition: Geant4ParticleCollection.h:257
const std::array< int, arraysize > mask() const
Definition: Geant4ParticleCollection.h:247
const std::array< int, arraysize > reason() const
Definition: Geant4ParticleCollection.h:237
const std::array< int, arraysize > genStatus() const
Definition: Geant4ParticleCollection.h:307
Geant4ParticleCollection()
Definition: Geant4ParticleCollection.cc:14
void clear() override final
Definition: Geant4ParticleCollection.cc:59
const Geant4Particle * operator->() const
Definition: Geant4ParticleCollection.cc:151
const std::array< double, arraysize > psx() const
Definition: Geant4ParticleCollection.h:407
const std::array< int, arraysize > charge() const
Definition: Geant4ParticleCollection.h:317
void setBuffer(void *address) override final
Definition: Geant4ParticleCollection.cc:141
std::vector< int > * m_parents
Definition: Geant4ParticleObj.h:33
const std::array< double, arraysize > vsz() const
Definition: Geant4ParticleCollection.h:367
const std::array< double, arraysize > psz() const
Definition: Geant4ParticleCollection.h:427
~Geant4ParticleCollection()
Definition: Geant4ParticleCollection.cc:23
void prepareAfterRead() override final
Definition: Geant4ParticleCollection.cc:104
const std::array< int, arraysize > secondaries() const
Definition: Geant4ParticleCollection.h:267
const std::array< int, arraysize > status() const
Definition: Geant4ParticleCollection.h:287
const std::array< double, arraysize > pex() const
Definition: Geant4ParticleCollection.h:437
const std::array< int, arraysize > pdgID() const
Definition: Geant4ParticleCollection.h:277
std::ostream & operator<<(std::ostream &o, const ConstCalorimeterHit &value)
Definition: CalorimeterHit.cc:94
const Geant4Particle operator[](unsigned int index) const
Returns the const object of given index.
Definition: Geant4ParticleCollection.cc:30
void push_back(ConstGeant4Particle object)
Append object to the collection.
Definition: Geant4ParticleCollection.cc:127
const std::array< double, arraysize > pey() const
Definition: Geant4ParticleCollection.h:447
const Geant4Particle at(unsigned int index) const
Returns the const object of given index.
Definition: Geant4ParticleCollection.cc:34
const std::array< double, arraysize > vex() const
Definition: Geant4ParticleCollection.h:377
A Collection is identified by an ID.
Definition: Geant4ParticleCollection.h:50
const std::array< double, arraysize > time() const
Definition: Geant4ParticleCollection.h:477
void prepareForWrite() override final
Definition: Geant4ParticleCollection.cc:73
bool setReferences(const podio::ICollectionProvider *collectionProvider) override final
Definition: Geant4ParticleCollection.cc:122