Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 08:32:03

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 PhysicsList.cc
0027 /// \brief Implementation of the PhysicsList class
0028 
0029 #include "PhysicsList.hh"
0030 
0031 #include "GammaNuclearPhysics.hh"
0032 #include "GammaNuclearPhysicsLEND.hh"
0033 #include "HadronElasticPhysicsHP.hh"
0034 
0035 #include "G4HadronElasticPhysicsXS.hh"
0036 #include "G4HadronInelasticQBBC.hh"
0037 #include "G4HadronPhysicsFTFP_BERT_HP.hh"
0038 #include "G4HadronPhysicsINCLXX.hh"
0039 #include "G4HadronPhysicsQGSP_BIC_AllHP.hh"
0040 #include "G4HadronPhysicsQGSP_BIC_HP.hh"
0041 #include "G4IonElasticPhysics.hh"
0042 #include "G4IonINCLXXPhysics.hh"
0043 #include "G4IonPhysicsXS.hh"
0044 #include "G4NuclideTable.hh"
0045 #include "G4StoppingPhysics.hh"
0046 #include "G4SystemOfUnits.hh"
0047 /// #include "G4EmExtraPhysics.hh"
0048 
0049 #include "ElectromagneticPhysics.hh"
0050 #include "RadioactiveDecayPhysics.hh"
0051 
0052 #include "G4DecayPhysics.hh"
0053 #include "G4EmStandardPhysics_option3.hh"
0054 #include "G4RadioactiveDecayPhysics.hh"
0055 
0056 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0057 
0058 PhysicsList::PhysicsList()
0059 {
0060   G4int verb = 1;
0061   SetVerboseLevel(verb);
0062 
0063   // mandatory for G4NuclideTable
0064   //
0065   const G4double meanLife = 1 * nanosecond, halfLife = meanLife * std::log(2);
0066   G4NuclideTable::GetInstance()->SetThresholdOfHalfLife(halfLife);
0067 
0068   // Hadron Elastic scattering
0069   RegisterPhysics(new G4HadronElasticPhysicsXS(verb));
0070   /// RegisterPhysics( new HadronElasticPhysicsHP(verb) );
0071 
0072   // Hadron Inelastic Physics
0073   RegisterPhysics(new G4HadronPhysicsFTFP_BERT(verb));
0074   ////RegisterPhysics( new G4HadronPhysicsQGSP_BIC(verb));
0075   ////RegisterPhysics( new G4HadronPhysicsQGSP_BIC_HP(verb));
0076   ////RegisterPhysics( new G4HadronPhysicsQGSP_BIC_AllHP(verb));
0077   ////RegisterPhysics( new G4HadronInelasticQBBC(verb));
0078   ////RegisterPhysics( new G4HadronPhysicsINCLXX(verb));
0079 
0080   // Ion Elastic scattering
0081   //
0082   RegisterPhysics(new G4IonElasticPhysics(verb));
0083 
0084   // Ion Inelastic physics
0085   RegisterPhysics(new G4IonPhysicsXS(verb));
0086   ////RegisterPhysics( new G4IonINCLXXPhysics(verb));
0087 
0088   // stopping Particles
0089   RegisterPhysics(new G4StoppingPhysics(verb));
0090 
0091   // Gamma-Nuclear Physics
0092   RegisterPhysics(new GammaNuclearPhysics("gamma"));
0093   ////RegisterPhysics( new GammaNuclearPhysicsLEND("gamma"));
0094   ////RegisterPhysics( new G4EmExtraPhysics());
0095 
0096   // EM physics
0097   RegisterPhysics(new ElectromagneticPhysics());
0098   ////RegisterPhysics(new G4EmStandardPhysics_option3());
0099 
0100   // Decay
0101   RegisterPhysics(new G4DecayPhysics());
0102 
0103   // Radioactive decay
0104   RegisterPhysics(new RadioactiveDecayPhysics());
0105   ////RegisterPhysics(new G4RadioactiveDecayPhysics());
0106 }
0107 
0108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0109 
0110 void PhysicsList::SetCuts()
0111 {
0112   SetCutValue(0 * mm, "proton");
0113   SetCutValue(1 * mm, "e-");
0114   SetCutValue(1 * mm, "e+");
0115   SetCutValue(1 * mm, "gamma");
0116 }
0117 
0118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......