29 #ifndef G4ParticleHPDeExGammas_h
30 #define G4ParticleHPDeExGammas_h 1
56 if(levelStart!=0)
delete [] levelStart;
57 if(levelSize!=0)
delete [] levelSize;
58 if(theLevels!=0)
delete [] theLevels;
61 void Init(std::istream & aDataFile);
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);
93 if(getenv(
"G4PHPTEST"))
G4cout <<
this <<
" GetLEVEL " << i <<
" n " << nLevels <<
G4endl;
94 if(i>nLevels-1)
return 0;
102 if(aLevel>nLevels-1 || aLevel<0)
return 0;
G4double G4ParticleHPJENDLHEData::G4double result
G4ReactionProductVector * GetDecayGammas(G4int aLevel)
G4double GetTotalMomentum() const
G4double GetLevelEnergy()
void SetMomentum(const G4double x, const G4double y, const G4double z)
~G4ParticleHPDeExGammas()
std::vector< G4ReactionProduct * > G4ReactionProductVector
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfLevels()
G4ParticleHPLevel * GetLevel(G4int i)
std::vector< G4DynamicParticle * > G4DynamicParticleVector
void Init(std::istream &aDataFile)
G4double GetLevelEnergy(G4int aLevel)
static constexpr double twopi