28 #ifndef G4PSTARStopping_h
29 #define G4PSTARStopping_h 1
87 void PrintWarning(
G4int idx)
const;
95 std::vector<const G4Material*> materials;
96 std::vector<G4LPhysicsFreeVector*> sdata;
104 for (
G4int i=0; i<nvectors; ++i){
105 if (mat == materials[i]){
118 for (
G4int i=0; i<nvectors; ++i){
119 if (nam == materials[i]->GetName()){
133 if (idx<0 || idx>= nvectors) { PrintWarning(idx); }
134 else if(energy < emin) { res = (*(sdata[idx]))[0]*std::sqrt(energy/emin); }
135 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