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

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.9 KB
Line 
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// $Id: G4InelasticInteraction.hh,v 1.7 2009/08/30 16:12:13 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-03-ref-09 $
29//
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
43// 23-Jan-2009 V.Ivanchenko move constructor and destructor to the body
44// 29-Aug-2009 V.Ivanchenko moveded G4ReactionDynamics instance from the based class
45 
46#ifndef G4InelasticInteraction_h
47#define G4InelasticInteraction_h 1
48
49#include "globals.hh"
50#include "G4FastVector.hh"
51#include "G4HadronicInteraction.hh"
52#include "G4ReactionProduct.hh"
53#include "G4ParticleTypes.hh"
54#include "Randomize.hh"
55#include "G4ReactionDynamics.hh"
56
57class G4InelasticInteraction : public G4HadronicInteraction
58{
59public:
60   
61    G4InelasticInteraction(const G4String& modelName = "LEInelastic"); 
62   
63    virtual ~G4InelasticInteraction();
64   
65protected:
66   
67    G4double Pmltpc( G4int np, G4int nm, G4int nz, G4int n,
68                     G4double b, G4double c );
69   
70    G4bool MarkLeadingStrangeParticle( const G4ReactionProduct &currentParticle,
71                                       const G4ReactionProduct &targetParticle,
72                                       G4ReactionProduct &leadParticle );
73   
74    void SetUpPions( const G4int np, const G4int nm, const G4int nz,
75                     G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
76                     G4int &vecLen );
77   
78    void Rotate(G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec, G4int &vecLen);
79
80    void GetNormalizationConstant( const G4double availableEnergy,
81                                   G4double &n,
82                                   G4double &anpn );
83   
84    void CalculateMomenta( G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
85                           G4int &vecLen,
86                           const G4HadProjectile *originalIncident,
87                           const G4DynamicParticle *originalTarget,
88                           G4ReactionProduct &modifiedOriginal,
89                           G4Nucleus &targetNucleus,
90                           G4ReactionProduct &currentParticle,
91                           G4ReactionProduct &targetParticle,
92                           G4bool &incidentHasChanged,
93                           G4bool &targetHasChanged,
94                           G4bool quasiElastic );
95   
96    void SetUpChange( G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
97                      G4int &vecLen,
98                      G4ReactionProduct &currentParticle,
99                      G4ReactionProduct &targetParticle,
100                      G4bool &incidentHasChanged );
101private:
102   
103      G4double cache;
104      G4ThreeVector what;
105
106protected:
107      G4ReactionDynamics theReactionDynamics;
108
109};
110 
111#endif
112 
Note: See TracBrowser for help on using the repository browser.