82 if ( !
ParseArg(vararg))
return false;
95 en = std::pow(10., logmin + (
c*(logmax-logmin) / (npoints - 1.)) );
109 data <<
"MeV " <<
"MeV*cm2/g " <<
particle <<
" (into " <<
113 for (
size_t i=0; i<
energy.size(); i++){
121 G4cout <<
"User choice:\n";
125 "\", material= \"" <<
material <<
"\", filename= \""<<
142 std::istringstream strParam(vararg);
154 G4cout <<
"WARNING: kinEmin must not exceed kinEmax!" <<
G4endl;
155 G4cout <<
"Usage: /parameter/command material EkinMin EKinMax nPoints [particle] [output filename]" <<
G4endl;
163 G4cout <<
"WARNING: material \"" <<
material <<
"\" doesn't exist in NIST elements/materials"
164 " table [$G4INSTALL/source/materials/src/G4NistMaterialBuilder.cc]" <<
G4endl;
165 G4cout <<
"Use command \"/parameter/nist\" to see full materials list" <<
G4endl;
173 G4cout <<
"Try the command \"/particle/list\" to get full supported particles list." <<
G4endl;
174 G4cout <<
"If you are interested in an ion that isn't in this list you must give it to the particle gun."
175 "\nTry the commands:\n/gun/particle ion"
176 "\n/gun/ion <atomic number> <mass number> <[charge]>" << G4endl <<
G4endl;
184 outfile.open(filename,std::ios_base::trunc);
198 G4cout <<
"Issuing a G4RunManager::beamOn()... ";
199 G4cout <<
"Current Run State is " << mState -> GetStateString( aState ) <<
G4endl;
216 const std::vector<G4String>& vec =
nistMat -> GetMaterialNames();
217 for (
size_t i=0; i<vec.size(); i++)
223 else if (vararg ==
"all" || vararg ==
"simple" || vararg ==
"compound" || vararg ==
"hep" )
225 nistMat -> ListMaterials(vararg);