54 data.resize(n,
nullptr);
63 for(
size_t i=0; i<tLength; ++i) {
CleanTable(i); }
83 if(i < tLength) { table = data[i]; }
86 data.push_back(table);
88 }
else { data[i] = table; }
98 if(i < tLength && data[i]) {
99 data[i]->clearAndDestroy();
114 yes = data[idx]->StorePhysicsTable(fname, ascii);
117 G4cout <<
"Physics table is stored for "
119 <<
" <" << fname <<
"> " <<
G4endl;
121 G4cout <<
"Fail to store Physics Table for "
123 <<
" <" << fname <<
"> " <<
G4endl;
141 G4cout <<
"Physics table " << idx <<
" for "
143 <<
" is retrieved from <" << fname <<
">"
148 size_t n = table->
length();
149 for(
size_t i=0; i<n; ++i) {
150 if((*table)[i]) { (*table)[i]->SetSpline(
true); }
153 }
else if (1 < param->
Verbose()) {
154 G4cout <<
"Fail to retrieve physics table " << idx <<
" for "
156 << fname <<
">" <<
G4endl;
165 masterProcess.push_back(ptr);
172 return (idx < masterProcess.size()) ? masterProcess[idx] :
nullptr;
G4GLOB_DLL std::ostream G4cout
void SetMasterProcess(const G4VEmProcess *)
void CleanTable(size_t idx)
G4PhysicsTable * MakeTable(size_t idx)
G4bool RetrievePhysicsTable(size_t idx, const G4ParticleDefinition *part, const G4String &fname, G4bool ascii)
const G4VEmProcess * GetMasterProcess(size_t idx) const
size_t SetTable(G4PhysicsTable *)
G4EmDataHandler(size_t nTable)
G4bool StorePhysicsTable(size_t idx, const G4ParticleDefinition *part, const G4String &fname, G4bool ascii)
static G4EmParameters * Instance()
const G4String & GetParticleName() const
static G4PhysicsTable * PreparePhysicsTable(G4PhysicsTable *physTable)
static G4bool RetrievePhysicsTable(G4PhysicsTable *physTable, const G4String &fileName, G4bool ascii)
std::size_t length() const