source: trunk/source/physics_lists/builders/src/G4LHEPStoppingPhysics.cc@ 921

Last change on this file since 921 was 850, checked in by garnier, 17 years ago

geant4.8.2 beta

File size: 4.3 KB
Line 
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.1 2006/10/31 11:35:03 gunter Exp $
27// GEANT4 tag $Name: HEAD $
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
59G4LHEPStoppingPhysics::G4LHEPStoppingPhysics(const G4String& nam, G4int ver)
60 : G4VPhysicsConstructor(nam), verbose(ver), wasActivated(false)
61{}
62
63G4LHEPStoppingPhysics::~G4LHEPStoppingPhysics()
64{
65 if(wasActivated) {
66 delete muProcess;
67 delete piProcess;
68 delete kProcess;
69 delete apProcess;
70 delete anProcess;
71 }
72}
73
74void G4LHEPStoppingPhysics::ConstructParticle()
75{
76// G4cout << "G4QStoppingPhysics::ConstructParticle" << G4endl;
77 G4LeptonConstructor pLeptonConstructor;
78 pLeptonConstructor.ConstructParticle();
79
80 G4MesonConstructor pMesonConstructor;
81 pMesonConstructor.ConstructParticle();
82
83 G4BaryonConstructor pBaryonConstructor;
84 pBaryonConstructor.ConstructParticle();
85
86}
87
88void G4LHEPStoppingPhysics::ConstructProcess()
89{
90 if(wasActivated) return;
91 G4ProcessManager * aProcMan = 0;
92 wasActivated=true;
93 //G4cout << " adding stopping hadron Physics" << G4endl;
94
95 // Muon Minus Physics
96 aProcMan = G4MuonMinus::MuonMinus()->GetProcessManager();
97 muProcess = new G4MuonMinusCaptureAtRest();
98 aProcMan->AddRestProcess(muProcess);
99
100 // PionMinus
101 aProcMan = G4PionMinus::PionMinus()->GetProcessManager();
102 piProcess = new G4PionMinusAbsorptionAtRest();
103 aProcMan->AddRestProcess(piProcess);
104
105 // KaonMinus
106 aProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
107 kProcess = new G4KaonMinusAbsorption();
108 aProcMan->AddRestProcess(kProcess);
109
110 // anti-Proton
111 aProcMan = G4AntiProton::AntiProton()->GetProcessManager();
112 apProcess = new G4AntiProtonAnnihilationAtRest();
113 aProcMan->AddRestProcess(apProcess);
114
115 // AntiNeutron
116 aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager();
117 anProcess = new G4AntiNeutronAnnihilationAtRest();
118 aProcMan->AddRestProcess(anProcess);
119
120}
Note: See TracBrowser for help on using the repository browser.