44 ,USE_ONLY_PHOTONEVAPORATION(
false)
45 ,SKIP_MISSING_ISOTOPES(
false)
46 ,NEGLECT_DOPPLER(
false)
47 ,DO_NOT_ADJUST_FINAL_STATE(
false)
48 ,PRODUCE_FISSION_FRAGMENTS(
false)
49 ,USE_NRESP71_MODEL(
false)
50 ,theElasticCrossSections(0)
51 ,theCaptureCrossSections(0)
52 ,theFissionCrossSections(0)
56 ,theTSCoherentCrossSections(0)
57 ,theTSIncoherentCrossSections(0)
58 ,theTSInelasticCrossSections(0)
59 ,theTSCoherentFinalStates(0)
60 ,theTSIncoherentFinalStates(0)
61 ,theTSInelasticFinalStates(0)
64 if ( std::getenv(
"G4NEUTRONHP_DO_NOT_ADJUST_FINAL_STATE" ) || std::getenv(
"G4PHP_DO_NOT_ADJUST_FINAL_STATE") )
DO_NOT_ADJUST_FINAL_STATE =
true;
66 if ( std::getenv(
"G4NEUTRONHP_NEGLECT_DOPPLER" ) || std::getenv(
"G4PHP_NEGLECT_DOPPLER") )
NEGLECT_DOPPLER =
true;
106 compfilename +=
".z";
107 std::ifstream*
in =
new std::ifstream ( compfilename , std::ios::binary | std::ios::ate );
111 G4int file_size = in->tellg();
112 in->seekg( 0 , std::ios::beg );
113 Bytef* compdata =
new Bytef[ file_size ];
117 in->read( (
char*)compdata , file_size );
120 uLongf complen = (uLongf) ( file_size*4 );
121 Bytef* uncompdata =
new Bytef[complen];
123 while (
Z_OK !=
uncompress ( uncompdata , &complen , compdata , file_size ) )
127 uncompdata =
new Bytef[complen];
132 delete [] uncompdata;
137 std::ifstream thefData( filename ,
std::ios::in | std::ios::ate );
138 if ( thefData.good() )
140 G4int file_size = thefData.tellg();
141 thefData.seekg( 0 , std::ios::beg );
142 char* filedata =
new char[ file_size ];
145 thefData.read( filedata , file_size );
148 data =
new G4String ( filedata , file_size );
155 iss.setstate( std::ios::badbit );
172 iss.seekg( 0 , std::ios::beg );
175 in->close();
delete in;
184 compfilename +=
".z";
185 std::ifstream*
in =
new std::ifstream ( compfilename , std::ios::binary | std::ios::ate );
193 std::ifstream thefData( filename ,
std::ios::in | std::ios::ate );
194 if ( thefData.good() )
203 iss.setstate( std::ios::badbit );
211 G4cout <<
"You are setting a new verbose level for Particle HP package." <<
G4endl;
212 G4cout <<
"the new value will be used in whole of the Particle HP package, i.e., models and cross sections for Capture, Elastic, Fission and Inelastic interaction." <<
G4endl;
218 mDataEvaluation.insert( std::pair < G4String , G4String > ( filename , source ) );
224 G4cout <<
"Data source of this Partile HP calculation are " <<
G4endl;
225 for ( std::map< G4String , G4String >::iterator