32 #ifndef G4THitsCollection_h
33 #define G4THitsCollection_h 1
71 #if defined G4DIGI_ALLOC_EXPORT
89 inline void *
operator new(size_t);
90 inline void operator delete(
void* anHC);
106 std::vector<T*>*theHitsCollection
108 theHitsCollection->push_back(aHit);
109 return theHitsCollection->size();
115 std::vector<T*>*theHitsCollection
117 return theHitsCollection->size();
146 std::vector<T*> * theHitsCollection
147 =
new std::vector<T*>;
148 theCollection = (
void*)theHitsCollection;
154 std::vector<T*> * theHitsCollection
155 =
new std::vector<T*>;
161 std::vector<T*> * theHitsCollection
162 = (std::vector<T*>*)theCollection;
164 for(
size_t i=0;i<theHitsCollection->size();i++)
165 {
delete (*theHitsCollection)[i]; }
166 theHitsCollection->clear();
167 delete theHitsCollection;
175 std::vector<T*> * theHitsCollection
176 = (std::vector<T*>*)theCollection;
177 size_t n = theHitsCollection->size();
178 for(
size_t i=0;i<
n;i++)
179 { (*theHitsCollection)[i]->Draw(); }
184 std::vector<T*> * theHitsCollection
185 = (std::vector<T*>*)theCollection;
186 size_t n = theHitsCollection->size();
187 for(
size_t i=0;i<
n;i++)
188 { (*theHitsCollection)[i]->Print(); }