00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // ----------------------------------------------------------------------------- 00030 // GEANT 4 class header file 00031 // 00032 // History: 00033 // Created by Mikhail Kossov, October 2006 00034 // CHIPS QGS fragmentation class 00035 // For comparison mirror member functions are taken from G4 classes: 00036 // G4QGSParticipants 00037 // G4QGSModels 00038 // G4ExcitedStringDecay 00039 // ----------------------------------------------------------------------------- 00040 // Short description: CHIPS string fragmentation class for ion-ion inelastic 00041 // ----------------------------------------------------------------------------- 00042 // 00043 #ifndef G4QIonIonCollision_h 00044 #define G4QIonIonCollision_h 1 00045 00046 #include "globals.hh" 00047 #include "G4LorentzVector.hh" 00048 #include "Randomize.hh" 00049 #include "G4QNucleus.hh" 00050 #include "G4Quasmon.hh" 00051 #include "G4QHadronVector.hh" 00052 #include "G4QEnvironment.hh" 00053 #include "G4QInteractionVector.hh" 00054 #include "G4QProbability.hh" 00055 #include "G4QPartonPairVector.hh" 00056 #include "G4QuasiFreeRatios.hh" 00057 #include "G4QStringVector.hh" 00058 00059 class G4QIonIonCollision 00060 { 00061 public: 00062 G4QIonIonCollision(G4QNucleus& pNucleus, const G4QNucleus& tNucleus); 00063 ~G4QIonIonCollision(); 00064 00065 G4QHadronVector* Fragment(); // Calls Breeder & fragments Quasmons inside ResidualNucleus 00066 00067 // Static functions 00068 static void SetParameters(G4int nC, G4double strTens, G4double tubeDens, G4double SigPt); 00069 00070 protected: 00071 G4bool ExciteDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const; //@@Once 00072 G4bool ExciteSingDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const;//@@Onc 00073 std::pair<G4int,G4int> ReducePair(G4int P1, G4int P2) const; // Reduce Q-pairs to singles 00074 void Breeder(); // String fragmentation algoritm, which makes Hadrons & Quasmons from Str 00075 // @@ At present always SingleDiffractive, so this is a fake member function 00076 G4bool IsSingleDiffractive() {G4bool r=false; if(G4UniformRand()<1.) r=true; return r;} 00077 G4int SumPartonPDG(G4int PDG1, G4int PFG2) const; 00078 G4double ChooseX(G4double Xmin, G4double Xmax) const; 00079 G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const; 00080 G4int AnnihilationOrder(G4int LS, G4int MS, G4int uP, G4int mP, G4int sP, G4int nP); 00081 void SwapPartons(); // Try to swap partons of strings, if one of strings has negative M2 00082 00083 private: 00084 enum {SOFT, DIFFRACTIVE}; 00085 // static model parameters 00086 static G4int nCutMax; // Maximum number of Soft Cuts 00087 static G4double stringTension; // String Tension to absorb energy 00088 static G4double tubeDensity; // Nucleon density in the FluxTube 00089 static G4double widthOfPtSquare; // width^2 of pt(StringExcitation) 00090 00091 // Body 00092 G4QNucleus theProjNucleus; // ProjectileNucleus moving LS->CM 00093 G4QNucleus theTargNucleus; // TargetNucleus moving fromLStoCM 00094 G4QStringVector strings; // Vector of created strings 00095 G4QuasmonVector theQuasmons; // Strings converter to Quasmons 00096 G4QHadronVector* theResult; // Pointer to the OUTPUT Result 00097 G4double maxEn; // Energy absorbed by the nucleus 00098 G4double maxNuc; // #0fNucleons in the Flux Tube 00099 G4QCHIPSWorld* theWorld; // Pointer to the CHIPS World 00100 }; 00101 00102 #endif