Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:00

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 #ifndef G4QGSModel_h
0027 #define G4QGSModel_h 1
0028 
0029 // Class Description
0030 // Model for hadron (p,n,pi,K) nuclear reactions in geant4. IT implements
0031 // A. Kaydalov's quark gluon string model.
0032 // To be used in your physics list, in case you need this kind of physics.
0033 // Class Description - End
0034 
0035 #include <cmath>
0036 #include <CLHEP/Units/SystemOfUnits.h>
0037 
0038 #include "G4ExcitedStringVector.hh"
0039 #include "G4KineticTrackVector.hh"
0040 #include "G4ParticleTable.hh"
0041 #include "G4Fancy3DNucleus.hh"
0042 #include "G4VPartonStringModel.hh"
0043 #include "G4QGSParticipants.hh"
0044 #include "G4DiffractiveStringBuilder.hh"
0045 #include "G4SoftStringBuilder.hh"
0046 #include "G4PartonPair.hh"
0047 
0048 //***************************************************************************
0049 
0050 template<class ParticipantType>
0051 class G4QGSModel : public G4VPartonStringModel
0052 {
0053   public:
0054     G4QGSModel();
0055     virtual ~G4QGSModel();
0056 
0057     G4QGSModel(const G4QGSModel &right) = delete;
0058     G4QGSModel& operator=(const G4QGSModel &right) = delete;
0059     G4bool operator==(const G4QGSModel &right) const = delete;
0060     G4bool operator!=(const G4QGSModel &right) const = delete;
0061 
0062     G4V3DNucleus* GetWoundedNucleus() const override;
0063     G4V3DNucleus* GetProjectileNucleus() const override;
0064     void ModelDescription(std::ostream& outFile) const override;
0065 
0066   protected:
0067     void Init(const G4Nucleus& Nucleus, const G4DynamicParticle& dyn) override;
0068     G4ExcitedStringVector * GetStrings() override;
0069 
0070   private:
0071     ParticipantType theParticipants;
0072     G4DiffractiveStringBuilder theDiffractiveStringBuilder;
0073     G4SoftStringBuilder theSoftStringBuilder;
0074 };
0075 
0076 //***************************************************************************
0077     
0078 #include "G4QGSModel.icc"
0079 
0080 #endif
0081