32 #ifndef G4THitsCollection_h
33 #define G4THitsCollection_h 1
42 #include "ExN04CalorimeterHit.hh"
43 #include "ExN04MuonHit.hh"
44 #include "ExN04TrackerHit.hh"
104 #if defined G4DIGI_ALLOC_EXPORT
122 inline void *
operator new(size_t);
123 inline void operator delete(
void* anHC);
139 std::vector<T*>*theHitsCollection
141 theHitsCollection->push_back(aHit);
142 return theHitsCollection->size();
148 std::vector<T*>*theHitsCollection
150 return theHitsCollection->size();
179 std::vector<T*> * theHitsCollection
180 =
new std::vector<T*>;
181 theCollection = (
void*)theHitsCollection;
187 std::vector<T*> * theHitsCollection
188 =
new std::vector<T*>;
194 std::vector<T*> * theHitsCollection
195 = (std::vector<T*>*)theCollection;
197 for(
size_t i=0;i<theHitsCollection->size();i++)
198 {
delete (*theHitsCollection)[i]; }
199 theHitsCollection->clear();
200 delete theHitsCollection;
208 std::vector<T*> * theHitsCollection
209 = (std::vector<T*>*)theCollection;
210 size_t n = theHitsCollection->size();
211 for(
size_t i=0;i<
n;i++)
212 { (*theHitsCollection)[i]->Draw(); }
217 std::vector<T*> * theHitsCollection
218 = (std::vector<T*>*)theCollection;
219 size_t n = theHitsCollection->size();
220 for(
size_t i=0;i<
n;i++)
221 { (*theHitsCollection)[i]->Print(); }