42 ,USE_ONLY_PHOTONEVAPORATION(false)
43 ,SKIP_MISSING_ISOTOPES(false)
44 ,NEGLECT_DOPPLER(false)
45 ,DO_NOT_ADJUST_FINAL_STATE(false)
46 ,PRODUCE_FISSION_FRAGMENTS(false)
47 ,theElasticCrossSections(NULL)
48 ,theCaptureCrossSections(NULL)
49 ,theInelasticCrossSections(NULL)
50 ,theFissionCrossSections(NULL)
52 ,theInelasticFSs(NULL)
55 ,theTSCoherentCrossSections(NULL)
56 ,theTSIncoherentCrossSections(NULL)
57 ,theTSInelasticCrossSections(NULL)
58 ,theTSCoherentFinalStates(NULL)
59 ,theTSIncoherentFinalStates(NULL)
60 ,theTSInelasticFinalStates(NULL)
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 ];
116 in->read( (
char*)compdata , file_size );
119 uLongf complen = (uLongf) ( file_size*4 );
120 Bytef* uncompdata =
new Bytef[complen];
122 while ( Z_OK !=
uncompress ( uncompdata , &complen , compdata , file_size ) ) {
126 uncompdata =
new Bytef[complen];
131 delete [] uncompdata;
134 std::ifstream thefData( filename , std::ios::in | std::ios::ate );
135 if ( thefData.good() ) {
136 G4int file_size = thefData.tellg();
137 thefData.seekg( 0 , std::ios::beg );
138 char* filedata =
new char[ file_size ];
140 thefData.read( filedata , file_size );
143 data =
new G4String ( filedata , file_size );
148 iss.setstate( std::ios::badbit );
151 if ( data != NULL ) {
155 if (
id ==
"G4NDL" ) {
161 iss.seekg( 0 , std::ios::beg );
165 in->close();
delete in;
172 compfilename +=
".z";
173 std::ifstream* in =
new std::ifstream ( compfilename , std::ios::binary | std::ios::ate );
179 std::ifstream thefData( filename , std::ios::in | std::ios::ate );
180 if ( thefData.good() ) {
186 iss.setstate( std::ios::badbit );
194 G4cout <<
"You are setting a new verbose level for neutron HP package." <<
G4endl;
195 G4cout <<
"the new value will be used in whole of the neutron HP package, i.e., models and cross sections for Capture, Elastic, Fission and Inelastic interaction." <<
G4endl;
201 mDataEvaluation.insert( std::pair < G4String , G4String > ( filename , source ) );
206 G4cout <<
"Data source of this NeutronHP calculation are " <<
G4endl;
207 for ( std::map< G4String , G4String >::iterator
void OpenReactionWhiteBoard()
G4NeutronHPMessenger * messenger
static G4NeutronHPManager * GetInstance()
G4NeutronHPReactionWhiteBoard * GetReactionWhiteBoard()
G4bool SKIP_MISSING_ISOTOPES
void GetDataStream(G4String, std::istringstream &iss)
static G4NeutronHPThreadLocalManager * GetInstance()
G4GLOB_DLL std::ostream G4cout
void register_data_file(G4String, G4String)
static G4NeutronHPManager * instance
G4bool PRODUCE_FISSION_FRAGMENTS
void GetDataStream2(G4String, std::istringstream &iss)
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
void SetVerboseLevel(G4int i)
void OpenReactionWhiteBoard()
G4bool USE_ONLY_PHOTONEVAPORATION
void CloseReactionWhiteBoard()
std::map< G4String, G4String > mDataEvaluation
G4NeutronHPReactionWhiteBoard * GetReactionWhiteBoard()
void CloseReactionWhiteBoard()
G4bool DO_NOT_ADJUST_FINAL_STATE