G4QFragmentation.hh

Go to the documentation of this file.
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
00041 // -----------------------------------------------------------------------------
00042 //
00043 #ifndef G4QFragmentation_h
00044 #define G4QFragmentation_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 "G4QDiffractionRatio.hh"
00058 #include "G4QStringVector.hh" 
00059 
00060 class G4QFragmentation
00061 {
00062  public:
00063   G4QFragmentation(const G4QNucleus& aNucleus, const G4QHadron& aPrimary);
00064   ~G4QFragmentation(); 
00065 
00066   G4QHadronVector* Fragment(); // Calls Breeder & fragments Quasmons inside ResidualNucleus
00067 
00068   // Static functions
00069   static void SetParameters(G4int nC, G4double strTens, G4double tubeDens, G4double SigPt);
00070 
00071  protected:
00072   G4bool ExciteDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const; //@@Once
00073   G4bool ExciteSingDiffParticipants(G4QHadron* aPartner, G4QHadron* bPartner) const;//@@Onc
00074   std::pair<G4int,G4int> ReducePair(G4int P1, G4int P2) const; // Reduce Q-pairs to singles
00075   void Breeder(); // String fragmentation algoritm, which makes Hadrons & Quasmons from Str
00076   // @@ At present always SingleDiffractive, so this is a fake member function
00077   G4bool IsSingleDiffractive() {G4bool r=false; if(G4UniformRand()<1.) r=true; return r;}
00078   G4int SumPartonPDG(G4int PDG1, G4int PFG2) const;
00079   G4double ChooseX(G4double Xmin, G4double Xmax) const;
00080   G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const;
00081   G4int AnnihilationOrder(G4int LS, G4int MS, G4int uP, G4int mP, G4int sP, G4int nP);
00082   void SwapPartons(); // Try to swap partons of strings, if one of strings has negative M2
00083   void EvaporateResidual(G4QHadron* hadrNuc); //Evaporate hadrNucleus, NuclFrag->theResult
00084  private:
00085   enum {SOFT, DIFFRACTIVE};
00086   // static model parameters
00087   static G4int    nCutMax;                               // Maximum number of Soft Cuts 
00088   static G4double stringTension;                         // String Tension to absorb energy
00089   static G4double tubeDensity;                           // Nucleon density in the FluxTube
00090   static G4double widthOfPtSquare;                       // width^2 of pt(StringExcitation)
00091 
00092   // Body
00093   G4QNucleus      theNucleus;                            // 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   G4QuasiFreeRatios* theQuasiElastic;                    // For CHIPS Quasi-Elastic
00100   G4QDiffractionRatio* theDiffraction;                   // For CHIPS Diffraction
00101   G4QCHIPSWorld*  theWorld;                              // Pointer to the CHIPS World
00102 };
00103 
00104 #endif

Generated on Mon May 27 17:49:33 2013 for Geant4 by  doxygen 1.4.7