33 #ifndef G4THitsCollection_h
34 #define G4THitsCollection_h 1
72 #if defined G4DIGI_ALLOC_EXPORT
90 inline void *
operator new(size_t);
91 inline void operator delete(
void* anHC);
107 std::vector<T*>*theHitsCollection
109 theHitsCollection->push_back(aHit);
110 return theHitsCollection->size();
116 std::vector<T*>*theHitsCollection
118 return theHitsCollection->size();
147 std::vector<T*> * theHitsCollection
148 =
new std::vector<T*>;
149 theCollection = (
void*)theHitsCollection;
155 std::vector<T*> * theHitsCollection
156 =
new std::vector<T*>;
162 std::vector<T*> * theHitsCollection
163 = (std::vector<T*>*)theCollection;
165 for(
size_t i=0;i<theHitsCollection->size();i++)
166 {
delete (*theHitsCollection)[i]; }
167 theHitsCollection->clear();
168 delete theHitsCollection;
176 std::vector<T*> * theHitsCollection
177 = (std::vector<T*>*)theCollection;
178 size_t n = theHitsCollection->size();
179 for(
size_t i=0;i<
n;i++)
180 { (*theHitsCollection)[i]->Draw(); }
185 std::vector<T*> * theHitsCollection
186 = (std::vector<T*>*)theCollection;
187 size_t n = theHitsCollection->size();
188 for(
size_t i=0;i<
n;i++)
189 { (*theHitsCollection)[i]->Print(); }
G4int operator==(const G4HitsCollection &right) const
T * operator[](size_t i) const
virtual void PrintAllHits()
virtual void DrawAllHits()
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
virtual size_t GetSize() const