source: trunk/examples/extended/runAndEvent/RE01/src/RE01LeptonPhysics.cc@ 986

Last change on this file since 986 was 807, checked in by garnier, 18 years ago

update

File size: 4.7 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//
27// $Id: RE01LeptonPhysics.cc,v 1.2 2006/06/29 17:44:04 gunter Exp $
28// GEANT4 tag $Name: $
29//
30
31#include "RE01LeptonPhysics.hh"
32
33#include "G4ParticleTable.hh"
34#include "G4ProcessManager.hh"
35#include "G4MultipleScattering.hh"
36#include "G4eIonisation.hh"
37#include "G4eBremsstrahlung.hh"
38#include "G4eplusAnnihilation.hh"
39#include "G4MuIonisation.hh"
40#include "G4MuBremsstrahlung.hh"
41#include "G4MuPairProduction.hh"
42#include "G4hIonisation.hh"
43
44#include "G4Electron.hh"
45#include "G4Positron.hh"
46#include "G4MuonMinus.hh"
47#include "G4MuonPlus.hh"
48#include "G4TauMinus.hh"
49#include "G4TauPlus.hh"
50#include "G4NeutrinoE.hh"
51#include "G4AntiNeutrinoE.hh"
52#include "G4NeutrinoMu.hh"
53#include "G4AntiNeutrinoMu.hh"
54#include "G4NeutrinoTau.hh"
55#include "G4AntiNeutrinoTau.hh"
56
57
58RE01LeptonPhysics::RE01LeptonPhysics(const G4String& name)
59 : G4VPhysicsConstructor(name)
60{;}
61
62
63RE01LeptonPhysics::~RE01LeptonPhysics()
64{;}
65
66
67void RE01LeptonPhysics::ConstructParticle()
68{
69 G4Electron::ElectronDefinition();
70 G4Positron::PositronDefinition();
71 G4MuonMinus::MuonMinusDefinition();
72 G4MuonPlus::MuonPlusDefinition();
73 G4TauMinus::TauMinusDefinition();
74 G4TauPlus::TauPlusDefinition();
75
76 G4NeutrinoE::NeutrinoEDefinition();
77 G4AntiNeutrinoE::AntiNeutrinoEDefinition();
78 G4NeutrinoMu::NeutrinoMuDefinition();
79 G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
80 G4NeutrinoTau::NeutrinoTauDefinition();
81 G4AntiNeutrinoTau::AntiNeutrinoTauDefinition();
82}
83
84
85void RE01LeptonPhysics::ConstructProcess()
86{
87 G4ProcessManager * pManager = 0;
88
89 // Electron physics
90
91 pManager = G4Electron::Electron()->GetProcessManager();
92 pManager->AddProcess(new G4MultipleScattering(), -1, 1, 1);
93 pManager->AddProcess(new G4eIonisation(), -1, 2, 2);
94 pManager->AddProcess(new G4eBremsstrahlung(), -1, 3, 3);
95
96 //Positron physics
97
98 pManager = G4Positron::Positron()->GetProcessManager();
99 pManager->AddProcess(new G4MultipleScattering(), -1, 1, 1);
100 pManager->AddProcess(new G4eIonisation(), -1, 2, 2);
101 pManager->AddProcess(new G4eBremsstrahlung(), -1, 3, 3);
102 pManager->AddProcess(new G4eplusAnnihilation(), 0,-1, 4);
103
104 // Muon-
105
106 pManager = G4MuonMinus::MuonMinus()->GetProcessManager();
107 pManager->AddProcess(new G4MultipleScattering(), -1, 1, 1);
108 pManager->AddProcess(new G4MuIonisation(), -1, 2, 2);
109 pManager->AddProcess(new G4MuBremsstrahlung(), -1, 3, 3);
110 pManager->AddProcess(new G4MuPairProduction(), -1, 4, 4);
111
112 // Muon+
113
114 pManager = G4MuonPlus::MuonPlus()->GetProcessManager();
115 pManager->AddProcess(new G4MultipleScattering(), -1, 1, 1);
116 pManager->AddProcess(new G4MuIonisation(), -1, 2, 2);
117 pManager->AddProcess(new G4MuBremsstrahlung(), -1, 3, 3);
118 pManager->AddProcess(new G4MuPairProduction(), -1, 4, 4);
119
120 // Tau-
121
122 pManager = G4TauMinus::TauMinus()->GetProcessManager();
123 pManager->AddProcess(new G4MultipleScattering(), -1, 1, 1);
124 pManager->AddProcess(new G4hIonisation(), -1, 2, 2);
125
126 // Tau+
127
128 pManager = G4TauPlus::TauPlus()->GetProcessManager();
129 pManager->AddProcess(new G4MultipleScattering(), -1, 1, 1);
130 pManager->AddProcess(new G4hIonisation(), -1, 2, 2);
131
132}
Note: See TracBrowser for help on using the repository browser.