source: trunk/examples/extended/geometry/olap/src/OlapPhysicsList.cc

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

update ti head

File size: 3.4 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: OlapPhysicsList.cc,v 1.3 2010/08/16 08:23:55 kurasige Exp $
28// GEANT4 tag $Name: examples-V09-03-09 $
29//
30//
31// --------------------------------------------------------------
32// OlapPhysicsList
33//
34// Author: Martin Liendl - Martin.Liendl@cern.ch
35//
36// --------------------------------------------------------------
37//
38#include "OlapPhysicsList.hh"
39
40#include "G4ios.hh"
41#include "G4ProcessManager.hh"
42#include "G4ProcessVector.hh"
43#include "G4ParticleTypes.hh"
44#include "G4ParticleTable.hh"
45#include "G4Material.hh"
46
47OlapPhysicsList::OlapPhysicsList(): G4VUserPhysicsList()
48{
49 currentDefaultCut = defaultCutValue = 2.0*mm;
50 cutForGamma = defaultCutValue;
51 cutForElectron = defaultCutValue;
52 cutForProton = defaultCutValue;
53
54 SetVerboseLevel(1);
55}
56
57
58OlapPhysicsList::~OlapPhysicsList()
59{}
60
61
62void OlapPhysicsList::ConstructParticle()
63{
64 // In this method, static member functions should be called
65 // for all particles which you want to use.
66 // This ensures that objects of these particle types will be
67 // created in the program.
68
69 ConstructBosons();
70}
71
72
73void OlapPhysicsList::ConstructBosons()
74{
75 // pseudo-particles
76 G4Geantino::GeantinoDefinition();
77}
78
79
80void OlapPhysicsList::ConstructProcess()
81{
82 AddTransportation();
83
84 theParticleIterator->reset();
85 //theParticleTable->DumpTable();
86
87 return;
88
89 // Olap-Process for stopping at user-defined surface ...
90/* will come in the next release
91 while( (*theParticleIterator)() ){
92 G4ParticleDefinition* particle = theParticleIterator->value();
93 G4ProcessManager* pmanager = particle->GetProcessManager();
94 pmanager->AddProcess(new OlapProc(),-1,-1,1);
95 }
96*/
97}
98
99
100#include "G4Decay.hh"
101
102
103void OlapPhysicsList::SetCuts()
104{
105 // don't need cuts because transportation is the only process ..
106 return;
107}
Note: See TracBrowser for help on using the repository browser.