source: trunk/examples/advanced/gammaray_telescope/src/GammaRayTelEMPhysics.cc @ 1321

Last change on this file since 1321 was 807, checked in by garnier, 16 years ago

update

File size: 3.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: GammaRayTelEMPhysics.cc,v 1.4 2006/06/29 15:56:36 gunter Exp $
28// GEANT4 tag $Name:  $
29//
30//
31
32#include "GammaRayTelEMPhysics.hh"
33
34#include "globals.hh"
35#include "G4ios.hh"
36#include <iomanip>  
37
38
39GammaRayTelEMPhysics::GammaRayTelEMPhysics(const G4String& name)
40               :  G4VPhysicsConstructor(name)
41{
42}
43
44GammaRayTelEMPhysics::~GammaRayTelEMPhysics()
45{
46}
47
48void GammaRayTelEMPhysics::ConstructParticle()
49{
50}
51
52
53#include "G4ProcessManager.hh"
54
55
56void GammaRayTelEMPhysics::ConstructProcess()
57{
58  G4ProcessManager * pManager = 0;
59 
60  // Gamma Physics
61  pManager = G4Gamma::Gamma()->GetProcessManager();
62
63  // std
64
65  pManager->AddDiscreteProcess(&thePhotoEffect);
66  pManager->AddDiscreteProcess(&theComptonEffect);
67  pManager->AddDiscreteProcess(&thePairProduction);
68
69  // lowe
70
71  pManager->AddDiscreteProcess(&theLowEnPhoto);
72  pManager->AddDiscreteProcess(&theLowEnCompton);
73  pManager->AddDiscreteProcess(&theLowEnPair);
74  pManager->AddDiscreteProcess(&theLowEnRayleigh);
75 
76  // Electron Physics
77  pManager = G4Electron::Electron()->GetProcessManager();
78
79   // add processes
80
81  pManager->AddDiscreteProcess(&theElectronBremsStrahlung); 
82  pManager->AddProcess(&theElectronIonisation, ordInActive,2, 2);
83
84  pManager->AddDiscreteProcess(&theLowEnBremss);
85  pManager->AddProcess(&theLowEnIon, ordInActive,2, 2);
86
87
88  pManager->AddProcess(&theElectronMultipleScattering);
89  pManager->SetProcessOrdering(&theElectronMultipleScattering, idxAlongStep,  1);
90  pManager->SetProcessOrdering(&theElectronMultipleScattering, idxPostStep,  1);
91
92
93
94  //Positron Physics
95  pManager = G4Positron::Positron()->GetProcessManager();
96  // add processes
97  pManager->AddDiscreteProcess(&thePositronBremsStrahlung);
98
99  pManager->AddDiscreteProcess(&theAnnihilation);
100
101  pManager->AddRestProcess(&theAnnihilation);
102
103  pManager->AddProcess(&thePositronIonisation, ordInActive,2, 2);
104
105  pManager->AddProcess(&thePositronMultipleScattering);
106  pManager->SetProcessOrdering(&thePositronMultipleScattering, idxAlongStep,  1);
107  pManager->SetProcessOrdering(&thePositronMultipleScattering, idxPostStep,  1);
108
109}
110
111
112
Note: See TracBrowser for help on using the repository browser.