29#ifndef G4THitsCollection_h
30#define G4THitsCollection_h 1
60#if defined G4DIGI_ALLOC_EXPORT
79 inline void*
operator new(size_t);
80 inline void operator delete(
void* anHC);
101 std::vector<T*>* theHitsCollection = (std::vector<T*>*)
theCollection;
102 theHitsCollection->push_back(aHit);
103 return theHitsCollection->size();
109 std::vector<T*>* theHitsCollection = (std::vector<T*>*)
theCollection;
110 return theHitsCollection->size();
144 std::vector<T*>* theHitsCollection =
new std::vector<T*>;
145 theCollection = (
void*) theHitsCollection;
152 std::vector<T*>* theHitsCollection =
new std::vector<T*>;
159 std::vector<T*>* theHitsCollection = (std::vector<T*>*) theCollection;
161 for(
size_t i = 0; i < theHitsCollection->size(); ++i)
163 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)
182 (*theHitsCollection)[i]->Draw();
189 std::vector<T*>* theHitsCollection = (std::vector<T*>*) theCollection;
190 size_t n = theHitsCollection->size();
191 for(
size_t i = 0; i < n; ++i)
193 (*theHitsCollection)[i]->Print();
G4DLLIMPORT G4Allocator< G4HitsCollection > *& anHCAllocator_G4MT_TLS_()
G4bool operator==(const G4HitsCollection &right) const
virtual ~G4HitsCollection()
virtual ~G4THitsCollection()
virtual void DrawAllHits()
virtual size_t GetSize() const
std::vector< T * > * GetVector() const
G4bool operator==(const G4THitsCollection< T > &right) const
virtual G4VHit * GetHit(size_t i) const
T * operator[](size_t i) const
virtual void PrintAllHits()