32 #ifndef G4ParticleHPContAngularPar_h
33 #define G4ParticleHPContAngularPar_h 1
56 toBeCached():fresh(
true),currentMeanEnergy(-2.0),remaining_energy(0.0),theTargetCode(-1.0),
theTarget(NULL),thePrimary(NULL){};
71 nDiscreteEnergies = -1;
72 nAngularParameters = -1;
81 if(theAngular!=0)
delete [] theAngular;
90 if( getenv(
"G4PHPTEST") )
G4cout <<
this <<
" G4ParticleHPContAngularPar::GetEnergy " << theEnergy <<
" nE " << nEnergies <<
G4endl;
95 fCache.
Get()->thePrimary = aPrimary;
100 fCache.
Get()->theTarget = aTarget;
107 theManager.
Init(theInterpolation, nEnergies);
119 if(fCache.
Get()->currentMeanEnergy<-1)
126 result = fCache.
Get()->currentMeanEnergy;
128 fCache.
Get()->currentMeanEnergy = -2;
138 return nDiscreteEnergies;
142 return theEnergiesTransformed;
146 return theEnergiesTransformed.size();
158 return theDiscreteEnergiesOwn;
172 G4int nDiscreteEnergies;
174 G4int nAngularParameters;
192 if ( fCache.
Get() == NULL ) cacheInit();
193 fCache.
Get()->fresh =
true; };
199 toBeCached* val =
new toBeCached;
200 val->currentMeanEnergy = -2;
201 val->remaining_energy = 0;
214 std::set<G4double> theEnergiesTransformed;
215 std::set<G4double> theDiscreteEnergies;
216 std::map<G4double,G4int> theDiscreteEnergiesOwn;
G4double G4ParticleHPJENDLHEData::G4double result
std::map< G4double, G4int > GetDiscreteEnergiesOwn() const
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 Init(G4int aScheme, G4int aRange)
G4double GetMinEner() const
void SetInterpolation(G4int theInterpolation)
G4double MeanEnergyOfThisInteraction()
G4ParticleHPContAngularPar()
std::set< G4double > GetEnergiesTransformed() const
G4GLOB_DLL std::ostream G4cout
void Init(std::istream &aDataFile, G4ParticleDefinition *projectile)
G4int GetNEnergiesTransformed() const
G4ParticleHPList * GetAngDataList() const
G4ErrorTarget * theTarget
void SetPrimary(G4ReactionProduct *aPrimary)
G4double GetMaxEner() const
G4int GetNDiscreteEnergies() const
void PrepareTableInterpolation(const G4ParticleHPContAngularPar *angularPrev)
void Put(const value_type &val) const
void SetTarget(G4ReactionProduct *aTarget)
G4int GetNEnergies() const
~G4ParticleHPContAngularPar()