43 for (i = 0; i < nEnergy; i++) {
46 if(theAngular[i].GetEnergy() > anEnergy)
break;
48 if(theAngular[i].GetEnergy() >= anEnergy)
break;
57 result = theAngular[0].
Sample(anEnergy, massCode, targetMass,
58 theAngularRep, theInterpolation);
76 result = theAngular[it].
Sample(anEnergy, massCode, targetMass,
77 theAngularRep, theInterpolation);
80 if (fCacheAngular.
Get() == NULL) {
82 fCacheAngular.
Put(angpar);
86 (theAngular[it-1]), (theAngular[it]) );
91 result = fCacheAngular.
Get()->
Sample(anEnergy, massCode, targetMass,
92 theAngularRep, theInterpolation);
104 if (currentMeanEnergy.
Get() < -1) {
106 "G4ParticleHPContEnergyAngular: Logical error in Product class");
108 result = currentMeanEnergy.
Get();
110 currentMeanEnergy.
Put(-2);
117 if (theAngular!= NULL) {
void Put(const value_type &val) const
G4InterpolationScheme GetScheme(G4int index) const
G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass, G4int angularRep, G4int interpol)
void SetPrimary(G4ReactionProduct *aPrimary)
void SetTarget(G4ReactionProduct *aTarget)
void SetInterpolation(G4int theInterpolation)
G4double MeanEnergyOfThisInteraction()
void SetTargetCode(G4double aTargetCode)
void BuildByInterpolation(G4double anEnergy, G4InterpolationScheme aScheme, G4ParticleHPContAngularPar &store1, G4ParticleHPContAngularPar &store2)
G4double MeanEnergyOfThisInteraction()
G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass)
G4ReactionProduct * GetProjectileRP()
G4ReactionProduct * GetTarget()