30 #include "G4HCofThisEvent.hh"
36 HC =
new std::vector<G4VHitsCollection*>;
41 HC =
new std::vector<G4VHitsCollection*>;
42 for(
G4int i=0;i<cap;i++)
51 for(
size_t i=0;i<
HC->size();i++)
59 if(HCID>=0 && HCID<
G4int(
HC->size()))
60 { (*HC)[HCID] = aHC; }
67 HC =
new std::vector<G4VHitsCollection*>(rhs.
HC->size());
68 for (
unsigned int i = 0 ; i<rhs.
HC->size() ; ++i)
69 *(
HC->at(i)) = *(rhs.
HC->at(i));
74 if (
this == &rhs )
return *
this;
76 for ( std::vector<G4VHitsCollection*>::const_iterator it =
HC->begin() ;
77 it !=
HC->end() ; ++it )
81 HC->resize(rhs.
HC->size());
82 for (
unsigned int i = 0 ; i<rhs.
HC->size() ; ++i)
83 *(
HC->at(i)) = *(rhs.
HC->at(i));
G4ThreadLocal G4Allocator< G4HCofThisEvent > * anHCoTHAllocator_G4MT_TLS_
G4HCofThisEvent & operator=(const G4HCofThisEvent &)
std::vector< G4VHitsCollection * > * HC
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)