#include <G4ParticleHPDeExGammas.hh>
Definition at line 43 of file G4ParticleHPDeExGammas.hh.
◆ G4ParticleHPDeExGammas()
G4ParticleHPDeExGammas::G4ParticleHPDeExGammas |
( |
| ) |
|
|
inline |
◆ ~G4ParticleHPDeExGammas()
G4ParticleHPDeExGammas::~G4ParticleHPDeExGammas |
( |
| ) |
|
|
inline |
◆ GetDecayGammas()
Definition at line 63 of file G4ParticleHPDeExGammas.hh.
65 if(aLevel>
nLevels-1 || aLevel<0)
return 0;
73 for(i=0; i<theResult->size(); i++)
76 *theCurrent = *(theResult->operator[](i));
77 delete theResult->operator[](i);
79 G4double theta = std::acos(costheta);
83 G4ThreeVector temp(en*sinth*std::cos(phi), en*sinth*std::sin(phi), en*costheta );
85 result->push_back(theCurrent);
G4ReactionProductVector * GetDecayGammas(G4int aLevel)
void SetMomentum(const G4double x, const G4double y, const G4double z)
std::vector< G4ReactionProduct * > G4ReactionProductVector
G4ParticleHPLevel * theLevels
std::vector< G4DynamicParticle * > G4DynamicParticleVector
G4double GetTotalMomentum() const
static const double twopi
◆ GetLevel()
◆ GetLevelEnergy()
◆ GetNumberOfLevels()
G4int G4ParticleHPDeExGammas::GetNumberOfLevels |
( |
| ) |
|
|
inline |
◆ Init()
void G4ParticleHPDeExGammas::Init |
( |
std::istream & |
aDataFile | ) |
|
Definition at line 37 of file G4ParticleHPDeExGammas.cc.
46 if(!theNew->
Init(aDataFile))
57 for(
G4int i=0;i<nGammas;i++) buffer[i] = theGammas[i];
61 theGammas[nGammas] = theNew;
73 for(i=0; i<nGammas; i++)
76 if(std::abs(currentE-nextE)>epsilon)
nLevels++;
91 G4int levelCounter=-1;
92 for(i=0; i<nGammas; i++)
95 if(std::abs(currentE-nextE)>epsilon)
115 G4double levelE, gammaE, currentLevelE;
117 for(i=0; i<nGammas; i++)
122 min = currentLevelE-gammaE-
epsilon;
126 if(std::abs(currentLevelE-(levelE+gammaE))<min)
128 min = std::abs(currentLevelE-(levelE+gammaE));
G4double GetLevelEnergy()
void SetNumberOfGammas(G4int aGammas)
G4double GetLevelEnergy()
G4bool Init(std::istream &aDataFile)
void SetNext(G4ParticleHPLevel *aLevel)
G4ParticleHPLevel * theLevels
void SetGamma(G4int i, G4ParticleHPGamma *aGamma)
G4double GetGammaEnergy()
G4double GetLevelEnergy(G4int aLevel)
double epsilon(double density, double temperature)
◆ levelSize
G4int* G4ParticleHPDeExGammas::levelSize |
|
private |
◆ levelStart
G4int* G4ParticleHPDeExGammas::levelStart |
|
private |
◆ nLevels
G4int G4ParticleHPDeExGammas::nLevels |
|
private |
◆ theLevels
The documentation for this class was generated from the following files: