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

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

update to geant4.9.3

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