29#ifndef G4THitsCollection_h
30#define G4THitsCollection_h 1
60#if defined G4DIGI_ALLOC_EXPORT
77 inline void *
operator new(size_t);
78 inline void operator delete(
void* anHC);
100 std::vector<T*>*theHitsCollection = (std::vector<T*>*)
theCollection;
101 theHitsCollection->push_back(aHit);
102 return theHitsCollection->size();
109 std::vector<T*>*theHitsCollection = (std::vector<T*>*)
theCollection;
110 return theHitsCollection->size();
146 std::vector<T*> * theHitsCollection =
new std::vector<T*>;
147 theCollection = (
void*)theHitsCollection;
154 std::vector<T*> * theHitsCollection =
new std::vector<T*>;
161 std::vector<T*> * theHitsCollection = (std::vector<T*>*)theCollection;
163 for(
size_t i=0;i<theHitsCollection->size();++i)
164 {
delete (*theHitsCollection)[i]; }
165 theHitsCollection->clear();
166 delete theHitsCollection;
178 std::vector<T*> * theHitsCollection = (std::vector<T*>*)theCollection;
179 size_t n = theHitsCollection->size();
180 for(
size_t i=0;i<n;++i)
181 { (*theHitsCollection)[i]->Draw(); }
187 std::vector<T*> * theHitsCollection
188 = (std::vector<T*>*)theCollection;
189 size_t n = theHitsCollection->size();
190 for(
size_t i=0;i<n;++i)
191 { (*theHitsCollection)[i]->Print(); }
G4DLLIMPORT G4Allocator< G4HitsCollection > *& anHCAllocator_G4MT_TLS_()
void FreeSingle(Type *anElement)
G4bool operator==(const G4HitsCollection &right) const
virtual ~G4HitsCollection()
virtual ~G4THitsCollection()
virtual void DrawAllHits()
virtual size_t GetSize() const
std::vector< T * > * GetVector() const
G4bool operator==(const G4THitsCollection< T > &right) const
virtual G4VHit * GetHit(size_t i) const
T * operator[](size_t i) const
virtual void PrintAllHits()