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

Last change on this file since 847 was 819, checked in by garnier, 16 years ago

import all except CVS

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.1 2007/07/18 20:51:37 dennis Exp $
27// GEANT4 tag $Name: geant4-09-01-patch-02 $
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 G4double /*sprob*/,
75                              const G4double /*kineticMinimum*/,
76                              const G4double /*kineticFactor*/,
77                              const G4ReactionProduct& /*modifiedOriginal*/,
78                              G4int /*PinNucleus*/,
79                              G4int /*NinNucleus*/,
80                              const G4Nucleus& /*aNucleus*/,
81                              G4FastVector<G4ReactionProduct,256>& /*vec*/,
82                              G4int& /*vecLen*/ );
83
84
85  G4double GenerateNBodyEvent(const G4double totalEnergy,
86                              const G4bool constantCrossSection,
87                              G4FastVector<G4ReactionProduct,256> &vec,
88                              G4int& vecLen);
89   
90  void NuclearReaction(G4FastVector<G4ReactionProduct,4> &vec,
91                       G4int& vecLen,
92                       const G4HadProjectile* originalIncident,
93                       const G4Nucleus& aNucleus,
94                       const G4double theAtomicMass,
95                       const G4double* massVec);
96   
97protected:  // with description
98   
99  void Rotate(const G4double numberofFinalStateNucleons,
100              const G4ThreeVector& temp,
101              const G4ReactionProduct& modifiedOriginal,
102              const G4HadProjectile* originalIncident,
103              const G4Nucleus& targetNucleus,
104              G4ReactionProduct &currentParticle,
105              G4ReactionProduct &targetParticle,
106              G4FastVector<G4ReactionProduct,256> &vec,
107              G4int& vecLen );
108   
109  void Defs1(const G4ReactionProduct& modifiedOriginal,
110             G4ReactionProduct& currentParticle,
111             G4ReactionProduct& targetParticle,
112             G4FastVector<G4ReactionProduct,256> &vec,
113             G4int& vecLen);
114   
115  std::pair<G4int, G4int> GetFinalStateNucleons(
116             const G4DynamicParticle* originalTarget,
117             const G4FastVector<G4ReactionProduct,256>& vec,
118             const G4int& vecLen );
119
120  void MomentumCheck(const G4ReactionProduct &modifiedOriginal,
121                     G4ReactionProduct &currentParticle,
122                     G4ReactionProduct &targetParticle,
123                     G4FastVector<G4ReactionProduct,256> &vec,
124                     G4int& vecLen);
125   
126  G4double normal();
127   
128  G4ThreeVector Isotropic(const G4double&);
129 
130};
131 
132#endif
133 
Note: See TracBrowser for help on using the repository browser.