source: trunk/examples/advanced/radiation_monitor/physics/src/RadmonPhysicsPositronStandard.cc @ 1321

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

update

File size: 3.9 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// File name:     RadmonPhysicsPositronStandard.cc
28// Creation date: Nov 2005
29// Main author:   Riccardo Capra <capra@ge.infn.it>
30//
31// Id:            $Id: RadmonPhysicsPositronStandard.cc,v 1.4 2006/06/29 16:19:50 gunter Exp $
32// Tag:           $Name:  $
33//
34
35#include "RadmonPhysicsPositronStandard.hh"
36
37#include "G4Gamma.hh"
38#include "G4Positron.hh"
39#include "G4LeptonConstructor.hh"
40
41#include "G4ProcessManager.hh"
42#include "G4MultipleScattering.hh"
43#include "G4eIonisation.hh"
44#include "G4eBremsstrahlung.hh"
45#include "G4eplusAnnihilation.hh"
46#include "G4StepLimiter.hh"
47
48RadmonVSubPhysicsListWithLabel *                RadmonPhysicsPositronStandard :: New(void) const
49{
50 return new RadmonPhysicsPositronStandard;
51}
52
53
54
55void                                            RadmonPhysicsPositronStandard :: ConstructParticle(void)
56{
57 G4Gamma::GammaDefinition();
58 G4LeptonConstructor::ConstructParticle();
59}
60
61
62
63void                                            RadmonPhysicsPositronStandard :: ConstructProcess(void)
64{
65 G4ProcessManager * manager(G4Positron::PositronDefinition()->GetProcessManager());
66
67 manager->AddProcess(new G4MultipleScattering, ordInActive,           1, 1);
68 manager->AddProcess(new G4eIonisation,        ordInActive,           2, 2);
69 manager->AddProcess(new G4eBremsstrahlung,    ordInActive, ordInActive, 3);
70 manager->AddProcess(new G4eplusAnnihilation,            0, ordInActive, 4);
71 manager->AddProcess(new G4StepLimiter,        ordInActive, ordInActive, 5);
72}
73
74
75
76void                                            RadmonPhysicsPositronStandard :: SetCuts(void)
77{
78}
79
80
81
82
83
84const RadmonPhysicsInfoList &                   RadmonPhysicsPositronStandard :: Provides(void) const
85{
86 if (infoList.GetNPhysicsInfos()==0)
87 {
88  RadmonPhysicsInfo info;
89 
90  info.SetProcessName("MultipleScattering");
91  info.SetParticleDefinition(G4Positron::PositronDefinition());
92  info.SetMinEnergy(0.1*keV);
93  info.SetMaxEnergy(100.*TeV);
94  infoList.InsertPhysicsInfo(info);
95
96  info.SetProcessName("Ionisation");
97  infoList.InsertPhysicsInfo(info);
98
99  info.SetProcessName("Bremsstrahlung");
100  infoList.InsertPhysicsInfo(info);
101
102  info.SetProcessName("ePlusAnnihilation");
103  infoList.InsertPhysicsInfo(info);
104
105  info.SetProcessName("StepLimiter");
106  info.SetMinEnergy(0.*eV);
107  info.SetMaxEnergy(DBL_MAX);
108  infoList.InsertPhysicsInfo(info);
109 }
110 
111 return infoList;
112}
Note: See TracBrowser for help on using the repository browser.