Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4LHEPStoppingPhysics.cc
Go to the documentation of this file.
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$
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4LHEPStoppingPhysics
31 //
32 // Author: 2002 J.P. Wellisch
33 //
34 // Modified:
35 // 10.11.2005 V.Ivanchenko edit to provide a standard and add mu-
36 // 16.10.2012 A.Ribon: deprecated class, to be removed in G4 version 10.
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"
55 #include "G4KaonMinusAbsorption.hh"
58 #include "G4HadronicDeprecate.hh"
59 
60 // factory
62 //
64 
65 
67  : G4VPhysicsConstructor("LHEP Stopping")
68  , muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0)
69  , verbose(ver), wasActivated(false)
70 {
71  G4HadronicDeprecate("G4LHEPStoppingPhysics");
72 }
73 
75 : G4VPhysicsConstructor(nam), muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0)
76 , verbose(ver), wasActivated(false)
77 {
78  G4HadronicDeprecate("G4LHEPStoppingPhysics");
79 }
80 
82 {
83  if(wasActivated) {
84  delete muProcess;
85  delete piProcess;
86  delete kProcess;
87  delete apProcess;
88  delete anProcess;
89  }
90 }
91 
93 {
94 // G4cout << "G4QStoppingPhysics::ConstructParticle" << G4endl;
95  G4LeptonConstructor pLeptonConstructor;
96  pLeptonConstructor.ConstructParticle();
97 
98  G4MesonConstructor pMesonConstructor;
99  pMesonConstructor.ConstructParticle();
100 
101  G4BaryonConstructor pBaryonConstructor;
102  pBaryonConstructor.ConstructParticle();
103 
104 }
105 
107 {
108  if(wasActivated) return;
109  G4ProcessManager * aProcMan = 0;
110  wasActivated=true;
111  //G4cout << " adding stopping hadron Physics" << G4endl;
112 
113  // Muon Minus Physics
115  muProcess = new G4MuonMinusCaptureAtRest();
116  aProcMan->AddRestProcess(muProcess);
117 
118  // PionMinus
120  piProcess = new G4PionMinusAbsorptionAtRest();
121  aProcMan->AddRestProcess(piProcess);
122 
123  // KaonMinus
125  kProcess = new G4KaonMinusAbsorption();
126  aProcMan->AddRestProcess(kProcess);
127 
128  // anti-Proton
130  apProcess = new G4AntiProtonAnnihilationAtRest();
131  aProcMan->AddRestProcess(apProcess);
132 
133  // AntiNeutron
135  anProcess = new G4AntiNeutronAnnihilationAtRest();
136  aProcMan->AddRestProcess(anProcess);
137 
138 }