32 #ifndef G4THitsCollection_h 33 #define G4THitsCollection_h 1 36 #include "G4Allocator.hh" 71 #if defined G4DIGI_ALLOC_EXPORT 72 extern G4DLLEXPORT G4Allocator<G4HitsCollection>
anHCAllocator;
74 extern G4DLLIMPORT G4Allocator<G4HitsCollection>
anHCAllocator;
89 inline void *
operator new(size_t);
90 inline void operator delete(
void* anHC);
106 std::vector<T*>*theHitsCollection
108 theHitsCollection->push_back(aHit);
109 return theHitsCollection->size();
115 std::vector<T*>*theHitsCollection
117 return theHitsCollection->size();
146 std::vector<T*> * theHitsCollection
147 =
new std::vector<T*>;
154 std::vector<T*> * theHitsCollection
155 =
new std::vector<T*>;
161 std::vector<T*> * theHitsCollection
164 for(
size_t i=0;i<theHitsCollection->size();i++)
165 {
delete (*theHitsCollection)[i]; }
166 theHitsCollection->clear();
167 delete theHitsCollection;
175 std::vector<T*> * theHitsCollection
177 size_t n = theHitsCollection->size();
178 for(
size_t i=0;i<
n;i++)
179 { (*theHitsCollection)[i]->Draw(); }
184 std::vector<T*> * theHitsCollection
186 size_t n = theHitsCollection->size();
187 for(
size_t i=0;i<
n;i++)
188 { (*theHitsCollection)[i]->Print(); }
G4bool operator==(const G4HitsCollection &right) const
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()
virtual G4VHit * GetHit(size_t i) const
G4bool operator==(const G4THitsCollection< T > &right) const
std::vector< T * > * GetVector() const
virtual void DrawAllHits()
virtual size_t GetSize() const