33 #ifndef G4THitsCollection_h 34 #define G4THitsCollection_h 1 37 #include "G4Allocator.hh" 43 #include "ExN04CalorimeterHit.hh" 44 #include "ExN04MuonHit.hh" 45 #include "ExN04TrackerHit.hh" 46 #include "MarshaledExN04CalorimeterHit.h" 47 #include "MarshaledExN04MuonHit.h" 48 #include "MarshaledExN04TrackerHit.h" 105 #if defined G4DIGI_ALLOC_EXPORT 106 extern G4DLLEXPORT G4Allocator<G4HitsCollection>
anHCAllocator;
108 extern G4DLLIMPORT G4Allocator<G4HitsCollection>
anHCAllocator;
123 inline void *
operator new(size_t);
124 inline void operator delete(
void* anHC);
140 std::vector<T*>*theHitsCollection
142 theHitsCollection->push_back(aHit);
143 return theHitsCollection->size();
149 std::vector<T*>*theHitsCollection
151 return theHitsCollection->size();
180 std::vector<T*> * theHitsCollection
181 =
new std::vector<T*>;
188 std::vector<T*> * theHitsCollection
189 =
new std::vector<T*>;
195 std::vector<T*> * theHitsCollection
198 for(
size_t i=0;i<theHitsCollection->size();i++)
199 {
delete (*theHitsCollection)[i]; }
200 theHitsCollection->clear();
201 delete theHitsCollection;
209 std::vector<T*> * theHitsCollection
211 size_t n = theHitsCollection->size();
212 for(
size_t i=0;i<
n;i++)
213 { (*theHitsCollection)[i]->Draw(); }
218 std::vector<T*> * theHitsCollection
220 size_t n = theHitsCollection->size();
221 for(
size_t i=0;i<
n;i++)
222 { (*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