36 : theDirection(0,0,1), theEnergy(-1), theStat(
isAlive),
37 theW(1.), theEDep(0.) {}
47 std::cout <<
"Final state energy was: E = "<<theEnergy<<
G4endl;
60 theDirection.
set(x,y,z);
61 if(std::fabs(theDirection.
mag()-1)>0.001)
63 G4cout <<
"We have negative theDirection.mag() = "<<theDirection.
mag()<<
G4endl;
64 throw G4HadronicException(__FILE__, __LINE__,
"G4HadFinalState: fatal - negative direction.mag().");
78 theSecs.insert(theSecs.end(),addSecs.begin(),addSecs.end());
91 theDirection.
set(0,0,1);
114 "Trying direct access to secondary beyond end of list");
124 "Trying direct access to secondary beyond end of list");
void set(double x, double y, double z)
G4double GetWeightChange() const
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)
G4HadSecondary * GetSecondary(size_t i)
G4double GetEnergyChange() const
void SecondariesAreStale()
void SetStatusChange(G4HadFinalStateStatus aS)
void SetTrafoToLab(const G4LorentzRotation &aT)
G4GLOB_DLL std::ostream G4cout
void SetWeightChange(G4double aW)
void SetEnergyChange(G4double anEnergy)
const G4ThreeVector & GetMomentumChange() const
void SetLocalEnergyDeposit(G4double aE)
void SetMomentumChange(const G4ThreeVector &aV)
G4int GetNumberOfSecondaries() const
void AddSecondary(G4DynamicParticle *aP)
G4double GetLocalEnergyDeposit() const
G4HadFinalStateStatus GetStatusChange() const
const G4LorentzRotation & GetTrafoToLab() const