32 #ifndef G4THitsCollection_h 33 #define G4THitsCollection_h 1 36 #include "G4Allocator.hh" 42 #include "ExN04CalorimeterHit.hh" 43 #include "ExN04MuonHit.hh" 44 #include "ExN04TrackerHit.hh" 45 #include "MarshaledExN04CalorimeterHit.h" 46 #include "MarshaledExN04MuonHit.h" 47 #include "MarshaledExN04TrackerHit.h" 104 #if defined G4DIGI_ALLOC_EXPORT 105 extern G4DLLEXPORT G4Allocator<G4HitsCollection>
anHCAllocator;
107 extern G4DLLIMPORT G4Allocator<G4HitsCollection>
anHCAllocator;
122 inline void *
operator new(size_t);
123 inline void operator delete(
void* anHC);
139 std::vector<T*>*theHitsCollection
141 theHitsCollection->push_back(aHit);
142 return theHitsCollection->size();
148 std::vector<T*>*theHitsCollection
150 return theHitsCollection->size();
179 std::vector<T*> * theHitsCollection
180 =
new std::vector<T*>;
187 std::vector<T*> * theHitsCollection
188 =
new std::vector<T*>;
194 std::vector<T*> * theHitsCollection
197 for(
size_t i=0;i<theHitsCollection->size();i++)
198 {
delete (*theHitsCollection)[i]; }
199 theHitsCollection->clear();
200 delete theHitsCollection;
208 std::vector<T*> * theHitsCollection
210 size_t n = theHitsCollection->size();
211 for(
size_t i=0;i<
n;i++)
212 { (*theHitsCollection)[i]->Draw(); }
217 std::vector<T*> * theHitsCollection
219 size_t n = theHitsCollection->size();
220 for(
size_t i=0;i<
n;i++)
221 { (*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