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");
G4DLLIMPORT std::ostream G4cout
void set(double x, double y, double z)
G4double GetEnergyChange() const
void SetStatusChange(G4HadFinalStateStatus aS)
const G4LorentzRotation & GetTrafoToLab() const
void SetWeightChange(G4double aW)
G4HadFinalStateStatus GetStatusChange() const
void SetTrafoToLab(const G4LorentzRotation &aT)
G4double GetLocalEnergyDeposit() const
G4int GetNumberOfSecondaries() const
const G4ThreeVector & GetMomentumChange() const
void AddSecondary(G4DynamicParticle *aP)
void AddSecondaries(const std::vector< G4HadSecondary > &addSecs)
void SetEnergyChange(G4double anEnergy)
G4HadSecondary * GetSecondary(size_t i)
void SetMomentumChange(const G4ThreeVector &aV)
G4double GetWeightChange() const
void SecondariesAreStale()
void SetLocalEnergyDeposit(G4double aE)