33 #ifndef G4THitsCollection_h 34 #define G4THitsCollection_h 1 37 #include "G4Allocator.hh" 72 #if defined G4DIGI_ALLOC_EXPORT 73 extern G4DLLEXPORT G4Allocator<G4HitsCollection>
anHCAllocator;
75 extern G4DLLIMPORT G4Allocator<G4HitsCollection>
anHCAllocator;
90 inline void *
operator new(size_t);
91 inline void operator delete(
void* anHC);
107 std::vector<T*>*theHitsCollection
109 theHitsCollection->push_back(aHit);
110 return theHitsCollection->size();
116 std::vector<T*>*theHitsCollection
118 return theHitsCollection->size();
147 std::vector<T*> * theHitsCollection
148 =
new std::vector<T*>;
155 std::vector<T*> * theHitsCollection
156 =
new std::vector<T*>;
162 std::vector<T*> * theHitsCollection
165 for(
size_t i=0;i<theHitsCollection->size();i++)
166 {
delete (*theHitsCollection)[i]; }
167 theHitsCollection->clear();
168 delete theHitsCollection;
176 std::vector<T*> * theHitsCollection
178 size_t n = theHitsCollection->size();
179 for(
size_t i=0;i<
n;i++)
180 { (*theHitsCollection)[i]->Draw(); }
185 std::vector<T*> * theHitsCollection
187 size_t n = theHitsCollection->size();
188 for(
size_t i=0;i<
n;i++)
189 { (*theHitsCollection)[i]->Print(); }
T * operator[](size_t i) const
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
virtual void PrintAllHits()
virtual void DrawAllHits()
virtual ~G4HitsCollection()
virtual void PrintAllHits()
G4DLLIMPORT G4Allocator< G4HitsCollection > anHCAllocator
virtual ~G4THitsCollection()
G4int operator==(const G4THitsCollection< T > &right) const
virtual G4VHit * GetHit(size_t i) const
G4int operator==(const G4HitsCollection &right) const
std::vector< T * > * GetVector() const
virtual void DrawAllHits()
virtual size_t GetSize() const