Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ReactionKinematics.hh,v 2.1 1998/07/12 03:07:47 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file --- Copyright CERN 1995
|
||||
// CERN Geneva Switzerland
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// ------------ G4ReactionDynamics::TwoBody ------
|
||||
// new inline method BreakupMomentum
|
||||
// new method TwoBodyScattering
|
||||
// by Christian V"olcker (CERN-Munich), August 1997
|
||||
// E-mail: Christian.Volcker@cern.ch
|
||||
// ************************************************************
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4ReactionKinematics_h
|
||||
#define G4ReactionKinematics_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4VRestProcess.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
|
||||
class G4ReactionKinematics {
|
||||
public:
|
||||
void TwoBodyScattering( const G4DynamicParticle* pIn1, const G4DynamicParticle* pIn2,
|
||||
G4DynamicParticle* pOut1, G4DynamicParticle* pOut2);
|
||||
|
||||
inline G4double BreakupMomentum( G4double totalMass, G4double m1, G4double m2);
|
||||
|
||||
};
|
||||
|
||||
inline G4double G4ReactionKinematics::BreakupMomentum(
|
||||
G4double totalMass, G4double massA, G4double massB){
|
||||
|
||||
// is aequivalent to G4double G4PhaseSpaceDecayChannel::Pmx !!
|
||||
|
||||
G4double m0squared=totalMass*totalMass;
|
||||
G4double breakupMomentumSquared=
|
||||
(m0squared-(massA+massB)*(massA+massB))*
|
||||
(m0squared-(massA-massB)*(massA-massB))/
|
||||
(4*m0squared);
|
||||
if (breakupMomentumSquared>0) return sqrt(breakupMomentumSquared);
|
||||
else return -1.;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user