30 #include "G4HCofThisEvent.hh"
40 HC =
new std::vector<G4VHitsCollection*>;
45 HC =
new std::vector<G4VHitsCollection*>;
46 for(
G4int i=0;i<cap;i++)
55 for(
size_t i=0;i<
HC->size();i++)
63 if(HCID>=0 && HCID<
G4int(
HC->size()))
74 HC =
new std::vector<G4VHitsCollection*>(rhs.
HC->size());
75 for (
unsigned int i = 0 ; i<rhs.
HC->size() ; ++i)
76 *(
HC->at(i)) = *(rhs.
HC->at(i));
81 if (
this == &rhs )
return *
this;
83 for ( std::vector<G4VHitsCollection*>::const_iterator it =
HC->begin() ;
84 it !=
HC->end() ; ++it )
88 HC->resize(rhs.
HC->size());
89 for (
unsigned int i = 0 ; i<rhs.
HC->size() ; ++i)
90 *(
HC->at(i)) = *(rhs.
HC->at(i));
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
#define G4ThreadLocalStatic
G4HCofThisEvent & operator=(const G4HCofThisEvent &)
std::vector< G4VHitsCollection * > * HC
G4DLLIMPORT G4Allocator< G4HCofThisEvent > *& anHCoTHAllocator_G4MT_TLS_()