[819] | 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: G4QFragmentation.hh,v 1.2 2006/12/12 11:02:22 mkossov Exp $ |
---|
[962] | 28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[819] | 29 | // |
---|
| 30 | // ----------------------------------------------------------------------------- |
---|
| 31 | // GEANT 4 class header file |
---|
| 32 | // |
---|
| 33 | // History: |
---|
| 34 | // Created by Mikhail Kossov, October 2006 |
---|
| 35 | // CHIPS QGS fragmentation class |
---|
| 36 | // For comparison mirror member functions are taken from G4 classes: |
---|
| 37 | // G4QGSParticipants |
---|
| 38 | // G4QGSModels |
---|
| 39 | // G4ExcitedStringDecay |
---|
| 40 | // ----------------------------------------------------------------------------- |
---|
| 41 | // |
---|
| 42 | #ifndef G4QFragmentation_h |
---|
| 43 | #define G4QFragmentation_h 1 |
---|
| 44 | |
---|
| 45 | #include "globals.hh" |
---|
| 46 | #include "G4QNucleus.hh" |
---|
| 47 | #include "Randomize.hh" |
---|
| 48 | #include "G4QHadronVector.hh" |
---|
| 49 | #include "G4ShortLivedConstructor.hh" |
---|
| 50 | #include "G4QInteractionVector.hh" |
---|
| 51 | #include "G4QPomeron.hh" |
---|
| 52 | #include "G4QPartonPairVector.hh" |
---|
| 53 | #include "G4QStringVector.hh" |
---|
| 54 | |
---|
| 55 | class G4QFragmentation |
---|
| 56 | { |
---|
| 57 | public: |
---|
| 58 | G4QFragmentation(); |
---|
| 59 | G4QFragmentation(const G4QFragmentation &right); |
---|
| 60 | const G4QFragmentation& operator=(const G4QFragmentation &right); |
---|
| 61 | virtual ~G4QFragmentation(); |
---|
| 62 | |
---|
| 63 | int operator==(const G4QFragmentation &right) const; |
---|
| 64 | int operator!=(const G4QFragmentation &right) const; |
---|
| 65 | |
---|
| 66 | G4QHadronVector* Scatter(const G4QNucleus& theNucleus, const G4QHadron& thePrimary); |
---|
| 67 | |
---|
| 68 | void InitModel(const G4QNucleus& Nucleus, const G4QHadron& Projectile); |
---|
| 69 | |
---|
| 70 | void Init(G4double theZ, G4double theA) |
---|
| 71 | { |
---|
| 72 | if(!theNucleus) theNucleus = new G4QNucleus(G4int(theZ),G4int(theA-theZ+.0001)); |
---|
| 73 | theNucleus->InitByPDG(90000000+G4int(theZ)*1000+G4int(theA-theZ+.0001)); |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | void SetNucleus(G4QNucleus* aNucleus) {theNucleus=aNucleus;} |
---|
| 77 | G4QNucleus* GetWoundedNucleus() const {return theNucleus;} |
---|
| 78 | G4bool ExciteDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const; |
---|
| 79 | G4bool ExciteSingDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const; |
---|
| 80 | |
---|
| 81 | G4QString* BuildString(G4QPartonPair* aPair) |
---|
| 82 | {return new G4QString(aPair->GetParton1(),aPair->GetParton2(), aPair->GetDirection());} |
---|
| 83 | |
---|
| 84 | G4QStringVector* GetStrings(); |
---|
| 85 | G4QHadronVector* FragmentStrings(const G4QStringVector* theStrings); |
---|
| 86 | void DoLorentzBoost(G4ThreeVector aBoost) |
---|
| 87 | { |
---|
| 88 | if(theNucleus) theNucleus->DoLorentzBoost(aBoost); |
---|
| 89 | theBoost = aBoost; |
---|
| 90 | } |
---|
| 91 | |
---|
| 92 | G4QPartonPair* GetNextPartonPair(); |
---|
| 93 | void BuildInteractions(const G4QHadron& thePrimary); |
---|
| 94 | void StartPartonPairLoop() {;} // @@ (? M.K.) Function which is doing nothing |
---|
| 95 | |
---|
| 96 | // Static functions |
---|
| 97 | static void SetParameters(G4int nCM, G4double thresh, G4double QGSMth, G4double radNuc, |
---|
| 98 | G4double SigPt, G4double extraM, G4double minM); |
---|
| 99 | protected: |
---|
| 100 | G4QHadron* SelectInteractions(const G4QHadron &thePrimary); |
---|
| 101 | void SplitHadrons() |
---|
| 102 | {for(unsigned i=0; i<theInteractions.size(); i++) theInteractions[i]->SplitHadrons();} |
---|
| 103 | void PerformSoftCollisions(); |
---|
| 104 | void PerformDiffractiveCollisions(); |
---|
| 105 | G4bool IsSingleDiffractive() |
---|
| 106 | {G4bool result=false; if(G4UniformRand()<1.) result=true; return result;} |
---|
| 107 | G4bool EnergyAndMomentumCorrector(G4QHadronVector* Output, G4LorentzVector& TotaMom); |
---|
| 108 | G4double ChooseX(G4double Xmin, G4double Xmax) const; |
---|
| 109 | G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const; |
---|
| 110 | |
---|
| 111 | private: |
---|
| 112 | // static model parameters |
---|
| 113 | static G4int nCutMax; |
---|
| 114 | static G4double ThersholdParameter; |
---|
| 115 | static G4double QGSMThershold; |
---|
| 116 | static G4double theNucleonRadius; |
---|
| 117 | // Parameters of diffractional fragmentation |
---|
| 118 | static G4double widthOfPtSquare; // width^2 of pt for string excitation |
---|
| 119 | static G4double minExtraMass; // minimum excitation mass |
---|
| 120 | static G4double minmass; // mean pion transverse mass; used for Xmin |
---|
| 121 | |
---|
| 122 | // Body |
---|
| 123 | G4QInteractionVector theInteractions; |
---|
| 124 | G4QHadronVector theTargets; |
---|
| 125 | G4QPartonPairVector thePartonPairs; |
---|
| 126 | |
---|
| 127 | G4int ModelMode; |
---|
| 128 | G4ThreeVector theBoost; // init as zero 3-vector (@@ M.K.) |
---|
| 129 | G4QNucleus* theNucleus; // init as zero (0) |
---|
| 130 | G4ThreeVector theCurrentVelocity; // init as zero 3-vector (@@ M.K.) |
---|
| 131 | |
---|
| 132 | enum {SOFT, DIFFRACTIVE}; |
---|
| 133 | }; |
---|
| 134 | |
---|
| 135 | #endif |
---|
| 136 | |
---|
| 137 | |
---|