| 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,v 1.4 2009/05/25 19:06:59 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 G4RPGInelastic_h
|
|---|
| 34 | #define G4RPGInelastic_h 1
|
|---|
| 35 |
|
|---|
| 36 | // Class Description:
|
|---|
| 37 | //
|
|---|
| 38 | // Base class for re-parameterized Gheisha-style models.
|
|---|
| 39 |
|
|---|
| 40 | #include "globals.hh"
|
|---|
| 41 | #include <vector>
|
|---|
| 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"
|
|---|
| 49 | #include "G4RPGStrangeProduction.hh"
|
|---|
| 50 | #include "G4RPGPionSuppression.hh"
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | class G4RPGInelastic : public G4HadronicInteraction
|
|---|
| 54 | {
|
|---|
| 55 | public: // with description
|
|---|
| 56 |
|
|---|
| 57 | G4RPGInelastic(const G4String& modelName = "RPGInelastic");
|
|---|
| 58 |
|
|---|
| 59 | virtual ~G4RPGInelastic()
|
|---|
| 60 | { }
|
|---|
| 61 |
|
|---|
| 62 | protected: // with description
|
|---|
| 63 |
|
|---|
| 64 | G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n,
|
|---|
| 65 | G4double b, G4double c);
|
|---|
| 66 |
|
|---|
| 67 | G4int Factorial(G4int n);
|
|---|
| 68 |
|
|---|
| 69 | G4bool MarkLeadingStrangeParticle(const G4ReactionProduct& currentParticle,
|
|---|
| 70 | const G4ReactionProduct& targetParticle,
|
|---|
| 71 | G4ReactionProduct& leadParticle);
|
|---|
| 72 |
|
|---|
| 73 | void SetUpPions(const G4int np, const G4int nm, const G4int nz,
|
|---|
| 74 | G4FastVector<G4ReactionProduct,256> &vec,
|
|---|
| 75 | G4int &vecLen);
|
|---|
| 76 |
|
|---|
| 77 | // void Rotate(G4FastVector<G4ReactionProduct,256> &vec, G4int &vecLen);
|
|---|
| 78 |
|
|---|
| 79 | void GetNormalizationConstant(const G4double availableEnergy,
|
|---|
| 80 | G4double &n,
|
|---|
| 81 | G4double &anpn);
|
|---|
| 82 |
|
|---|
| 83 | void CalculateMomenta(G4FastVector<G4ReactionProduct,256> &vec,
|
|---|
| 84 | G4int &vecLen,
|
|---|
| 85 | const G4HadProjectile *originalIncident,
|
|---|
| 86 | const G4DynamicParticle *originalTarget,
|
|---|
| 87 | G4ReactionProduct &modifiedOriginal,
|
|---|
| 88 | G4Nucleus &targetNucleus,
|
|---|
| 89 | G4ReactionProduct ¤tParticle,
|
|---|
| 90 | G4ReactionProduct &targetParticle,
|
|---|
| 91 | G4bool &incidentHasChanged,
|
|---|
| 92 | G4bool &targetHasChanged,
|
|---|
| 93 | G4bool quasiElastic);
|
|---|
| 94 |
|
|---|
| 95 | void SetUpChange(G4FastVector<G4ReactionProduct,256> &vec,
|
|---|
| 96 | G4int &vecLen,
|
|---|
| 97 | G4ReactionProduct ¤tParticle,
|
|---|
| 98 | G4ReactionProduct &targetParticle,
|
|---|
| 99 | G4bool &incidentHasChanged);
|
|---|
| 100 |
|
|---|
| 101 | G4RPGFragmentation fragmentation;
|
|---|
| 102 |
|
|---|
| 103 | G4RPGTwoCluster twoCluster;
|
|---|
| 104 |
|
|---|
| 105 | G4RPGPionSuppression pionSuppression;
|
|---|
| 106 |
|
|---|
| 107 | G4RPGStrangeProduction strangeProduction;
|
|---|
| 108 |
|
|---|
| 109 | G4RPGTwoBody twoBody;
|
|---|
| 110 |
|
|---|
| 111 | std::pair<G4int, G4double> interpolateEnergy(G4double ke) const;
|
|---|
| 112 |
|
|---|
| 113 | G4int sampleFlat(std::vector<G4double> sigma) const;
|
|---|
| 114 |
|
|---|
| 115 | void CheckQnums(G4FastVector<G4ReactionProduct,256> &vec,
|
|---|
| 116 | G4int &vecLen,
|
|---|
| 117 | G4ReactionProduct ¤tParticle,
|
|---|
| 118 | G4ReactionProduct &targetParticle,
|
|---|
| 119 | G4double Q, G4double B, G4double S);
|
|---|
| 120 |
|
|---|
| 121 | enum {pi0, pip, pim, kp, km, k0, k0b, pro, neu,
|
|---|
| 122 | lam, sp, s0, sm, xi0, xim, om, ap, an};
|
|---|
| 123 |
|
|---|
| 124 | protected:
|
|---|
| 125 |
|
|---|
| 126 | G4ParticleDefinition* particleDef[18];
|
|---|
| 127 |
|
|---|
| 128 | private:
|
|---|
| 129 |
|
|---|
| 130 | G4double cache;
|
|---|
| 131 | G4ThreeVector what;
|
|---|
| 132 |
|
|---|
| 133 | static const G4double energyScale[30];
|
|---|
| 134 |
|
|---|
| 135 | };
|
|---|
| 136 |
|
|---|
| 137 | #endif
|
|---|