29#ifndef G4THitsCollection_h
30#define G4THitsCollection_h 1
59#if defined G4DIGI_ALLOC_EXPORT
75 inline void*
operator new(size_t);
76 inline void operator delete(
void* anHC);
97 theHitsCollection->push_back(aHit);
98 return theHitsCollection->size();
105 return theHitsCollection->size();
131 auto theHitsCollection =
new std::vector<T*>;
132 theCollection = (
void*)theHitsCollection;
139 auto theHitsCollection =
new std::vector<T*>;
146 auto theHitsCollection = (std::vector<T*>*)theCollection;
147 for (
const auto* hit : *theHitsCollection) {
150 theHitsCollection->clear();
151 delete theHitsCollection;
163 auto theHitsCollection = (std::vector<T*>*)theCollection;
164 for (
auto* hit : *theHitsCollection) {
172 auto theHitsCollection = (std::vector<T*>*)theCollection;
173 for (
auto* hit : *theHitsCollection) {
G4DLLIMPORT G4Allocator< G4HitsCollection > *& anHCAllocator_G4MT_TLS_()
G4bool operator==(const G4HitsCollection &right) const
~G4HitsCollection() override=default
G4VHit * GetHit(size_t i) const override
size_t GetSize() const override
std::vector< T * > * GetVector() const
void PrintAllHits() override
G4bool operator==(const G4THitsCollection< T > &right) const
~G4THitsCollection() override
T * operator[](size_t i) const
void DrawAllHits() override
G4VHitsCollection()=default