PhotoMultiplierHitCollection.cc
Go to the documentation of this file.
86 bool PhotoMultiplierHitCollection::setReferences(const podio::ICollectionProvider* collectionProvider) {
99 throw std::invalid_argument("Object already in a collection. Cannot add it to a second collection");
118 const PhotoMultiplierHitCollectionIterator& PhotoMultiplierHitCollectionIterator::operator++() const {
void prepareForWrite() override final
Definition: PhotoMultiplierHitCollection.cc:56
const std::array< double, arraysize > energy() const
Definition: PhotoMultiplierHitCollection.h:243
const std::array< dd4pod::MonteCarloContrib, arraysize > truth() const
Definition: PhotoMultiplierHitCollection.h:233
~PhotoMultiplierHitCollection()
Definition: PhotoMultiplierHitCollection.cc:18
const PhotoMultiplierHit operator[](unsigned int index) const
Returns the const object of given index.
Definition: PhotoMultiplierHitCollection.cc:23
void push_back(ConstPhotoMultiplierHit object)
Append object to the collection.
Definition: PhotoMultiplierHitCollection.cc:91
const PhotoMultiplierHit * operator->() const
Definition: PhotoMultiplierHitCollection.cc:113
const std::array< long long, arraysize > cellID() const
Definition: PhotoMultiplierHitCollection.h:173
const std::array< dd4pod::FourVector, arraysize > position() const
Definition: PhotoMultiplierHitCollection.h:203
Definition: Geant4Output2Podio.h:12
const PhotoMultiplierHit at(unsigned int index) const
Returns the const object of given index.
Definition: PhotoMultiplierHitCollection.cc:27
PhotoMultiplierHitCollection()
Definition: PhotoMultiplierHitCollection.cc:13
const std::array< long, arraysize > g4ID() const
Definition: PhotoMultiplierHitCollection.h:193
PhotoMultiplierHit create()
Append a new object to the collection, and return this object.
Definition: PhotoMultiplierHitCollection.cc:43
bool setReferences(const podio::ICollectionProvider *collectionProvider) override final
Definition: PhotoMultiplierHitCollection.cc:86
void clear() override final
Definition: PhotoMultiplierHitCollection.cc:50
const std::array< long, arraysize > flag() const
Definition: PhotoMultiplierHitCollection.h:183
const std::array< double, arraysize > length() const
Definition: PhotoMultiplierHitCollection.h:223
std::vector< PhotoMultiplierHitData > PhotoMultiplierHitDataContainer
Definition: PhotoMultiplierHitCollection.h:26
void prepareAfterRead() override final
Definition: PhotoMultiplierHitCollection.cc:70
const PhotoMultiplierHitCollectionIterator & operator++() const
Definition: PhotoMultiplierHitCollection.cc:118
A Collection is identified by an ID.
Definition: PhotoMultiplierHitCollection.h:50
const std::array< dd4pod::FourVector, arraysize > momentum() const
Definition: PhotoMultiplierHitCollection.h:213
std::ostream & operator<<(std::ostream &o, const ConstCalorimeterHit &value)
Definition: CalorimeterHit.cc:94
const PhotoMultiplierHit operator*() const
Definition: PhotoMultiplierHitCollection.cc:108
size_t size() const override final
number of elements in the collection
Definition: PhotoMultiplierHitCollection.cc:39
void setBuffer(void *address) override final
Definition: PhotoMultiplierHitCollection.cc:103