- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/physics_lists/builders/include/G4DataQuestionaire.hh
r1228 r1340 33 33 #include "G4VPiKBuilder.hh" 34 34 35 enum G4DataType {no, photon, neutron, radioactive, lowenergy, optical };35 enum G4DataType {no, photon, neutron, radioactive, lowenergy, optical, neutronxs}; 36 36 class G4DataQuestionaire 37 37 { 38 38 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) 40 41 { 41 42 G4cout << G4endl; … … 43 44 // G4cout <<G4endl<<G4endl; 44 45 // G4cout << "##### the input "<<t1<<" "<<t2<<" "<<t3<<" "<<t4<<G4endl; 45 for(G4int i=0; i< 5; i++)46 for(G4int i=0; i<6; ++i) 46 47 { 47 48 G4DataType t(no); … … 51 52 if(i==3) t=t4; 52 53 if(i==4) t=t5; 54 if(i==5) t=t6; 53 55 switch(t) 54 56 { … … 98 100 break; 99 101 case optical: 100 if(!getenv("G4LEDATA") ) 102 /* 103 if(!getenv("G4REALSURFACEDATA") ) 101 104 { 102 105 G4cout << "Data describing surface propeties for optical photons are needed."<<G4endl; 103 106 G4cout << "Please set the environmental variable G4REALSURFACEDATA"<<G4endl; 104 107 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; 105 120 G4cout << "Data are available from the Geant4 download page."<<G4endl; 106 121 G4Exception("G4DataQuestionaire", "007", FatalException,
Note: See TracChangeset
for help on using the changeset viewer.