source: trunk/source/processes/electromagnetic/lowenergy/test/hTest/src/hTestStanPhysicsList.cc @ 1199

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

nvx fichiers dans CVS

File size: 6.2 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//
28//---------------------------------------------------------------------------
29//
30// ClassName:   hTestStanPhysicsList
31// 
32// Description: Standard EM physics list
33//
34// Authors:   08.04.01  V.Ivanchenko
35//
36// Modified:
37//
38//----------------------------------------------------------------------------
39//
40
41//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
43
44#include "hTestStanPhysicsList.hh"
45
46#include "G4ComptonScattering.hh"
47#include "G4GammaConversion.hh"
48#include "G4PhotoElectricEffect.hh"
49
50#include "G4MultipleScattering.hh"
51#include "G4MultipleScattering.hh"
52
53#include "G4eIonisation.hh"
54#include "G4eBremsstrahlung.hh"
55#include "G4eplusAnnihilation.hh"
56
57#include "G4MuIonisation.hh"
58#include "G4MuBremsstrahlung.hh"
59#include "G4MuPairProduction.hh"
60#include "G4MuonMinusCaptureAtRest.hh"
61
62#include "G4hIonisation.hh"
63
64
65//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
66
67hTestStanPhysicsList::hTestStanPhysicsList()
68{
69  verbose = 0;
70}
71
72//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
73
74void hTestStanPhysicsList::ConstructProcess()
75{
76  G4cout << "Standard EM PhysicsList will be constructed" << G4endl;
77
78  theParticleIterator->reset();
79  while( (*theParticleIterator)() ){
80    G4ParticleDefinition* particle = theParticleIterator->value();
81    G4ProcessManager* pmanager = particle->GetProcessManager();
82    G4String particleName = particle->GetParticleName();
83    G4String particleType = particle->GetParticleType();
84    //    G4double charge = particle->GetPDGCharge();
85     
86    if (particleName == "gamma") {
87
88      pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
89      pmanager->AddDiscreteProcess(new G4ComptonScattering);
90      pmanager->AddDiscreteProcess(new G4GammaConversion);   
91     
92    } else if (particleName == "e-") {
93      G4MultipleScattering* msc = new G4MultipleScattering();
94      msc->SetFacrange(0.1);
95      pmanager->AddProcess(msc, -1, 1,1);
96      G4eIonisation* eion = new G4eIonisation();
97      eion->SetSubSec(false);
98      pmanager->AddProcess(eion,   -1, 2,2);
99      G4eBremsstrahlung* ebr = new G4eBremsstrahlung();
100      ebr->SetSubSec(false);
101      pmanager->AddProcess(ebr,    -1,-1,3);       
102
103    } else if (particleName == "e+") {
104
105      pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
106      G4eIonisation* pion = new G4eIonisation();
107      pion->SetSubSec(false);
108      pmanager->AddProcess(pion,        -1, 2,2);
109      G4eBremsstrahlung* pbr = new G4eBremsstrahlung();
110      pbr->SetSubSec(false);
111      pmanager->AddProcess(pbr,    -1,-1,3);
112      pmanager->AddProcess(new G4eplusAnnihilation,   0,-1,4);
113 
114    } else if( particleName == "mu+" || 
115               particleName == "mu-"    ) {
116
117     
118      pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
119      pmanager->AddProcess(new G4MuIonisation,      -1, 2,2);
120      pmanager->AddProcess(new G4MuBremsstrahlung,  -1,-1,3);
121      pmanager->AddProcess(new G4MuPairProduction,  -1,-1,4);                 
122      if(particleName == "mu-") 
123        pmanager->AddProcess(new G4MuonMinusCaptureAtRest,0,-1,-1);
124     
125    } else if (
126                particleName == "proton" 
127               || particleName == "anti_proton" 
128               || particleName == "pi+" 
129               || particleName == "pi-" 
130               || particleName == "kaon+" 
131               || particleName == "kaon-" 
132              )
133    {
134      pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
135      if(0 < verbose) {
136        G4cout << "Hadronic processes for " << particleName << G4endl; 
137      }
138
139      G4hIonisation* hIon = new G4hIonisation() ;
140      hIon->SetVerboseLevel(0);
141      pmanager->AddProcess(hIon,-1,2,2);
142   
143    } else if (   particleName == "alpha" 
144               || particleName == "deuteron" 
145               || particleName == "triton" 
146               || particleName == "IonC12" 
147               || particleName == "IonAr40" 
148               || particleName == "IonFe56" 
149               || particleName == "GenericIon"
150               || particleType == "nucleus") 
151             
152    {
153      pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
154
155      if(0 < verbose) {
156        G4cout << "Ionic processes for " << particleName << G4endl; 
157      }
158
159      G4hIonisation* iIon = new G4hIonisation();
160      iIon->SetVerboseLevel(1);
161      pmanager->AddProcess(iIon,-1,1,1);
162    }
163  }
164}
165
166//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
167
168
Note: See TracBrowser for help on using the repository browser.