72 for ( std::map <
G4int , std::map <
G4double , std::vector < E_isoAng* >* >* >::iterator it = incoherentFSs.begin() ; it != incoherentFSs.end() ; it++ )
74 std::map < G4double , std::vector < E_isoAng* >* >::iterator itt;
75 for ( itt = it->second->begin() ; itt != it->second->end() ; itt++ )
77 std::vector< E_isoAng* >::iterator ittt;
78 for ( ittt = itt->second->begin(); ittt != itt->second->end() ; ittt++ )
87 for ( std::map <
G4int , std::map <
G4double , std::vector < std::pair< G4double , G4double >* >* >* >::iterator it = coherentFSs.begin() ; it != coherentFSs.end() ; it++ )
89 std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >::iterator itt;
90 for ( itt = it->second->begin() ; itt != it->second->end() ; itt++ )
92 std::vector < std::pair< G4double , G4double >* >::iterator ittt;
93 for ( ittt = itt->second->begin(); ittt != itt->second->end() ; ittt++ )
102 for ( std::map <
G4int , std::map <
G4double , std::vector < E_P_E_isoAng* >* >* >::iterator it = inelasticFSs.begin() ; it != inelasticFSs.end() ; it++ )
104 std::map < G4double , std::vector < E_P_E_isoAng* >* >::iterator itt;
105 for ( itt = it->second->begin() ; itt != it->second->end() ; itt++ )
107 std::vector < E_P_E_isoAng* >::iterator ittt;
108 for ( ittt = itt->second->begin(); ittt != itt->second->end() ; ittt++ )
110 std::vector < E_isoAng* >::iterator it4;
111 for ( it4 = (*ittt)->vE_isoAngle.begin() ; it4 != (*ittt)->vE_isoAngle.end() ; it4++ )
128 std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* G4NeutronHPThermalScattering::readACoherentFSDATA(
G4String name )
131 std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* aCoherentFSDATA =
new std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >;
137 std::vector< G4double > vBraggE;
140 while ( theChannel >> dummy )
145 std::vector < std::pair< G4double , G4double >* >* anBragE_P =
new std::vector < std::pair< G4double , G4double >* >;
149 for (
G4int i = 0 ; i <
n ; i++ )
153 if ( aCoherentFSDATA->size() == 0 )
156 vBraggE.push_back( Ei );
163 anBragE_P->push_back (
new std::pair < G4double , G4double > ( Ei , Pi ) );
166 aCoherentFSDATA->insert ( std::pair <
G4double , std::vector < std::pair< G4double , G4double >* >* > ( temp , anBragE_P ) );
169 return aCoherentFSDATA;
174 std::map < G4double , std::vector < E_P_E_isoAng* >* >* G4NeutronHPThermalScattering::readAnInelasticFSDATA (
G4String name )
176 std::map < G4double , std::vector < E_P_E_isoAng* >* >* anT_E_P_E_isoAng =
new std::map < G4double , std::vector < E_P_E_isoAng* >* >;
183 while ( theChannel >> dummy )
188 std::vector < E_P_E_isoAng* >* vE_P_E_isoAng =
new std::vector < E_P_E_isoAng* >;
191 for (
G4int i = 0 ; i <
n ; i++ )
193 vE_P_E_isoAng->push_back ( readAnE_P_E_isoAng ( &theChannel ) );
195 anT_E_P_E_isoAng->insert ( std::pair <
G4double , std::vector < E_P_E_isoAng* >* > ( temp , vE_P_E_isoAng ) );
199 return anT_E_P_E_isoAng;
204 E_P_E_isoAng* G4NeutronHPThermalScattering::readAnE_P_E_isoAng( std::istream*
file )
219 for (
G4int i = 0 ; i < aData->
n ; i++ )
226 anE_isoAng->
n = nl - 2;
227 anE_isoAng->
isoAngle.resize( anE_isoAng->
n );
229 aData->
prob.push_back( prob );
231 for (
G4int j = 0 ; j < anE_isoAng->
n ; j++ )
242 for (
G4int i = 0 ; i < aData->
n - 1 ; i++ )
247 total += ( ( aData->
prob[i] ) * dE );
256 std::map < G4double , std::vector < E_isoAng* >* >* G4NeutronHPThermalScattering::readAnIncoherentFSDATA (
G4String name )
258 std::map < G4double , std::vector < E_isoAng* >* >* T_E =
new std::map < G4double , std::vector < E_isoAng* >* >;
265 while ( theChannel >> dummy )
270 std::vector < E_isoAng* >* vE_isoAng =
new std::vector < E_isoAng* >;
273 for (
G4int i = 0 ; i <
n ; i++ )
274 vE_isoAng->push_back ( readAnE_isoAng( &theChannel ) );
275 T_E->insert ( std::pair <
G4double , std::vector < E_isoAng* >* > ( temp , vE_isoAng ) );
284 E_isoAng* G4NeutronHPThermalScattering::readAnE_isoAng( std::istream* file )
303 for (
G4int i = 0 ; i < aData->
n ; i++ )
327 G4bool findThermalElement =
false;
330 for (
G4int i = 0; i <
n ; i++ )
337 if ( getTS_ID( NULL , theElement ) != -1 )
339 ielement = getTS_ID( NULL , theElement );
340 findThermalElement =
true;
343 else if ( getTS_ID( theMaterial , theElement ) != -1 )
345 ielement = getTS_ID( theMaterial , theElement );
346 findThermalElement =
true;
352 if ( findThermalElement ==
true )
364 if ( random <= inelastic/total )
369 std::map < G4double , std::vector< E_P_E_isoAng* >* >::iterator it;
370 std::vector<G4double> v_temp;
372 for ( it = inelasticFSs.find( ielement )->second->begin() ; it != inelasticFSs.find( ielement )->second->end() ; it++ )
374 v_temp.push_back( it->first );
378 std::pair < G4double , G4double > tempLH = find_LH ( aTemp , &v_temp );
382 std::vector< E_P_E_isoAng* >* vNEP_EPM_TL = 0;
383 std::vector< E_P_E_isoAng* >* vNEP_EPM_TH = 0;
385 if ( tempLH.first != 0.0 && tempLH.second != 0.0 )
387 vNEP_EPM_TL = inelasticFSs.find( ielement )->second->find ( tempLH.first/
kelvin )->second;
388 vNEP_EPM_TH = inelasticFSs.find( ielement )->second->find ( tempLH.second/
kelvin )->second;
390 else if ( tempLH.first == 0.0 )
392 std::map < G4double , std::vector< E_P_E_isoAng* >* >::iterator itm;
393 itm = inelasticFSs.find( ielement )->second->begin();
394 vNEP_EPM_TL = itm->second;
396 vNEP_EPM_TH = itm->second;
397 tempLH.first = tempLH.second;
398 tempLH.second = itm->first;
400 else if ( tempLH.second == 0.0 )
402 std::map < G4double , std::vector< E_P_E_isoAng* >* >::iterator itm;
403 itm = inelasticFSs.find( ielement )->second->end();
405 vNEP_EPM_TH = itm->second;
407 vNEP_EPM_TL = itm->second;
408 tempLH.second = tempLH.first;
409 tempLH.first = itm->first;
414 std::pair< G4double , E_isoAng > TL = create_sE_and_EPM_from_pE_and_vE_P_E_isoAng ( rand_for_sE , aTrack.
GetKineticEnergy() , vNEP_EPM_TL );
415 std::pair< G4double , E_isoAng > TH = create_sE_and_EPM_from_pE_and_vE_P_E_isoAng ( rand_for_sE , aTrack.
GetKineticEnergy() , vNEP_EPM_TH );
418 sE = get_linear_interpolated ( aTemp , std::pair < G4double , G4double > ( tempLH.first , TL.first ) , std::pair < G4double , G4double > ( tempLH.second , TH.first ) );
422 if ( TL.second.n == TH.second.n )
425 anE_isoAng.
n = TL.second.n;
426 for (
G4int i=0 ; i < anE_isoAng.
n ; i++ )
429 angle = get_linear_interpolated ( aTemp , std::pair< G4double , G4double > ( tempLH.first , TL.second.isoAngle[ i ] ) , std::pair< G4double , G4double > ( tempLH.second , TH.second.isoAngle[ i ] ) );
430 anE_isoAng.
isoAngle.push_back( angle );
432 mu = getMu( &anE_isoAng );
436 G4HadronicException(__FILE__, __LINE__,
"A problem is found in Thermal Scattering Data! Do not yet supported");
445 else if ( random <= ( inelastic + theXSection->
GetCoherentCrossSection( dp , theElement , theMaterial ) ) / total )
452 std::map < G4double , std::vector< std::pair< G4double , G4double >* >* >::iterator it;
453 std::vector<G4double> v_temp;
455 for ( it = coherentFSs.find( ielement )->second->begin() ; it != coherentFSs.find( ielement )->second->end() ; it++ )
457 v_temp.push_back( it->first );
461 std::pair < G4double , G4double > tempLH = find_LH ( aTemp , &v_temp );
466 std::vector< std::pair< G4double , G4double >* >* pvE_p_TL = NULL;
467 std::vector< std::pair< G4double , G4double >* >* pvE_p_TH = NULL;
469 if ( tempLH.first != 0.0 && tempLH.second != 0.0 )
471 pvE_p_TL = coherentFSs.find( ielement )->second->find ( tempLH.first/
kelvin )->second;
472 pvE_p_TH = coherentFSs.find( ielement )->second->find ( tempLH.first/
kelvin )->second;
474 else if ( tempLH.first == 0.0 )
476 pvE_p_TL = coherentFSs.find( ielement )->second->find ( v_temp[ 0 ] )->second;
477 pvE_p_TH = coherentFSs.find( ielement )->second->find ( v_temp[ 1 ] )->second;
478 tempLH.first = tempLH.second;
479 tempLH.second = v_temp[ 1 ];
481 else if ( tempLH.second == 0.0 )
483 pvE_p_TL = coherentFSs.find( ielement )->second->find ( v_temp.back() )->
second;
484 std::vector< G4double >::iterator itv;
488 pvE_p_TL = coherentFSs.find( ielement )->second->find ( *itv )->second;
489 tempLH.second = tempLH.first;
495 G4HadronicException(__FILE__, __LINE__,
"A problem is found in Thermal Scattering Data! Unexpected temperature values in data");
498 std::vector< G4double > vE_T;
499 std::vector< G4double > vp_T;
501 G4int n1 = pvE_p_TL->size();
504 for (
G4int i=1 ; i < n1 ; i++ )
506 if ( (*pvE_p_TL)[i]->
first != (*pvE_p_TH)[i]->
first )
G4HadronicException(__FILE__, __LINE__,
"A problem is found in Thermal Scattering Data!");
507 vE_T.push_back ( (*pvE_p_TL)[i]->
first );
508 vp_T.push_back ( get_linear_interpolated ( aTemp , std::pair< G4double , G4double > ( tempLH.first , (*pvE_p_TL)[i]->second ) , std::pair< G4double , G4double > ( tempLH.second , (*pvE_p_TL)[i]->second ) ) );
512 for (
G4int i = 1 ; i <
n ; i++ )
514 if ( E/eV < vE_T[ i ] )
524 for (
G4int i = 1 ; i < j ; i++ )
526 G4double Pi = vp_T[ i ] / vp_T[ j ];
527 if ( rand_for_mu < Pi )
539 if ( mu < -1.0 ) mu = -1.0;
551 std::map < G4double , std::vector < E_isoAng* >* >::iterator it;
552 std::vector<G4double> v_temp;
554 for ( it = incoherentFSs.find( ielement )->second->begin() ; it != incoherentFSs.find( ielement )->second->end() ; it++ )
556 v_temp.push_back( it->first );
560 std::pair < G4double , G4double > tempLH = find_LH ( aTemp , &v_temp );
569 if ( tempLH.first != 0.0 && tempLH.second != 0.0 )
571 anEPM_TL_E = create_E_isoAng_from_energy ( aTrack.
GetKineticEnergy() , incoherentFSs.find( ielement )->second->find ( tempLH.first/
kelvin )->second );
572 anEPM_TH_E = create_E_isoAng_from_energy ( aTrack.
GetKineticEnergy() , incoherentFSs.find( ielement )->second->find ( tempLH.second/
kelvin )->second );
574 else if ( tempLH.first == 0.0 )
576 anEPM_TL_E = create_E_isoAng_from_energy ( aTrack.
GetKineticEnergy() , incoherentFSs.find( ielement )->second->find ( v_temp[ 0 ] )->second );
577 anEPM_TH_E = create_E_isoAng_from_energy ( aTrack.
GetKineticEnergy() , incoherentFSs.find( ielement )->second->find ( v_temp[ 1 ] )->second );
578 tempLH.first = tempLH.second;
579 tempLH.second = v_temp[ 1 ];
581 else if ( tempLH.second == 0.0 )
583 anEPM_TH_E = create_E_isoAng_from_energy ( aTrack.
GetKineticEnergy() , incoherentFSs.find( ielement )->second->find ( v_temp.back() )->
second );
584 std::vector< G4double >::iterator itv;
588 anEPM_TL_E = create_E_isoAng_from_energy ( aTrack.
GetKineticEnergy() , incoherentFSs.find( ielement )->second->find ( *itv )->second );
589 tempLH.second = tempLH.first;
597 if ( anEPM_TL_E.
n == anEPM_TH_E.
n )
599 anEPM_T_E.
n = anEPM_TL_E.
n;
600 for (
G4int i=0 ; i < anEPM_TL_E.
n ; i++ )
603 angle = get_linear_interpolated ( aTemp , std::pair< G4double , G4double > ( tempLH.first , anEPM_TL_E.
isoAngle[ i ] ) , std::pair< G4double , G4double > ( tempLH.second , anEPM_TH_E.
isoAngle[ i ] ) );
604 anEPM_T_E.
isoAngle.push_back( angle );
606 mu = getMu ( &anEPM_T_E );
610 G4HadronicException(__FILE__, __LINE__,
"A problem is found in Thermal Scattering Data! Do not yet supported");
644 G4double mu_l = (*anEPM).isoAngle[ in-1 ];
646 result = ( mu_h - mu_l ) * ( random * ( (*anEPM).n ) -
in ) + mu_l;
651 G4double D = ( (*anEPM).isoAngle[ 0 ] - ( -1 ) ) + ( 1 - (*anEPM).isoAngle[ (*anEPM).n - 1 ] );
652 G4double ratio = ( (*anEPM).isoAngle[ 0 ] - ( -1 ) ) / D;
656 G4double mu_h = (*anEPM).isoAngle[ 0 ];
657 result = ( mu_h - mu_l ) * x + mu_l;
661 G4double mu_l = (*anEPM).isoAngle[ (*anEPM).n - 1 ];
663 result = ( mu_h - mu_l ) * x + mu_l;
671 std::pair < G4double , G4double > G4NeutronHPThermalScattering::find_LH (
G4double x , std::vector< G4double >* aVector )
675 std::vector< G4double >::iterator it;
676 for ( it = aVector->begin() ; it != aVector->end() ; it++ )
681 if ( it != aVector->begin() )
696 return std::pair < G4double , G4double > ( L , H );
701 G4double G4NeutronHPThermalScattering::get_linear_interpolated (
G4double x , std::pair< G4double , G4double > Low , std::pair< G4double , G4double > High )
704 if ( High.first - Low.first != 0 )
705 y = ( High.second - Low.second ) / ( High.first - Low.first ) * ( x - Low.first ) + Low.second;
707 G4cout <<
"G4NeutronHPThermalScattering liner interpolation err!!" <<
G4endl;
714 E_isoAng G4NeutronHPThermalScattering::create_E_isoAng_from_energy (
G4double energy , std::vector< E_isoAng* >* vEPM )
718 std::vector< E_isoAng* >::iterator iv;
720 std::vector< G4double > v_e;
722 for ( iv = vEPM->begin() ; iv != vEPM->end() ; iv++ )
723 v_e.push_back ( (*iv)->energy );
725 std::pair < G4double , G4double > energyLH = find_LH ( energy , &v_e );
731 if ( energyLH.first != 0.0 && energyLH.second != 0.0 )
733 for ( iv = vEPM->begin() ; iv != vEPM->end() ; iv++ )
735 if ( energyLH.first == (*iv)->energy )
742 else if ( energyLH.first == 0.0 )
744 panEPM_T_EL = (*vEPM)[0];
745 panEPM_T_EH = (*vEPM)[1];
747 else if ( energyLH.second == 0.0 )
749 panEPM_T_EH = (*vEPM).back();
756 if ( panEPM_T_EL->
n == panEPM_T_EH->
n )
759 anEPM_T_E.
n = panEPM_T_EL->
n;
761 for (
G4int i=0 ; i < panEPM_T_EL->
n ; i++ )
764 angle = get_linear_interpolated ( energy , std::pair< G4double , G4double > ( energyLH.first , panEPM_T_EL->
isoAngle[ i ] ) , std::pair< G4double , G4double > ( energyLH.second , panEPM_T_EH->
isoAngle[ i ] ) );
765 anEPM_T_E.
isoAngle.push_back( angle );
770 G4cout <<
"G4NeutronHPThermalScattering Do not Suuport yet." <<
G4endl;
784 G4int n = anE_P_E_isoAng->
n;
804 for (
G4int i = 0 ; i < n-1 ; i++ )
809 sum_p += ( ( anE_P_E_isoAng->
prob[i] ) * dE );
811 if ( random <= sum_p/total )
813 secondary_energy = get_linear_interpolated ( random , std::pair < G4double , G4double > ( sum_p_L/total , E_L ) , std::pair < G4double , G4double > ( sum_p/total , E_H ) );
814 secondary_energy = secondary_energy*
eV;
820 return secondary_energy;
825 std::pair< G4double , E_isoAng > G4NeutronHPThermalScattering::create_sE_and_EPM_from_pE_and_vE_P_E_isoAng (
G4double rand_for_sE ,
G4double pE , std::vector < E_P_E_isoAng* >* vNEP_EPM )
828 std::map< G4double , G4int > map_energy;
830 std::vector< G4double > v_energy;
832 std::vector< E_P_E_isoAng* >::iterator itv;
834 for ( itv = vNEP_EPM->begin(); itv != vNEP_EPM->end(); itv++ )
836 v_energy.push_back( (*itv)->energy );
837 map_energy.insert( std::pair < G4double , G4int > ( (*itv)->energy , i ) );
841 std::pair < G4double , G4double > energyLH = find_LH ( pE , &v_energy );
846 if ( energyLH.first != 0.0 && energyLH.second != 0.0 )
848 pE_P_E_isoAng_EL = (*vNEP_EPM)[ map_energy.find ( energyLH.first )->second ];
849 pE_P_E_isoAng_EH = (*vNEP_EPM)[ map_energy.find ( energyLH.second )->second ];
851 else if ( energyLH.first == 0.0 )
853 pE_P_E_isoAng_EL = (*vNEP_EPM)[ 0 ];
854 pE_P_E_isoAng_EH = (*vNEP_EPM)[ 1 ];
856 if ( energyLH.second == 0.0 )
858 pE_P_E_isoAng_EH = (*vNEP_EPM).back();
859 itv = vNEP_EPM->end();
862 pE_P_E_isoAng_EL = *itv;
871 sE_L = get_secondary_energy_from_E_P_E_isoAng ( rand_for_sE , pE_P_E_isoAng_EL );
872 sE_H = get_secondary_energy_from_E_P_E_isoAng ( rand_for_sE , pE_P_E_isoAng_EH );
874 sE = get_linear_interpolated ( pE , std::pair < G4double , G4double > ( energyLH.first , sE_L ) , std::pair < G4double , G4double > ( energyLH.second , sE_H ) );
877 E_isoAng E_isoAng_L = create_E_isoAng_from_energy ( sE , &(pE_P_E_isoAng_EL->
vE_isoAngle) );
878 E_isoAng E_isoAng_H = create_E_isoAng_from_energy ( sE , &(pE_P_E_isoAng_EH->
vE_isoAngle) );
881 if ( E_isoAng_L.
n == E_isoAng_H.
n )
883 anE_isoAng.
n = E_isoAng_L.
n;
884 for (
G4int j=0 ; j < anE_isoAng.
n ; j++ )
887 angle = get_linear_interpolated ( sE , std::pair< G4double , G4double > ( sE_L , E_isoAng_L.
isoAngle[ j ] ) , std::pair< G4double , G4double > ( sE_H , E_isoAng_H.
isoAngle[ j ] ) );
888 anE_isoAng.
isoAngle.push_back( angle );
898 return std::pair< G4double , E_isoAng >( sE , anE_isoAng);
901 void G4NeutronHPThermalScattering::buildPhysicsTable()
905 std::map < G4String , G4int > co_dic;
910 for (
size_t i = 0 ; i < numberOfMaterials ; i++ )
914 for (
size_t j = 0 ; j < numberOfElements ; j++ )
919 G4int ts_ID_of_this_geometry;
921 if ( co_dic.find ( ts_ndl_name ) != co_dic.end() )
923 ts_ID_of_this_geometry = co_dic.find ( ts_ndl_name ) ->
second;
927 ts_ID_of_this_geometry = co_dic.size();
928 co_dic.insert ( std::pair< G4String , G4int >( ts_ndl_name , ts_ID_of_this_geometry ) );
935 dic.insert( std::pair < std::pair < G4Material* , const G4Element* > ,
G4int > ( std::pair < G4Material* , const G4Element* > ( material , element ) , ts_ID_of_this_geometry ) );
944 for (
size_t i = 0 ; i < numberOfElements ; i++ )
946 const G4Element* element = (*theElementTable)[i];
951 G4int ts_ID_of_this_geometry;
953 if ( co_dic.find ( ts_ndl_name ) != co_dic.end() )
955 ts_ID_of_this_geometry = co_dic.find ( ts_ndl_name ) ->
second;
959 ts_ID_of_this_geometry = co_dic.size();
960 co_dic.insert ( std::pair< G4String , G4int >( ts_ndl_name , ts_ID_of_this_geometry ) );
967 dic.insert( std::pair < std::pair < const G4Material* , const G4Element* > ,
G4int > ( std::pair < const G4Material* , const G4Element* > ( (
G4Material*)NULL , element ) , ts_ID_of_this_geometry ) );
973 G4cout <<
"Neutron HP Thermal Scattering: Following material-element pairs or elements are registered." <<
G4endl;
974 for ( std::map < std::pair < const G4Material* , const G4Element* > ,
G4int >::iterator it = dic.begin() ; it != dic.end() ; it++ )
976 if ( it->first.first != NULL )
978 G4cout <<
"Material " << it->first.first->GetName() <<
" - Element " << it->first.second->GetName() <<
", internal thermal scattering id " << it->second <<
G4endl;
982 G4cout <<
"Element " << it->first.second->GetName() <<
", internal thermal scattering id " << it->second <<
G4endl;
990 if ( !getenv(
"G4NEUTRONHPDATA" ) )
991 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
992 dirName = getenv(
"G4NEUTRONHPDATA" );
998 for ( std::map < G4String , G4int >::iterator it = co_dic.begin() ; it != co_dic.end() ; it++ )
1001 G4int ts_ID = it->second;
1004 G4String fsName =
"/ThermalScattering/Coherent/FS/";
1005 G4String fileName = dirName + fsName + tsndlName;
1006 coherentFSs.insert ( std::pair <
G4int , std::map <
G4double , std::vector < std::pair< G4double , G4double >* >* >* > ( ts_ID , readACoherentFSDATA( fileName ) ) );
1009 fsName =
"/ThermalScattering/Incoherent/FS/";
1010 fileName = dirName + fsName + tsndlName;
1011 incoherentFSs.insert ( std::pair <
G4int , std::map <
G4double , std::vector < E_isoAng* >* >* > ( ts_ID , readAnIncoherentFSDATA( fileName ) ) );
1014 fsName =
"/ThermalScattering/Inelastic/FS/";
1015 fileName = dirName + fsName + tsndlName;
1016 inelasticFSs.insert ( std::pair <
G4int , std::map <
G4double , std::vector < E_P_E_isoAng* >* >* > ( ts_ID , readAnInelasticFSDATA( fileName ) ) );
1026 if ( dic.find( std::pair < const G4Material* , const G4Element* > ( material , element ) ) != dic.end() )
1027 result = dic.find( std::pair < const G4Material* , const G4Element* > ( material , element ) )->second;
1041 buildPhysicsTable();
std::vector< G4double > isoAngle
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static G4NeutronHPManager * GetInstance()
G4double GetCoherentCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
const G4String & GetName() const
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
G4double G4NeutronHPJENDLHEData::G4double result
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
void GetDataStream(G4String, std::istringstream &iss)
const G4Element * GetElement(G4int iel) const
std::vector< E_isoAng * > vE_isoAngle
void SetMinEnergy(G4double anEnergy)
void AddThermalElement(G4String, G4String)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
static G4Neutron * Neutron()
static size_t GetNumberOfMaterials()
const G4LorentzVector & Get4Momentum() const
~G4NeutronHPThermalScattering()
void AddUserThermalScatteringFile(G4String, G4String)
void BuildPhysicsTable(const G4ParticleDefinition &)
G4double GetCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
void SetEnergyChange(G4double anEnergy)
G4double total(Particle const *const p1, Particle const *const p2)
virtual const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const
G4double GetInelasticCrossSection(const G4DynamicParticle *, const G4Element *, const G4Material *)
G4String GetTS_NDL_Name(G4String nameG4Element)
void SetMaxEnergy(const G4double anEnergy)
G4HadFinalState theParticleChange
G4double GetTemperature() const
const G4Material * GetMaterial() const
size_t GetNumberOfElements() const
std::vector< G4Element * > G4ElementTable
const G4String & GetName() const
G4NeutronHPThermalScattering()
static G4ElementTable * GetElementTable()
void AddUserThermalScatteringFile(G4String, G4String)
void SetMomentumChange(const G4ThreeVector &aV)
G4bool IsThisThermalElement(G4String)
std::vector< G4double > prob