41 for(i=0;i<nEnergy;i++)
45 if(theAngular[i].GetEnergy()>anEnergy)
break;
47 if(theAngular[i].GetEnergy()>=anEnergy)
break;
50 if( getenv(
"G4PHPTEST") )
G4cout << i <<
" G4ParticleHPContEnergyAngular dataE " << theAngular[i].
GetEnergy() <<
" > " << anEnergy <<
" it_theAngular " << it <<
" interpolation " << theInterpolation <<
G4endl;
57 result = theAngular[0].
Sample(anEnergy, massCode, targetMass,
58 theAngularRep, theInterpolation);
78 result = theAngular[it].
Sample(anEnergy, massCode, targetMass,
79 theAngularRep, theInterpolation);
82 if( getenv(
"G4PHPTEST") )
G4cout << i <<
" G4ParticleHPContEnergyAngular To BUILDBYINTERPOLATION " << it <<
" : " << theAngular[it].
GetEnergy()<<
" , " << theAngular[it].
GetNEnergies() <<
" " << it-1 <<
" : " << theAngular[it-1].
GetEnergy()<<
" : " << theAngular[it-1].
GetNEnergies() <<
G4endl;
92 result = angular->
Sample(anEnergy, massCode, targetMass,
93 theAngularRep, theInterpolation);
G4double G4ParticleHPJENDLHEData::G4double result
void SetTargetCode(G4double aTargetCode)
G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass, G4int angularRep, G4int interpol)
void BuildByInterpolation(G4double anEnergy, G4InterpolationScheme aScheme, G4ParticleHPContAngularPar &store1, G4ParticleHPContAngularPar &store2)
void SetInterpolation(G4int theInterpolation)
G4double MeanEnergyOfThisInteraction()
G4GLOB_DLL std::ostream G4cout
G4InterpolationScheme GetScheme(G4int index) const
void SetPrimary(G4ReactionProduct *aPrimary)
G4ReactionProduct * GetProjectileRP()
void Put(const value_type &val) const
G4ReactionProduct * GetTarget()
void SetTarget(G4ReactionProduct *aTarget)
G4double MeanEnergyOfThisInteraction()
G4int GetNEnergies() const