source: trunk/source/processes/hadronic/models/management/include/G4InelasticInteraction.hh@ 1036

Last change on this file since 1036 was 1007, checked in by garnier, 17 years ago

update to geant4.9.2

File size: 4.8 KB
RevLine 
[819]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//
[1007]27// $Id: G4InelasticInteraction.hh,v 1.5 2007/01/11 05:30:12 dennis Exp $
28// GEANT4 tag $Name: geant4-09-02 $
[819]29//
[1007]30 // Hadronic Process: Inelastic Interaction
31 // This class is an abstract base class, since the pure virtual
32 // function ApplyYourself has not been defined yet.
33 // original by H.P. Wellisch
34 // Modified by J.L. Chuma, TRIUMF, 22-Nov-1996
35 // Modified by J.L. Chuma 27-Mar-1997
36 // Modified by J.L. Chuma 30-Apr-1997
37 // Modified by J.L. Chuma 05-Aug-1997 to pass the original incident particle to
38 // CalculateMomenta
39 // Modified by J.L. Chuma 05-Jun-1998 to include quasiElastic flag to allow for
40 // TwoBody to be called directly, bypassing
41 // TwoCluster, and allowing TwoCluster to be
42 // called with no secondaries
[819]43
44#ifndef G4InelasticInteraction_h
45#define G4InelasticInteraction_h 1
46
47#include "globals.hh"
48#include "G4FastVector.hh"
49#include "G4HadronicInteraction.hh"
50#include "G4ReactionProduct.hh"
51#include "G4ParticleTypes.hh"
52#include "Randomize.hh"
53#include "G4ReactionDynamics.hh"
54
[1007]55 class G4InelasticInteraction : public G4HadronicInteraction
56 {
57 public:
[819]58
[1007]59 G4InelasticInteraction(const G4String& modelName = "LEInelastic")
60 : G4HadronicInteraction(modelName)
61 { cache = 0.0;}
[819]62
[1007]63 virtual ~G4InelasticInteraction()
64 { }
[819]65
[1007]66 protected:
[819]67
68 G4double Pmltpc( G4int np, G4int nm, G4int nz, G4int n,
69 G4double b, G4double c );
70
71 G4bool MarkLeadingStrangeParticle( const G4ReactionProduct &currentParticle,
72 const G4ReactionProduct &targetParticle,
73 G4ReactionProduct &leadParticle );
74
75 void SetUpPions( const G4int np, const G4int nm, const G4int nz,
76 G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
77 G4int &vecLen );
78
79 void Rotate(G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec, G4int &vecLen);
80
81 void GetNormalizationConstant( const G4double availableEnergy,
82 G4double &n,
83 G4double &anpn );
84
85 void CalculateMomenta( G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
86 G4int &vecLen,
87 const G4HadProjectile *originalIncident,
88 const G4DynamicParticle *originalTarget,
89 G4ReactionProduct &modifiedOriginal,
90 G4Nucleus &targetNucleus,
91 G4ReactionProduct &currentParticle,
92 G4ReactionProduct &targetParticle,
93 G4bool &incidentHasChanged,
94 G4bool &targetHasChanged,
95 G4bool quasiElastic );
96
97 void SetUpChange( G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
98 G4int &vecLen,
99 G4ReactionProduct &currentParticle,
100 G4ReactionProduct &targetParticle,
101 G4bool &incidentHasChanged );
[1007]102 private:
[819]103
104 G4double cache;
105 G4ThreeVector what;
106
[1007]107 };
[819]108
109#endif
110
Note: See TracBrowser for help on using the repository browser.