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