33 #ifndef G4THitsCollection_h
34 #define G4THitsCollection_h 1
43 #include "ExN04CalorimeterHit.hh"
44 #include "ExN04MuonHit.hh"
45 #include "ExN04TrackerHit.hh"
105 #if defined G4DIGI_ALLOC_EXPORT
123 inline void *
operator new(size_t);
124 inline void operator delete(
void* anHC);
140 std::vector<T*>*theHitsCollection
142 theHitsCollection->push_back(aHit);
143 return theHitsCollection->size();
149 std::vector<T*>*theHitsCollection
151 return theHitsCollection->size();
180 std::vector<T*> * theHitsCollection
181 =
new std::vector<T*>;
182 theCollection = (
void*)theHitsCollection;
188 std::vector<T*> * theHitsCollection
189 =
new std::vector<T*>;
195 std::vector<T*> * theHitsCollection
196 = (std::vector<T*>*)theCollection;
198 for(
size_t i=0;i<theHitsCollection->size();i++)
199 {
delete (*theHitsCollection)[i]; }
200 theHitsCollection->clear();
201 delete theHitsCollection;
209 std::vector<T*> * theHitsCollection
210 = (std::vector<T*>*)theCollection;
211 size_t n = theHitsCollection->size();
212 for(
size_t i=0;i<
n;i++)
213 { (*theHitsCollection)[i]->Draw(); }
218 std::vector<T*> * theHitsCollection
219 = (std::vector<T*>*)theCollection;
220 size_t n = theHitsCollection->size();
221 for(
size_t i=0;i<
n;i++)
222 { (*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