30 #ifndef G4THitsCollection_h
31 #define G4THitsCollection_h 1
61 #if defined G4DIGI_ALLOC_EXPORT
78 inline void *
operator new(size_t);
79 inline void operator delete(
void* anHC);
101 std::vector<T*>*theHitsCollection = (std::vector<T*>*)
theCollection;
102 theHitsCollection->push_back(aHit);
103 return theHitsCollection->size();
110 std::vector<T*>*theHitsCollection = (std::vector<T*>*)
theCollection;
111 return theHitsCollection->size();
147 std::vector<T*> * theHitsCollection =
new std::vector<T*>;
148 theCollection = (
void*)theHitsCollection;
155 std::vector<T*> * theHitsCollection =
new std::vector<T*>;
162 std::vector<T*> * theHitsCollection = (std::vector<T*>*)theCollection;
164 for(
size_t i=0;i<theHitsCollection->size();i++)
165 {
delete (*theHitsCollection)[i]; }
166 theHitsCollection->clear();
167 delete theHitsCollection;
179 std::vector<T*> * theHitsCollection = (std::vector<T*>*)theCollection;
180 size_t n = theHitsCollection->size();
181 for(
size_t i=0;i<
n;i++)
182 { (*theHitsCollection)[i]->Draw(); }
188 std::vector<T*> * theHitsCollection
189 = (std::vector<T*>*)theCollection;
190 size_t n = theHitsCollection->size();
191 for(
size_t i=0;i<
n;i++)
192 { (*theHitsCollection)[i]->Print(); }
G4int operator==(const G4HitsCollection &right) const
T * operator[](size_t i) const
virtual void PrintAllHits()
virtual void DrawAllHits()
void FreeSingle(Type *anElement)
virtual ~G4THitsCollection()
G4int operator==(const G4THitsCollection< T > &right) const
virtual G4VHit * GetHit(size_t i) const
virtual ~G4HitsCollection()
std::vector< T * > * GetVector() const
G4DLLIMPORT G4Allocator< G4HitsCollection > *& anHCAllocator_G4MT_TLS_()
G4DLLIMPORT G4Allocator< G4HitsCollection > anHCAllocator
virtual size_t GetSize() const