30#ifndef G4THitsCollection_h
31#define G4THitsCollection_h 1
61#if defined G4DIGI_ALLOC_EXPORT
78 inline void *
operator new(size_t);
79 inline void operator delete(
void* anHC);
95 std::vector<T*>*theHitsCollection
97 theHitsCollection->push_back(aHit);
98 return theHitsCollection->size();
104 std::vector<T*>*theHitsCollection
106 return theHitsCollection->size();
132 std::vector<T*> * theHitsCollection
133 =
new std::vector<T*>;
134 theCollection = (
void*)theHitsCollection;
140 std::vector<T*> * theHitsCollection
141 =
new std::vector<T*>;
147 std::vector<T*> * theHitsCollection
148 = (std::vector<T*>*)theCollection;
150 for(
size_t i=0;i<theHitsCollection->size();i++)
151 {
delete (*theHitsCollection)[i]; }
152 theHitsCollection->clear();
153 delete theHitsCollection;
161 std::vector<T*> * theHitsCollection
162 = (std::vector<T*>*)theCollection;
163 size_t n = theHitsCollection->size();
164 for(
size_t i=0;i<n;i++)
165 { (*theHitsCollection)[i]->Draw(); }
170 std::vector<T*> * theHitsCollection
171 = (std::vector<T*>*)theCollection;
172 size_t n = theHitsCollection->size();
173 for(
size_t i=0;i<n;i++)
174 { (*theHitsCollection)[i]->Print(); }
G4DLLIMPORT G4Allocator< G4HitsCollection > anHCAllocator
G4int operator==(const G4HitsCollection &right) const
virtual ~G4HitsCollection()
G4int operator==(const G4THitsCollection< T > &right) const
virtual ~G4THitsCollection()
virtual void DrawAllHits()
virtual size_t GetSize() const
std::vector< T * > * GetVector() const
virtual G4VHit * GetHit(size_t i) const
T * operator[](size_t i) const
virtual void PrintAllHits()