Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:22:42

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