source: trunk/examples/extended/medical/GammaTherapy/src/ParticlesBuilder.cc @ 1157

Last change on this file since 1157 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// $Id: ParticlesBuilder.cc,v 1.3 2006/06/29 17:27:56 gunter Exp $
28// GEANT4 tag $Name:  $
29//
30//---------------------------------------------------------------------------
31//
32// ClassName:   ParticleBuilder
33//
34// Author:      V.Ivanchenko 03.05.2004
35//
36// Modified:
37//
38//----------------------------------------------------------------------------
39//
40
41//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
44#include "ParticlesBuilder.hh"
45
46// Bosons
47#include "G4ChargedGeantino.hh"
48#include "G4Geantino.hh"
49#include "G4Gamma.hh"
50#include "G4OpticalPhoton.hh"
51
52// leptons
53#include "G4MuonPlus.hh"
54#include "G4MuonMinus.hh"
55#include "G4NeutrinoMu.hh"
56#include "G4AntiNeutrinoMu.hh"
57
58#include "G4Electron.hh"
59#include "G4Positron.hh"
60#include "G4NeutrinoE.hh"
61#include "G4AntiNeutrinoE.hh"
62
63// Hadrons
64#include "G4MesonConstructor.hh"
65#include "G4BaryonConstructor.hh"
66#include "G4IonConstructor.hh"
67
68//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
69
70ParticlesBuilder::ParticlesBuilder(const G4String& name)
71   :  G4VPhysicsConstructor(name)
72{}
73
74//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
75
76ParticlesBuilder::~ParticlesBuilder()
77{}
78
79//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
80
81void ParticlesBuilder::ConstructParticle()
82{
83
84// pseudo-particles
85  G4Geantino::GeantinoDefinition();
86  G4ChargedGeantino::ChargedGeantinoDefinition();
87 
88// gamma
89  G4Gamma::GammaDefinition();
90 
91// optical photon
92  G4OpticalPhoton::OpticalPhotonDefinition();
93
94// leptons
95  G4Electron::ElectronDefinition();
96  G4Positron::PositronDefinition();
97  G4MuonPlus::MuonPlusDefinition();
98  G4MuonMinus::MuonMinusDefinition();
99
100  G4NeutrinoE::NeutrinoEDefinition();
101  G4AntiNeutrinoE::AntiNeutrinoEDefinition();
102  G4NeutrinoMu::NeutrinoMuDefinition();
103  G4AntiNeutrinoMu::AntiNeutrinoMuDefinition(); 
104
105// mesons
106  G4MesonConstructor mConstructor;
107  mConstructor.ConstructParticle();
108
109// barions
110  G4BaryonConstructor bConstructor;
111  bConstructor.ConstructParticle();
112
113// ions
114  G4IonConstructor iConstructor;
115  iConstructor.ConstructParticle();
116}
117
118//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
119
Note: See TracBrowser for help on using the repository browser.