Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4RPGInelastic.hh
이 파일의 문서화 페이지로 가기
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: G4RPGInelastic.hh 81944 2014-06-06 15:57:38Z gcosmo $
27 //
28 // Author: D. H. Wright
29 // Date: 26 May 2007
30 //
31 
32 #ifndef G4RPGInelastic_h
33 #define G4RPGInelastic_h 1
34 
35 // Class Description:
36 //
37 // Base class for re-parameterized Gheisha-style models.
38 
39 #include <vector>
40 
41 #include "globals.hh"
42 #include "G4FastVector.hh"
43 #include "G4HadronicInteraction.hh"
44 #include "G4ReactionProduct.hh"
45 #include "Randomize.hh"
46 #include "G4RPGFragmentation.hh"
47 #include "G4RPGTwoCluster.hh"
48 #include "G4RPGTwoBody.hh"
50 #include "G4RPGPionSuppression.hh"
51 
52 enum{ GHADLISTSIZE=256};
53 
54 
56  {
57  public: // with description
58 
59  G4RPGInelastic(const G4String& modelName = "RPGInelastic");
60 
61  virtual ~G4RPGInelastic()
62  { }
63 
64  protected: // with description
65 
67  G4double b, G4double c);
68 
70 
72  const G4ReactionProduct& targetParticle,
73  G4ReactionProduct& leadParticle);
74 
75  void SetUpPions(const G4int np, const G4int nm, const G4int nz,
77  G4int &vecLen);
78 
79  // void Rotate(G4FastVector<G4ReactionProduct,256> &vec, G4int &vecLen);
80 
81  void GetNormalizationConstant(const G4double availableEnergy,
82  G4double &n,
83  G4double &anpn);
84 
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 
98  G4int &vecLen,
99  G4ReactionProduct &currentParticle,
100  G4ReactionProduct &targetParticle,
101  G4bool &incidentHasChanged);
102 
104 
106 
108 
110 
112 
113  std::pair<G4int, G4double> interpolateEnergy(G4double ke) const;
114 
115  G4int sampleFlat(std::vector<G4double> sigma) const;
116 
118  G4int &vecLen,
119  G4ReactionProduct &currentParticle,
120  G4ReactionProduct &targetParticle,
122 
123  enum {pi0, pip, pim, kp, km, k0, k0b, pro, neu,
124  lam, sp, s0, sm, xi0, xim, om, ap, an};
125 
126  protected:
127 
129 
130  private:
131 
134 
135  static const G4double energyScale[30];
136 
137  };
138 
139 #endif
virtual ~G4RPGInelastic()
void SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
G4RPGTwoBody twoBody
static constexpr double nm
Definition: G4SIunits.hh:112
void GetNormalizationConstant(const G4double availableEnergy, G4double &n, G4double &anpn)
void CalculateMomenta(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
double S(double temp)
void CheckQnums(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4double Q, G4double B, G4double S)
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
G4bool MarkLeadingStrangeParticle(const G4ReactionProduct &currentParticle, const G4ReactionProduct &targetParticle, G4ReactionProduct &leadParticle)
G4RPGPionSuppression pionSuppression
G4RPGInelastic(const G4String &modelName="RPGInelastic")
G4RPGTwoCluster twoCluster
G4RPGStrangeProduction strangeProduction
void SetUpPions(const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen)
G4int Factorial(G4int n)
G4ParticleDefinition * particleDef[18]
G4RPGFragmentation fragmentation
std::pair< G4int, G4double > interpolateEnergy(G4double ke) const
int G4int
Definition: G4Types.hh:78
static const G4double energyScale[30]
G4int sampleFlat(std::vector< G4double > sigma) const
G4ThreeVector what
Char_t n[5]
static double Q[]
double B(double temperature)