Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4ReactionKinematics.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28// ------------------------------------------------------------
29// GEANT 4 class header file --- Copyright CERN 1995
30// CERN Geneva Switzerland
31//
32// ------------ G4ReactionDynamics::TwoBody ------
33// new inline method BreakupMomentum
34// new method TwoBodyScattering
35// by Christian V"olcker (CERN-Munich), August 1997
36// E-mail: Christian.Volcker@cern.ch
37// ************************************************************
38//-----------------------------------------------------------------------------
39
40#ifndef G4ReactionKinematics_h
41#define G4ReactionKinematics_h 1
42
43#include "globals.hh"
44#include "Randomize.hh"
45#include "G4VRestProcess.hh"
46#include "G4ParticleTypes.hh"
47
49public:
50 void TwoBodyScattering( const G4DynamicParticle* pIn1, const G4DynamicParticle* pIn2,
52
53 inline G4double BreakupMomentum( G4double totalMass, G4double m1, G4double m2);
54
55};
56
58 G4double totalMass, G4double massA, G4double massB){
59
60// is aequivalent to G4double G4PhaseSpaceDecayChannel::Pmx !!
61
62 G4double m0squared=totalMass*totalMass;
63 G4double breakupMomentumSquared=
64 (m0squared-(massA+massB)*(massA+massB))*
65 (m0squared-(massA-massB)*(massA-massB))/
66 (4*m0squared);
67 if (breakupMomentumSquared>0) return std::sqrt(breakupMomentumSquared);
68 else return -1.;
69}
70
71
72#endif
double G4double
Definition: G4Types.hh:64
void TwoBodyScattering(const G4DynamicParticle *pIn1, const G4DynamicParticle *pIn2, G4DynamicParticle *pOut1, G4DynamicParticle *pOut2)
G4double BreakupMomentum(G4double totalMass, G4double m1, G4double m2)