Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-05 07:50:50

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 "BiasedRDPhysics.hh"
0032 
0033 #include "G4DecayPhysics.hh"
0034 #include "G4EmExtraPhysics.hh"
0035 #include "G4EmParameters.hh"
0036 #include "G4EmStandardPhysics.hh"
0037 #include "G4HadronElasticPhysics.hh"
0038 #include "G4HadronInelasticQBBC.hh"
0039 #include "G4HadronPhysicsFTFP_BERT.hh"
0040 #include "G4HadronPhysicsINCLXX.hh"
0041 #include "G4IonElasticPhysics.hh"
0042 #include "G4IonINCLXXPhysics.hh"
0043 #include "G4IonPhysics.hh"
0044 #include "G4NuclideTable.hh"
0045 #include "G4SystemOfUnits.hh"
0046 #include "G4UnitsTable.hh"
0047 
0048 // particles
0049 
0050 #include "G4BaryonConstructor.hh"
0051 #include "G4BosonConstructor.hh"
0052 #include "G4IonConstructor.hh"
0053 #include "G4LeptonConstructor.hh"
0054 #include "G4MesonConstructor.hh"
0055 #include "G4ShortLivedConstructor.hh"
0056 
0057 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0058 
0059 PhysicsList::PhysicsList()
0060 {
0061   G4int verb = 1;
0062   SetVerboseLevel(verb);
0063 
0064   // Mandatory for G4NuclideTable
0065   // Half-life threshold must be set small or many short-lived isomers
0066   // will not be assigned life times (default to 0)
0067   G4NuclideTable::GetInstance()->SetThresholdOfHalfLife(0.1 * picosecond);
0068   G4NuclideTable::GetInstance()->SetLevelTolerance(1.0 * eV);
0069 
0070   // EM physics
0071   RegisterPhysics(new G4EmStandardPhysics());
0072   G4EmParameters* param = G4EmParameters::Instance();
0073   param->SetAugerCascade(true);
0074   param->SetStepFunction(1., 1 * CLHEP::mm);
0075   param->SetStepFunctionMuHad(1., 1 * CLHEP::mm);
0076 
0077   // Decay
0078   RegisterPhysics(new G4DecayPhysics());
0079 
0080   // Radioactive decay
0081   RegisterPhysics(new BiasedRDPhysics());
0082 
0083   // Hadron Elastic scattering
0084   RegisterPhysics(new G4HadronElasticPhysics(verb));
0085 
0086   // Hadron Inelastic physics
0087   RegisterPhysics(new G4HadronPhysicsFTFP_BERT(verb));
0088   ////RegisterPhysics( new G4HadronInelasticQBBC(verb));
0089   ////RegisterPhysics( new G4HadronPhysicsINCLXX(verb));
0090 
0091   // Ion Elastic scattering
0092   RegisterPhysics(new G4IonElasticPhysics(verb));
0093 
0094   // Ion Inelastic physics
0095   RegisterPhysics(new G4IonPhysics(verb));
0096   ////RegisterPhysics( new G4IonINCLXXPhysics(verb));
0097 
0098   // Gamma-Nuclear Physics
0099   G4EmExtraPhysics* gnuc = new G4EmExtraPhysics(verb);
0100   gnuc->ElectroNuclear(false);
0101   gnuc->MuonNuclear(false);
0102   RegisterPhysics(gnuc);
0103 }
0104 
0105 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0106 
0107 void PhysicsList::ConstructParticle()
0108 {
0109   G4BosonConstructor pBosonConstructor;
0110   pBosonConstructor.ConstructParticle();
0111 
0112   G4LeptonConstructor pLeptonConstructor;
0113   pLeptonConstructor.ConstructParticle();
0114 
0115   G4MesonConstructor pMesonConstructor;
0116   pMesonConstructor.ConstructParticle();
0117 
0118   G4BaryonConstructor pBaryonConstructor;
0119   pBaryonConstructor.ConstructParticle();
0120 
0121   G4IonConstructor pIonConstructor;
0122   pIonConstructor.ConstructParticle();
0123 
0124   G4ShortLivedConstructor pShortLivedConstructor;
0125   pShortLivedConstructor.ConstructParticle();
0126 }
0127 
0128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0129 
0130 void PhysicsList::SetCuts()
0131 {
0132   SetCutValue(0 * mm, "proton");
0133   SetCutValue(10 * km, "e-");
0134   SetCutValue(10 * km, "e+");
0135   SetCutValue(10 * km, "gamma");
0136 }
0137 
0138 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......