Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/physics_lists/builders/include/G4DataQuestionaire.hh

    r1228 r1340  
    3333#include "G4VPiKBuilder.hh"
    3434
    35 enum G4DataType {no, photon, neutron, radioactive, lowenergy, optical};
     35enum G4DataType {no, photon, neutron, radioactive, lowenergy, optical, neutronxs};
    3636class G4DataQuestionaire
    3737{
    3838  public:
    39     G4DataQuestionaire(G4DataType t1=no, G4DataType t2=no, G4DataType t3=no, G4DataType t4=no, G4DataType t5=no)
     39    G4DataQuestionaire(G4DataType t1=no, G4DataType t2=no, G4DataType t3=no,
     40                       G4DataType t4=no, G4DataType t5=no, G4DataType t6=no)
    4041    {
    4142      G4cout << G4endl;
     
    4344      //      G4cout <<G4endl<<G4endl;
    4445      // G4cout << "##### the input "<<t1<<" "<<t2<<" "<<t3<<" "<<t4<<G4endl;
    45       for(G4int i=0; i<5; i++)
     46      for(G4int i=0; i<6; ++i)
    4647      {
    4748        G4DataType t(no);
     
    5152        if(i==3) t=t4;
    5253        if(i==4) t=t5;
     54        if(i==5) t=t6;
    5355        switch(t)
    5456        {
     
    98100            break;
    99101          case optical:
    100             if(!getenv("G4LEDATA") )
     102            /*
     103            if(!getenv("G4REALSURFACEDATA") )
    101104            {
    102105              G4cout << "Data describing surface propeties for optical photons are needed."<<G4endl;
    103106              G4cout << "Please set the environmental variable G4REALSURFACEDATA"<<G4endl;
    104107              G4cout << "to point to your RealSurface directory."<<G4endl;
     108              G4cout << "Data are available from the Geant4 download page."<<G4endl;
     109              G4Exception("G4DataQuestionaire", "007", FatalException,
     110                          "Fatal error: Missing mandatory data for this simulation engine");
     111            }
     112            */
     113            break;
     114          case neutronxs:
     115            if(!getenv("G4NEUTRONXSDATA") )
     116            {
     117              G4cout << "G4NEUTRONXS are needed."<<G4endl;
     118              G4cout << "Please set the environmental variable G4NEUTRONXSDATA"<<G4endl;
     119              G4cout << "to point to your G4NEUTRONXS directory."<<G4endl;
    105120              G4cout << "Data are available from the Geant4 download page."<<G4endl;
    106121              G4Exception("G4DataQuestionaire", "007", FatalException,
Note: See TracChangeset for help on using the changeset viewer.