Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-23 08:29:22

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 /// \file G4HIJING_Model.hh
0027 /// \brief Definition of the G4HIJING_Model class
0028 
0029 #ifndef G4HIJING_Model_hh
0030 #define G4HIJING_Model_hh
0031 //
0032 // MODULE:           G4HIJING_Model.hh
0033 //
0034 // Version:          1.B
0035 // Date:      10/90/2013
0036 // Author:    Khaled Abdel-Waged
0037 // Institute: Umm Al-Qura University
0038 // Country:   SAUDI ARABIA
0039 //
0040 // Class Description
0041 //
0042 //
0043 // Class Description - End
0044 //
0045 #include "G4FragmentVector.hh"
0046 #include "G4IntraNucleiCascader.hh"
0047 #include "G4KineticTrackVector.hh"
0048 #include "G4Nucleon.hh"
0049 #include "G4Nucleus.hh"
0050 #include "G4ParticleChange.hh"
0051 #include "G4ReactionProduct.hh"
0052 #include "G4ReactionProductVector.hh"
0053 #include "G4Track.hh"
0054 #include "G4VIntraNuclearTransportModel.hh"
0055 
0056 #include <fstream>
0057 #include <string>
0058 //---------------
0059 
0060 class G4HadFinalState;  // khaled new
0061 class HistoManager;
0062 //-------------------------------------------------------------
0063 
0064 class G4HIJING_Model : public G4VIntraNuclearTransportModel
0065 {
0066   public:
0067     G4HIJING_Model(const G4String& name = "HIJING");
0068 
0069     virtual ~G4HIJING_Model();
0070 
0071     //    G4double GetMinEnergy( const G4Material *aMaterial,
0072     //                             const G4Element *anElement ) const;
0073 
0074     //    G4double GetMaxEnergy( const G4Material *aMaterial,
0075     //                           const G4Element *anElement ) const;
0076 
0077     G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries,
0078                                        G4V3DNucleus* theTarget);
0079 
0080     virtual G4HadFinalState* ApplyYourself(const G4HadProjectile&, G4Nucleus&);
0081 
0082   private:
0083     G4bool operator==(G4HIJING_Model& right) { return (this == &right); }
0084 
0085     G4bool operator!=(G4HIJING_Model& right) { return (this != &right); }
0086 
0087     // -------------initialize HIJING ------------------------
0088     float efrm;  // CM energy per nucleon (GeV/A)
0089     float bmin;  // impact parameter
0090     float bmax;
0091     G4int Nproduce;  // Number of produced particles
0092     //-------------------------------------------------------
0093 
0094     G4int verbose;  // print options
0095 
0096     //
0097 
0098     void InitialiseDataTables();
0099     G4double Eplab(G4double, G4double);
0100 
0101     G4int CurrentEvent;
0102 
0103     //  void ConvertToFortran(char*, const char*);
0104 
0105   private:
0106     void WelcomeMessage() const;
0107     // -------------------------------------------
0108     G4HadFinalState theResult;  // khaled new
0109     HistoManager* fHistoManager;
0110     //-------------------------------------------
0111 };
0112 
0113 #endif