Warning, file /include/Geant4/G4ParticleHPContEnergyAngular.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef G4ParticleHPContEnergyAngular_h
0034 #define G4ParticleHPContEnergyAngular_h 1
0035
0036 #include "G4Cache.hh"
0037 #include "G4InterpolationManager.hh"
0038 #include "G4ParticleHPContAngularPar.hh"
0039 #include "G4VParticleHPEnergyAngular.hh"
0040 #include "G4ios.hh"
0041 #include "globals.hh"
0042
0043 #include <fstream>
0044
0045 class G4ParticleDefinition;
0046
0047 class G4ParticleHPContEnergyAngular : public G4VParticleHPEnergyAngular
0048 {
0049 public:
0050
0051 G4ParticleHPContEnergyAngular(const G4ParticleDefinition* proj);
0052
0053 ~G4ParticleHPContEnergyAngular() override;
0054
0055 void Init(std::istream& aDataFile) override;
0056
0057 G4double MeanEnergyOfThisInteraction() override;
0058 G4ReactionProduct* Sample(G4double anEnergy, G4double massCode, G4double mass) override;
0059 void ClearHistories() override;
0060
0061 G4ParticleHPContEnergyAngular(G4ParticleHPContEnergyAngular&) = delete;
0062 G4ParticleHPContEnergyAngular& operator=
0063 (const G4ParticleHPContEnergyAngular& right) = delete;
0064
0065 private:
0066 G4double theTargetCode{-1};
0067 G4int theAngularRep{-1};
0068 G4int nEnergy{-1};
0069 G4int theInterpolation{-1};
0070
0071 G4InterpolationManager theManager;
0072 G4ParticleHPContAngularPar* theAngular;
0073
0074 G4Cache<G4double> currentMeanEnergy;
0075 G4Cache<G4ParticleHPContAngularPar*> fCacheAngular;
0076 const G4ParticleDefinition* theProjectile;
0077 };
0078
0079 #endif