32#ifndef G4ParticleHPContAngularPar_h
33#define G4ParticleHPContAngularPar_h 1
60 : fresh(
true),currentMeanEnergy(-2.0),remaining_energy(0.0),
61 theTargetCode(-1.0),theTarget(0),thePrimary(0) {}
76 nDiscreteEnergies = -1;
77 nAngularParameters = -1;
86 if (theAngular !=0 )
delete [] theAngular;
87 if (fCache.
Get() != 0)
delete fCache.
Get();
97 if( std::getenv(
"G4PHPTEST") )
98 G4cout <<
this <<
" G4ParticleHPContAngularPar::GetEnergy "
99 << theEnergy <<
" nE " << nEnergies <<
G4endl;
105 fCache.
Get()->thePrimary = aPrimary;
110 fCache.
Get()->theTarget = aTarget;
115 fCache.
Get()->theTargetCode = aTargetCode;
120 theManager.
Init(theInterpolation, nEnergies);
133 if(fCache.
Get()->currentMeanEnergy<-1)
140 result = fCache.
Get()->currentMeanEnergy;
142 fCache.
Get()->currentMeanEnergy = -2;
152 return nDiscreteEnergies;
156 return theEnergiesTransformed;
160 return theEnergiesTransformed.size();
172 return theDiscreteEnergiesOwn;
181 if ( fCache.
Get() == 0 ) cacheInit();
182 fCache.
Get()->fresh =
true;
194 G4int nDiscreteEnergies;
196 G4int nAngularParameters;
209 toBeCached* val =
new toBeCached;
210 val->currentMeanEnergy = -2;
211 val->remaining_energy = 0;
224 std::set<G4double> theEnergiesTransformed;
225 std::set<G4double> theDiscreteEnergies;
226 std::map<G4double,G4int> theDiscreteEnergiesOwn;
G4GLOB_DLL std::ostream G4cout
void Put(const value_type &val) const
void Init(G4int aScheme, G4int aRange)
G4ReactionProduct * Sample(G4double anEnergy, G4double massCode, G4double mass, G4int angularRep, G4int interpol)
G4ParticleHPList * GetAngDataList() const
void PrepareTableInterpolation(const G4ParticleHPContAngularPar *angularPrev)
G4int GetNEnergies() const
void Init(std::istream &aDataFile, G4ParticleDefinition *projectile)
std::map< G4double, G4int > GetDiscreteEnergiesOwn() const
void SetPrimary(G4ReactionProduct *aPrimary)
void SetTarget(G4ReactionProduct *aTarget)
void SetInterpolation(G4int theInterpolation)
G4int GetNDiscreteEnergies() const
~G4ParticleHPContAngularPar()
G4double MeanEnergyOfThisInteraction()
std::set< G4double > GetEnergiesTransformed() const
void SetTargetCode(G4double aTargetCode)
G4double GetMinEner() const
G4ParticleHPContAngularPar()
void BuildByInterpolation(G4double anEnergy, G4InterpolationScheme aScheme, G4ParticleHPContAngularPar &store1, G4ParticleHPContAngularPar &store2)
G4double GetMaxEner() const
G4int GetNEnergiesTransformed() const