source: trunk/source/processes/hadronic/models/rpg/include/G4RPGReaction.hh@ 1201

Last change on this file since 1201 was 1196, checked in by garnier, 16 years ago

update CVS release candidate geant4.9.3.01

File size: 5.5 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// $Id: G4RPGReaction.hh,v 1.3 2008/05/05 21:21:54 dennis Exp $
27// GEANT4 tag $Name: geant4-09-03-cand-01 $
28//
29// Author: D. H. Wright
30// Date: 26 May 2007
31//
32
33#ifndef G4RPGReaction_h
34#define G4RPGReaction_h 1
35
36// Class Description:
37//
38// Base class providing methods for various stages of the re-parameterized
39// Gheisha model calculation of primary and secondary final state momenta
40
41#include "G4DynamicParticle.hh"
42#include "G4ReactionProduct.hh"
43#include "G4Nucleus.hh"
44#include "G4FastVector.hh"
45#include "G4HadProjectile.hh"
46
47
48class G4RPGReaction
49{
50public: // with description
51
52 G4RPGReaction() {}
53
54 virtual ~G4RPGReaction() {}
55
56 G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
57 G4ReactionProduct& /*modifiedOriginal*/,
58 G4bool& /*incidentHasChanged*/,
59 const G4DynamicParticle* /*originalTarget*/,
60 G4ReactionProduct& /*targetParticle*/,
61 G4bool& /*targetHasChanged*/,
62 const G4Nucleus& /*targetNucleus*/,
63 G4ReactionProduct& /*currentParticle*/,
64 G4FastVector<G4ReactionProduct,256>& /*vec*/,
65 G4int& /*vecLen*/,
66 G4bool /*leadFlag*/,
67 G4ReactionProduct& /*leadingStrangeParticle*/);
68
69
70 void AddBlackTrackParticles(const G4double /*epnb*/,
71 const G4int /*npnb*/,
72 const G4double /*edta*/,
73 const G4int /*ndta*/,
74 const G4ReactionProduct& /*modifiedOriginal*/,
75 G4int /*PinNucleus*/,
76 G4int /*NinNucleus*/,
77 const G4Nucleus& /*aNucleus*/,
78 G4FastVector<G4ReactionProduct,256>& /*vec*/,
79 G4int& /*vecLen*/ );
80
81
82 G4double GenerateNBodyEvent(const G4double totalEnergy,
83 const G4bool constantCrossSection,
84 G4FastVector<G4ReactionProduct,256> &vec,
85 G4int& vecLen);
86
87 G4double GenerateNBodyEventT(const G4double totalEnergy,
88 const G4bool constantCrossSection,
89 std::vector<G4ReactionProduct*>& list);
90
91 void NuclearReaction(G4FastVector<G4ReactionProduct,4> &vec,
92 G4int& vecLen,
93 const G4HadProjectile* originalIncident,
94 const G4Nucleus& aNucleus,
95 const G4double theAtomicMass,
96 const G4double* massVec);
97
98protected: // with description
99
100 void Rotate(const G4double numberofFinalStateNucleons,
101 const G4ThreeVector& temp,
102 const G4ReactionProduct& modifiedOriginal,
103 const G4HadProjectile* originalIncident,
104 const G4Nucleus& targetNucleus,
105 G4ReactionProduct &currentParticle,
106 G4ReactionProduct &targetParticle,
107 G4FastVector<G4ReactionProduct,256> &vec,
108 G4int& vecLen );
109
110 void Defs1(const G4ReactionProduct& modifiedOriginal,
111 G4ReactionProduct& currentParticle,
112 G4ReactionProduct& targetParticle,
113 G4FastVector<G4ReactionProduct,256> &vec,
114 G4int& vecLen);
115
116 std::pair<G4int, G4int> GetFinalStateNucleons(
117 const G4DynamicParticle* originalTarget,
118 const G4FastVector<G4ReactionProduct,256>& vec,
119 const G4int& vecLen );
120
121 void MomentumCheck(const G4ReactionProduct &modifiedOriginal,
122 G4ReactionProduct &currentParticle,
123 G4ReactionProduct &targetParticle,
124 G4FastVector<G4ReactionProduct,256> &vec,
125 G4int& vecLen);
126
127 G4double normal();
128
129 G4ThreeVector Isotropic(const G4double&);
130
131};
132
133#endif
134
Note: See TracBrowser for help on using the repository browser.