27#ifndef G4ASTARStopping_h
28#define G4ASTARStopping_h 1
89 void PrintWarning(
G4int idx)
const;
93 std::vector<const G4Material*> materials;
94 std::vector<G4PhysicsFreeVector*> sdata;
102 for (
G4int i=0; i<nvectors; ++i) {
103 if (mat == materials[i]) {
116 for (
G4int i=0; i<nvectors; ++i) {
117 if (nam == materials[i]->GetName()) {
131 if (idx<0 || idx >= nvectors) { PrintWarning(idx); }
132 if(energy < emin) { res = (*(sdata[idx]))[0]*std::sqrt(energy/emin); }
133 else { res = sdata[idx]->Value(energy); }
G4ASTARStopping & operator=(const G4ASTARStopping &right)=delete
G4int GetIndex(const G4Material *) const
G4double GetElectronicDEDX(G4int idx, G4double energy) const
G4ASTARStopping(const G4ASTARStopping &)=delete