Import Geant4 9.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:25:56 +02:00
parent 74cad5e589
commit 89a9605df1
4440 changed files with 379508 additions and 189225 deletions
@@ -32,17 +32,18 @@
#include "G4ProtonInelasticProcess.hh"
#include "G4VPiKBuilder.hh"
enum G4DataType {no, photon, neutron, radioactive, lowenergy, optical};
enum G4DataType {no, photon, neutron, radioactive, lowenergy, optical, neutronxs};
class G4DataQuestionaire
{
public:
G4DataQuestionaire(G4DataType t1=no, G4DataType t2=no, G4DataType t3=no, G4DataType t4=no, G4DataType t5=no)
G4DataQuestionaire(G4DataType t1=no, G4DataType t2=no, G4DataType t3=no,
G4DataType t4=no, G4DataType t5=no, G4DataType t6=no)
{
G4cout << G4endl;
G4cout << "<<< Geant4 Physics List engine packaging library: PACK 5.5"<<G4endl;
// G4cout <<G4endl<<G4endl;
// G4cout << "##### the input "<<t1<<" "<<t2<<" "<<t3<<" "<<t4<<G4endl;
for(G4int i=0; i<5; i++)
for(G4int i=0; i<6; ++i)
{
G4DataType t(no);
if(i==0) t=t1;
@@ -50,6 +51,7 @@ class G4DataQuestionaire
if(i==2) t=t3;
if(i==3) t=t4;
if(i==4) t=t5;
if(i==5) t=t6;
switch(t)
{
case photon:
@@ -97,7 +99,8 @@ class G4DataQuestionaire
}
break;
case optical:
if(!getenv("G4LEDATA") )
/*
if(!getenv("G4REALSURFACEDATA") )
{
G4cout << "Data describing surface propeties for optical photons are needed."<<G4endl;
G4cout << "Please set the environmental variable G4REALSURFACEDATA"<<G4endl;
@@ -106,6 +109,18 @@ class G4DataQuestionaire
G4Exception("G4DataQuestionaire", "007", FatalException,
"Fatal error: Missing mandatory data for this simulation engine");
}
*/
break;
case neutronxs:
if(!getenv("G4NEUTRONXSDATA") )
{
G4cout << "G4NEUTRONXS are needed."<<G4endl;
G4cout << "Please set the environmental variable G4NEUTRONXSDATA"<<G4endl;
G4cout << "to point to your G4NEUTRONXS directory."<<G4endl;
G4cout << "Data are available from the Geant4 download page."<<G4endl;
G4Exception("G4DataQuestionaire", "007", FatalException,
"Fatal error: Missing mandatory data for this simulation engine");
}
break;
case no:
// all ok