28 #ifndef G4ASTARStopping_h
29 #define G4ASTARStopping_h 1
86 void PrintWarning(
G4int idx)
const;
94 std::vector<const G4Material*> materials;
95 std::vector<G4LPhysicsFreeVector*> sdata;
103 for (
size_t i=0; i<nvectors; ++i){
104 if (mat == materials[i]){
117 for (
size_t i=0; i<nvectors; ++i){
118 if (nam == materials[i]->GetName()){
132 if (idx<0 || idx>=
G4int(nvectors)) { PrintWarning(idx); }
133 if(energy < emin) { res = (*(sdata[idx]))[0]*std::sqrt(energy/emin); }
134 else { res = sdata[idx]->Value(energy); }
G4double GetElectronicDEDX(G4int idx, G4double energy) const
G4double energy(const ThreeVector &p, const G4double m)
G4int GetIndex(const G4Material *) const