| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | // $Id: A01PhysicsList.cc,v 1.8 2006/06/29 16:33:03 gunter Exp $
|
|---|
| 27 | // --------------------------------------------------------------
|
|---|
| 28 | //
|
|---|
| 29 | // 28-Jan-04 Add QGSP_BERT and QGSP_BIC for hadronic lists. T. Koi
|
|---|
| 30 | // 22-Nov-04 Comment out QGSP_BERT and QGSP_BIC
|
|---|
| 31 | // Output Notificaiton message
|
|---|
| 32 | // All Particles are created in GeneralPhysics
|
|---|
| 33 |
|
|---|
| 34 | #include "A01PhysicsList.hh"
|
|---|
| 35 |
|
|---|
| 36 | #include "globals.hh"
|
|---|
| 37 | #include "G4ParticleDefinition.hh"
|
|---|
| 38 | #include "G4ParticleWithCuts.hh"
|
|---|
| 39 | #include "G4ProcessManager.hh"
|
|---|
| 40 | #include "G4ProcessVector.hh"
|
|---|
| 41 | #include "G4ParticleTypes.hh"
|
|---|
| 42 | #include "G4ParticleTable.hh"
|
|---|
| 43 |
|
|---|
| 44 | #include "G4Material.hh"
|
|---|
| 45 | #include "G4MaterialTable.hh"
|
|---|
| 46 | #include "G4ios.hh"
|
|---|
| 47 | #include <iomanip>
|
|---|
| 48 |
|
|---|
| 49 | #include "A01GeneralPhysics.hh"
|
|---|
| 50 | #include "A01EMPhysics.hh"
|
|---|
| 51 | #include "A01MuonPhysics.hh"
|
|---|
| 52 | #include "A01HadronPhysics.hh"
|
|---|
| 53 | #include "A01IonPhysics.hh"
|
|---|
| 54 |
|
|---|
| 55 | //#include "HadronPhysicsQGSP_BERT.hh"
|
|---|
| 56 | //#include "HadronPhysicsQGSP_BIC.hh"
|
|---|
| 57 |
|
|---|
| 58 | A01PhysicsList::A01PhysicsList(): G4VModularPhysicsList()
|
|---|
| 59 | {
|
|---|
| 60 |
|
|---|
| 61 | G4cout << "You are using the A01PhysicsList" << G4endl;
|
|---|
| 62 | G4cout << "Full set of particles (barions bosons and mesons) will be created and" << G4endl;
|
|---|
| 63 | G4cout << "Standard EM Physics and Low & High Energy parameterized models will be applied." << G4endl;
|
|---|
| 64 | G4cout << "A01PhysicsList is optimized for robustness" << G4endl;
|
|---|
| 65 | G4cout << "and not for any particular usage." << G4endl;
|
|---|
| 66 | G4cout << "For the hadronic physics, educated guesses of physics list are prepared for various use cases." << G4endl;
|
|---|
| 67 | G4cout << "When you will start REAL calculations for your own interest," << G4endl;
|
|---|
| 68 | G4cout << "please consider the usage of hadronic_lists instead of A01PhysicsLists." << G4endl;
|
|---|
| 69 | G4cout << "More information can also be found from the Geant4 HyperNews." << G4endl;
|
|---|
| 70 | G4cout << "http://geant4-hn.slac.stanford.edu:5090/Geant4-HyperNews/index" << G4endl;
|
|---|
| 71 | G4cout << "" << G4endl;
|
|---|
| 72 |
|
|---|
| 73 | // default cut value (1.0mm)
|
|---|
| 74 | defaultCutValue = 1.0*mm;
|
|---|
| 75 | SetVerboseLevel(1);
|
|---|
| 76 |
|
|---|
| 77 | // General Physics ( Create ALL Particle and apply Decay )
|
|---|
| 78 | RegisterPhysics( new A01GeneralPhysics("general") );
|
|---|
| 79 |
|
|---|
| 80 | // EM Physics ( Apply related Processes to gamma and e-/+)
|
|---|
| 81 | RegisterPhysics( new A01EMPhysics("standard EM"));
|
|---|
| 82 |
|
|---|
| 83 | // Muon Physics ( Apply related processes to mu and tau
|
|---|
| 84 | RegisterPhysics( new A01MuonPhysics("muon"));
|
|---|
| 85 |
|
|---|
| 86 | // Hadron Physics ( Apply related processes to hadrons )
|
|---|
| 87 | RegisterPhysics( new A01HadronPhysics("hadron"));
|
|---|
| 88 | // We do not use hadronic lists since v7.
|
|---|
| 89 | //RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
|
|---|
| 90 | //RegisterPhysics( new HadronPhysicsQGSP_BIC("hadron"));
|
|---|
| 91 |
|
|---|
| 92 | // Ion Physics ( Apply related processes to ions )
|
|---|
| 93 | RegisterPhysics( new A01IonPhysics("ion"));
|
|---|
| 94 |
|
|---|
| 95 | }
|
|---|
| 96 |
|
|---|
| 97 | A01PhysicsList::~A01PhysicsList()
|
|---|
| 98 | {
|
|---|
| 99 | }
|
|---|
| 100 |
|
|---|
| 101 | void A01PhysicsList::SetCuts()
|
|---|
| 102 | {
|
|---|
| 103 | // " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
|---|
| 104 | // the default cut value for all particle types
|
|---|
| 105 | SetCutsWithDefault();
|
|---|
| 106 | }
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|