29#ifndef G4THitsCollection_h
30#define G4THitsCollection_h 1
60#if defined G4DIGI_ALLOC_EXPORT
79 inline void*
operator new(size_t);
80 inline void operator delete(
void* anHC);
107 std::vector<T*>* theHitsCollection = (std::vector<T*>*)
theCollection;
108 theHitsCollection->push_back(aHit);
109 return theHitsCollection->size();
117 std::vector<T*>* theHitsCollection = (std::vector<T*>*)
theCollection;
118 return theHitsCollection->size();
168 std::vector<T*>* theHitsCollection =
new std::vector<T*>;
169 theCollection = (
void*) theHitsCollection;
178 std::vector<T*>* theHitsCollection =
new std::vector<T*>;
187 std::vector<T*>* theHitsCollection = (std::vector<T*>*) theCollection;
189 for(
size_t i = 0; i < theHitsCollection->size(); ++i)
191 delete(*theHitsCollection)[i];
193 theHitsCollection->clear();
194 delete theHitsCollection;
210 std::vector<T*>* theHitsCollection = (std::vector<T*>*) theCollection;
211 size_t n = theHitsCollection->size();
212 for(
size_t i = 0; i <
n; ++i)
214 (*theHitsCollection)[i]->Draw();
223 std::vector<T*>* theHitsCollection = (std::vector<T*>*) theCollection;
224 size_t n = theHitsCollection->size();
225 for(
size_t i = 0; i <
n; ++i)
227 (*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()