75 for (i = 0; i < nEnergy; ++i) {
78 if (theAngular[i].GetEnergy() > anEnergy)
break;
80 if (theAngular[i].GetEnergy() >= anEnergy)
break;
92 result = theAngular[0].
Sample(anEnergy, massCode, targetMass, theAngularRep, theInterpolation);
110 result = theAngular[it].
Sample(anEnergy, massCode, targetMass, theAngularRep, theInterpolation);
114 if (fCacheAngular.
Get() ==
nullptr) {
116 fCacheAngular.
Put(angpar);
120 (theAngular[it - 1]), (theAngular[it]));
126 fCacheAngular.
Get()->
Sample(anEnergy, massCode, targetMass, theAngularRep, theInterpolation);
G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass, G4int angularRep, G4int interpol)
void PrepareTableInterpolation()
void Init(std::istream &aDataFile, const G4ParticleDefinition *projectile)
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)
G4ParticleHPContEnergyAngular(const G4ParticleDefinition *proj)
G4double MeanEnergyOfThisInteraction() override
void Init(std::istream &aDataFile) override
G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass) override
~G4ParticleHPContEnergyAngular() override
void ClearHistories() override
G4ReactionProduct * GetTarget() const
G4ReactionProduct * GetProjectileRP() const