Back to home page

EIC code displayed by LXR

 
 

    


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

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 
0031 #include "PhysicsList.hh"
0032 
0033 #include "G4DeexPrecoParameters.hh"
0034 #include "G4EmBuilder.hh"
0035 #include "G4IonConstructor.hh"
0036 #include "G4LossTableManager.hh"
0037 #include "G4NuclearLevelData.hh"
0038 #include "G4NuclideTable.hh"
0039 #include "G4ParticleTypes.hh"
0040 #include "G4PhysListUtil.hh"
0041 #include "G4PhysicsListHelper.hh"
0042 #include "G4Radioactivation.hh"
0043 #include "G4SystemOfUnits.hh"
0044 #include "G4UAtomicDeexcitation.hh"
0045 #include "G4UnitsTable.hh"
0046 #include "globals.hh"
0047 
0048 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0049 
0050 PhysicsList::PhysicsList()
0051 {
0052   // instantiate Physics List infrastructure
0053   //
0054   G4PhysListUtil::InitialiseParameters();
0055 
0056   // update G4NuclideTable time limit
0057   //
0058   const G4double meanLife = 1 * nanosecond;
0059   G4NuclideTable::GetInstance()->SetMeanLifeThreshold(meanLife);
0060   G4NuclideTable::GetInstance()->SetLevelTolerance(1.0 * eV);
0061 
0062   // define flags for the atomic de-excitation module
0063   //
0064   G4EmParameters::Instance()->SetDefaults();
0065   G4EmParameters::Instance()->SetAugerCascade(true);
0066   G4EmParameters::Instance()->SetDeexcitationIgnoreCut(true);
0067 
0068   // define flags for nuclear gamma de-excitation model
0069   //
0070   G4DeexPrecoParameters* deex = G4NuclearLevelData::GetInstance()->GetParameters();
0071   deex->SetCorrelatedGamma(false);
0072   deex->SetStoreAllLevels(true);
0073   deex->SetInternalConversionFlag(true);
0074   deex->SetIsomerProduction(true);
0075   deex->SetMaxLifeTime(meanLife);
0076 
0077   // set default cut in range value
0078   //
0079   SetDefaultCutValue(1 * mm);
0080 }
0081 
0082 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0083 
0084 void PhysicsList::ConstructParticle()
0085 {
0086   // minimal set of particles for EM physics and radioactive decay
0087   //
0088   G4EmBuilder::ConstructMinimalEmSet();
0089 }
0090 
0091 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0092 
0093 void PhysicsList::ConstructProcess()
0094 {
0095   AddTransportation();
0096 
0097   G4Radioactivation* radioactiveDecay = new G4Radioactivation();
0098 
0099   G4bool ARMflag = false;
0100   radioactiveDecay->SetARM(ARMflag);  // Atomic Rearangement
0101 
0102   // EM physics constructor is not used in this example, so
0103   // it is needed to instantiate and to initialize atomic deexcitation
0104   //
0105   G4LossTableManager* man = G4LossTableManager::Instance();
0106   G4VAtomDeexcitation* deex = man->AtomDeexcitation();
0107   if (nullptr == deex) {
0108     deex = new G4UAtomicDeexcitation();
0109     man->SetAtomDeexcitation(deex);
0110   }
0111   deex->InitialiseAtomicDeexcitation();
0112 
0113   // register radioactiveDecay
0114   //
0115   G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
0116   ph->RegisterProcess(radioactiveDecay, G4GenericIon::GenericIon());
0117 }
0118 
0119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......