Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:37

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 // -------------------------------------------------------------------
0027 //      GEANT4 Class file
0028 //
0029 //
0030 //      File name: G4LightIonQMDReaction.hh 
0031 //
0032 //      Author: Koi, Tatsumi (tkoi@slac.stanford.edu)       
0033 // 
0034 //      Creation date: 02 April 2007
0035 // -----------------------------------------------------------------------------
0036 //
0037 // 081107 Add UnUseGEM (then use the default channel of G4Evaporation)
0038 //            UseFrag (chage criterion of a inelastic reaction)
0039 // 090331 Change member shenXS and genspaXS object to pointer 
0040 //
0041 
0042 #ifndef G4LightIonQMDReaction_hh
0043 #define G4LightIonQMDReaction_hh
0044 
0045 #include "G4QMDSystem.hh"
0046 #include "G4LightIonQMDCollision.hh"
0047 #include "G4LightIonQMDMeanField.hh"
0048 #include "G4QMDParticipant.hh"
0049 
0050 #include "G4HadronicInteraction.hh"
0051 
0052 #include "G4Evaporation.hh"
0053 #include "G4ExcitationHandler.hh"
0054 
0055 class G4VCrossSectionDataSet;
0056 class G4BGGPionElasticXS;
0057 class G4BGGPionInelasticXS;
0058 
0059 class G4LightIonQMDReaction : public G4HadronicInteraction
0060 {
0061   public:
0062     G4LightIonQMDReaction();
0063     ~G4LightIonQMDReaction() override;
0064 
0065     std::vector< G4QMDSystem* > GetFinalStates(); 
0066 
0067     G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
0068                                    G4Nucleus & targetNucleus) override;
0069 
0070     G4ExcitationHandler* GetExcitationHandler() {return excitationHandler;};
0071 
0072     void UnUseGEM() {gem = false; setEvaporationCh();};
0073     void UseFRAG() {frag = true;};
0074 
0075     void SetTMAX(G4int i) { maxTime = i; };
0076     void SetDT(G4double t) { deltaT = t; };
0077     void SetEF(G4double x) { envelopF = x; };
0078 
0079     void ModelDescription(std::ostream& outFile) const override;
0080 
0081     //copy is unexpected
0082     G4LightIonQMDReaction(const G4LightIonQMDReaction& right) = delete;
0083     const G4LightIonQMDReaction& operator = (const G4LightIonQMDReaction& right) = delete;
0084 
0085   private:
0086 
0087     void setEvaporationCh();
0088     void setHighEnergyModel();
0089 
0090     G4LightIonQMDMeanField* meanField;
0091 
0092     G4LightIonQMDCollision* collision;
0093 
0094     void doCollision();
0095     std::vector< G4QMDSystem* > doClusterJudgment();
0096       
0097     G4QMDSystem* system;
0098     G4double deltaT;
0099     G4int maxTime;
0100     G4double envelopF;
0101 
0102     G4ExcitationHandler* excitationHandler;
0103 
0104       //                            b        pd_proj                pd_targ                  z_p     a_p     z_t     a_t      plab       elab
0105 //      G4double offSetOfCollision( G4double , G4ParticleDefinition* , G4ParticleDefinition* , G4int , G4int , G4int , G4int , G4double , G4double  );  
0106       //                           b          pd_proj                 pd_targ                 plab       elab      bmax boostToCM
0107 
0108     void calcOffSetOfCollision(G4double, const G4ParticleDefinition*,
0109                                const G4ParticleDefinition*, G4double,
0110                                G4double, G4double, G4ThreeVector);
0111 
0112     G4double coulomb_collision_gamma_proj;
0113     G4double coulomb_collision_rx_proj;
0114     G4double coulomb_collision_rz_proj;
0115     G4double coulomb_collision_px_proj;
0116     G4double coulomb_collision_pz_proj;
0117 
0118     G4double coulomb_collision_gamma_targ;
0119     G4double coulomb_collision_rx_targ;
0120     G4double coulomb_collision_rz_targ;
0121     G4double coulomb_collision_px_targ;
0122     G4double coulomb_collision_pz_targ;
0123 
0124     G4VCrossSectionDataSet* theXS;
0125 
0126     G4BGGPionElasticXS* pipElNucXS;
0127     G4BGGPionElasticXS* pimElNucXS;
0128     G4BGGPionInelasticXS* pipInelNucXS;
0129     G4BGGPionInelasticXS* pimInelNucXS;
0130 
0131     G4bool gem;
0132     G4bool frag;
0133     G4int secID;  // Creator model ID for the secondaries
0134 };
0135 
0136 #endif