Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE02MuonPhysics.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 //
28 //
29 // $Id$
30 // --------------------------------------------------------------
31 //
32 // 09-Oct-2003 mu+- tau+- processes are changed by T. Koi
33 // 05-Jan-2004 Add Brem. and PairProd. of AlongStepDoit for mu+- by T. Koi
34 
35 #include "RE02MuonPhysics.hh"
36 
37 #include "globals.hh"
38 #include "G4ios.hh"
39 #include <iomanip>
40 
41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43  : G4VPhysicsConstructor(name)
44 {
45 }
46 
47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
49 {
50 }
51 
52 #include "G4ParticleDefinition.hh"
53 #include "G4ParticleTable.hh"
54 
55 #include "G4MuonPlus.hh"
56 #include "G4MuonMinus.hh"
57 #include "G4TauMinus.hh"
58 #include "G4TauPlus.hh"
59 
60 #include "G4ProcessManager.hh"
61 
62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
64 {
65  G4ProcessManager * pManager = 0;
66 
67  //Muon+
69  G4VProcess* thempMultipleScattering = new G4MuMultipleScattering();
70  G4VProcess* thempBremsstrahlung = new G4MuBremsstrahlung();
71  G4VProcess* thempPairProduction = new G4MuPairProduction();
72  G4VProcess* thempIonisation = new G4MuIonisation();
73  //
74  // add processes
75  pManager->AddProcess(thempIonisation);
76  pManager->AddProcess(thempMultipleScattering);
77  pManager->AddProcess(thempBremsstrahlung);
78  pManager->AddProcess(thempPairProduction);
79  //
80  // set ordering for AlongStepDoIt
81  pManager->SetProcessOrdering(thempMultipleScattering, idxAlongStep,1);
82  pManager->SetProcessOrdering(thempIonisation, idxAlongStep,2);
83  pManager->SetProcessOrdering(thempBremsstrahlung, idxAlongStep,3);
84  pManager->SetProcessOrdering(thempPairProduction, idxAlongStep,4);
85 
86  // set ordering for PostStepDoIt
87  pManager->SetProcessOrdering(thempMultipleScattering, idxPostStep,1);
88  pManager->SetProcessOrdering(thempIonisation, idxPostStep,2);
89  pManager->SetProcessOrdering(thempBremsstrahlung, idxPostStep,3);
90  pManager->SetProcessOrdering(thempPairProduction, idxPostStep,4);
91 
92  //Muon-
94  G4VProcess* themmMultipleScattering = new G4MuMultipleScattering();
95  G4VProcess* themmBremsstrahlung = new G4MuBremsstrahlung();
96  G4VProcess* themmPairProduction = new G4MuPairProduction();
97  G4VProcess* themmIonisation = new G4MuIonisation();
98  //
99  // add processes
100  pManager->AddProcess(themmIonisation);
101  pManager->AddProcess(themmMultipleScattering);
102  pManager->AddProcess(themmBremsstrahlung);
103  pManager->AddProcess(themmPairProduction);
104  //
105  // set ordering for AlongStepDoIt
106  pManager->SetProcessOrdering(themmMultipleScattering, idxAlongStep,1);
107  pManager->SetProcessOrdering(themmIonisation, idxAlongStep,2);
108  pManager->SetProcessOrdering(themmBremsstrahlung, idxAlongStep,3);
109  pManager->SetProcessOrdering(themmPairProduction, idxAlongStep,4);
110  // set ordering for PostStepDoIt
111  pManager->SetProcessOrdering(themmMultipleScattering, idxPostStep,1);
112  pManager->SetProcessOrdering(themmIonisation, idxPostStep,2);
113  pManager->SetProcessOrdering(themmBremsstrahlung, idxPostStep,3);
114  pManager->SetProcessOrdering(themmPairProduction, idxPostStep,4);
115 
116  // Tau+ Physics
117  pManager = G4TauPlus::TauPlus()->GetProcessManager();
118  G4VProcess* thetpMultipleScattering = new G4hMultipleScattering();
119  G4VProcess* thetpIonisation = new G4hIonisation();
120  //
121  // add processes
122  pManager->AddProcess(thetpIonisation);
123  pManager->AddProcess(thetpMultipleScattering);
124  //
125  // set ordering for AlongStepDoIt
126  pManager->SetProcessOrdering(thetpMultipleScattering, idxAlongStep,1);
127  pManager->SetProcessOrdering(thetpIonisation, idxAlongStep,2);
128  //
129  // set ordering for PostStepDoIt
130  pManager->SetProcessOrdering(thetpMultipleScattering, idxPostStep,1);
131  pManager->SetProcessOrdering(thetpIonisation, idxPostStep,2);
132 
133  // Tau- Physics
134  pManager = G4TauMinus::TauMinus()->GetProcessManager();
135  G4VProcess* thetmMultipleScattering = new G4hMultipleScattering();
136  G4VProcess* thetmIonisation = new G4hIonisation();
137  //
138  // add processes
139  pManager->AddProcess(thetmIonisation);
140  pManager->AddProcess(thetmMultipleScattering);
141  //
142  // set ordering for AlongStepDoIt
143  pManager->SetProcessOrdering(thetmMultipleScattering, idxAlongStep,1);
144  pManager->SetProcessOrdering(thetmIonisation, idxAlongStep,2);
145  //
146  // set ordering for PostStepDoIt
147  pManager->SetProcessOrdering(thetmMultipleScattering, idxPostStep,1);
148  pManager->SetProcessOrdering(thetmIonisation, idxPostStep,2);
149 
150 }