| 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: G4LHEPStoppingPhysics.cc,v 1.2 2010/06/03 15:03:53 gunter Exp $
|
|---|
| 27 | // GEANT4 tag $Name: geant4-09-04-beta-01 $
|
|---|
| 28 | //
|
|---|
| 29 | //---------------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // ClassName: G4LHEPStoppingPhysics
|
|---|
| 32 | //
|
|---|
| 33 | // Author: 2002 J.P. Wellisch
|
|---|
| 34 | //
|
|---|
| 35 | // Modified:
|
|---|
| 36 | // 10.11.2005 V.Ivanchenko edit to provide a standard and add mu-
|
|---|
| 37 | //
|
|---|
| 38 | //----------------------------------------------------------------------------
|
|---|
| 39 | //
|
|---|
| 40 |
|
|---|
| 41 | #include "G4LHEPStoppingPhysics.hh"
|
|---|
| 42 |
|
|---|
| 43 | #include "G4ParticleTable.hh"
|
|---|
| 44 | #include "G4ProcessManager.hh"
|
|---|
| 45 | #include "G4LeptonConstructor.hh"
|
|---|
| 46 | #include "G4MesonConstructor.hh"
|
|---|
| 47 | #include "G4BaryonConstructor.hh"
|
|---|
| 48 | #include "G4MuonMinus.hh"
|
|---|
| 49 | #include "G4PionMinus.hh"
|
|---|
| 50 | #include "G4KaonMinus.hh"
|
|---|
| 51 | #include "G4AntiProton.hh"
|
|---|
| 52 | #include "G4AntiNeutron.hh"
|
|---|
| 53 | #include "G4MuonMinusCaptureAtRest.hh"
|
|---|
| 54 | #include "G4PionMinusAbsorptionAtRest.hh"
|
|---|
| 55 | #include "G4KaonMinusAbsorption.hh"
|
|---|
| 56 | #include "G4AntiProtonAnnihilationAtRest.hh"
|
|---|
| 57 | #include "G4AntiNeutronAnnihilationAtRest.hh"
|
|---|
| 58 |
|
|---|
| 59 | G4LHEPStoppingPhysics::G4LHEPStoppingPhysics(G4int ver)
|
|---|
| 60 | : G4VPhysicsConstructor("LHEP Stopping"), verbose(ver), wasActivated(false)
|
|---|
| 61 | {}
|
|---|
| 62 |
|
|---|
| 63 | G4LHEPStoppingPhysics::G4LHEPStoppingPhysics(const G4String& nam, G4int ver)
|
|---|
| 64 | : G4VPhysicsConstructor(nam), verbose(ver), wasActivated(false)
|
|---|
| 65 | {}
|
|---|
| 66 |
|
|---|
| 67 | G4LHEPStoppingPhysics::~G4LHEPStoppingPhysics()
|
|---|
| 68 | {
|
|---|
| 69 | if(wasActivated) {
|
|---|
| 70 | delete muProcess;
|
|---|
| 71 | delete piProcess;
|
|---|
| 72 | delete kProcess;
|
|---|
| 73 | delete apProcess;
|
|---|
| 74 | delete anProcess;
|
|---|
| 75 | }
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
| 78 | void G4LHEPStoppingPhysics::ConstructParticle()
|
|---|
| 79 | {
|
|---|
| 80 | // G4cout << "G4QStoppingPhysics::ConstructParticle" << G4endl;
|
|---|
| 81 | G4LeptonConstructor pLeptonConstructor;
|
|---|
| 82 | pLeptonConstructor.ConstructParticle();
|
|---|
| 83 |
|
|---|
| 84 | G4MesonConstructor pMesonConstructor;
|
|---|
| 85 | pMesonConstructor.ConstructParticle();
|
|---|
| 86 |
|
|---|
| 87 | G4BaryonConstructor pBaryonConstructor;
|
|---|
| 88 | pBaryonConstructor.ConstructParticle();
|
|---|
| 89 |
|
|---|
| 90 | }
|
|---|
| 91 |
|
|---|
| 92 | void G4LHEPStoppingPhysics::ConstructProcess()
|
|---|
| 93 | {
|
|---|
| 94 | if(wasActivated) return;
|
|---|
| 95 | G4ProcessManager * aProcMan = 0;
|
|---|
| 96 | wasActivated=true;
|
|---|
| 97 | //G4cout << " adding stopping hadron Physics" << G4endl;
|
|---|
| 98 |
|
|---|
| 99 | // Muon Minus Physics
|
|---|
| 100 | aProcMan = G4MuonMinus::MuonMinus()->GetProcessManager();
|
|---|
| 101 | muProcess = new G4MuonMinusCaptureAtRest();
|
|---|
| 102 | aProcMan->AddRestProcess(muProcess);
|
|---|
| 103 |
|
|---|
| 104 | // PionMinus
|
|---|
| 105 | aProcMan = G4PionMinus::PionMinus()->GetProcessManager();
|
|---|
| 106 | piProcess = new G4PionMinusAbsorptionAtRest();
|
|---|
| 107 | aProcMan->AddRestProcess(piProcess);
|
|---|
| 108 |
|
|---|
| 109 | // KaonMinus
|
|---|
| 110 | aProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
|
|---|
| 111 | kProcess = new G4KaonMinusAbsorption();
|
|---|
| 112 | aProcMan->AddRestProcess(kProcess);
|
|---|
| 113 |
|
|---|
| 114 | // anti-Proton
|
|---|
| 115 | aProcMan = G4AntiProton::AntiProton()->GetProcessManager();
|
|---|
| 116 | apProcess = new G4AntiProtonAnnihilationAtRest();
|
|---|
| 117 | aProcMan->AddRestProcess(apProcess);
|
|---|
| 118 |
|
|---|
| 119 | // AntiNeutron
|
|---|
| 120 | aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager();
|
|---|
| 121 | anProcess = new G4AntiNeutronAnnihilationAtRest();
|
|---|
| 122 | aProcMan->AddRestProcess(anProcess);
|
|---|
| 123 |
|
|---|
| 124 | }
|
|---|