source: trunk/examples/novice/N01/src/ExN01PhysicsList.cc@ 1190

Last change on this file since 1190 was 807, checked in by garnier, 17 years ago

update

File size: 2.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: ExN01PhysicsList.cc,v 1.6 2006/06/29 17:47:21 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31
32#include "ExN01PhysicsList.hh"
33#include "G4ParticleTypes.hh"
34
35
36ExN01PhysicsList::ExN01PhysicsList()
37{;}
38
39ExN01PhysicsList::~ExN01PhysicsList()
40{;}
41
42void ExN01PhysicsList::ConstructParticle()
43{
44 // In this method, static member functions should be called
45 // for all particles which you want to use.
46 // This ensures that objects of these particle types will be
47 // created in the program.
48
49 G4Geantino::GeantinoDefinition();
50}
51
52void ExN01PhysicsList::ConstructProcess()
53{
54 // Define transportation process
55
56 AddTransportation();
57}
58
59void ExN01PhysicsList::SetCuts()
60{
61 // uppress error messages even in case e/gamma/proton do not exist
62 G4int temp = GetVerboseLevel(); SetVerboseLevel(0);
63 // " G4VUserPhysicsList::SetCutsWithDefault" method sets
64 // the default cut value for all particle types
65 SetCutsWithDefault();
66
67 // Retrieve verbose level
68 SetVerboseLevel(temp);
69}
70
Note: See TracBrowser for help on using the repository browser.