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(); }