Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/processes/hadronic/util/include/G4ReactionProduct.hh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ class G4ReactionProduct
inline G4bool GetMayBeKilled() const
{ return MayBeKilled; }

void SetZero();

void Lorentz( const G4ReactionProduct &p1, const G4ReactionProduct &p2 );

G4double Angle( const G4ReactionProduct &p ) const;
Expand Down
17 changes: 17 additions & 0 deletions source/processes/hadronic/util/src/G4ReactionProduct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,23 @@ void G4ReactionProduct::SetMomentum( const G4double z )
momentum.setZ( z );
}

void G4ReactionProduct::SetZero()
{
SetMomentum( 0.0, 0.0, 0.0 );
totalEnergy = 0.0;
kineticEnergy = 0.0;
mass = 0.0;
timeOfFlight = 0.0;
side = 0;
theCreatorModel = -1;
theParentResonanceDef = nullptr;
theParentResonanceID = 0;
NewlyAdded = false;
SetPositionInNucleus( 0.0, 0.0, 0.0 );
formationTime = 0.0;
hasInitialStateParton = false;
}

void G4ReactionProduct::Lorentz(
const G4ReactionProduct &p1, const G4ReactionProduct &p2 )
{
Expand Down