49 data.resize(n,
nullptr);
56 for(std::size_t i=0; i<tLength; ++i) {
57 for(std::size_t j = i+1; j<tLength; ++j) {
58 if(data[j] == data[i]) { data[j] =
nullptr; }
78 if(ptr != data[idx]) { data[idx] = ptr; }
80 G4cout <<
"### G4HadDataHandler::UpdateTable fail for idx=" << idx
81 <<
" length=" << tLength <<
G4endl;
89 if(idx < tLength &&
nullptr != data[idx]) {
90 data[idx]->clearAndDestroy();
100 masterProcess.push_back(ptr);
107 return (idx < masterProcess.size()) ? masterProcess[idx] :
nullptr;
G4GLOB_DLL std::ostream G4cout
void CleanTable(std::size_t idx)
void AddTable(G4PhysicsTable *)
void SetMasterProcess(const G4VProcess *)
const G4VProcess * GetMasterProcess(std::size_t idx) const
void UpdateTable(G4PhysicsTable *, std::size_t idx)
G4HadDataHandler(std::size_t nTable)