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

Last change on this file since 1344 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

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