source: trunk/source/geometry/solids/test/fred/src/FredPhysicsList.cc @ 1316

Last change on this file since 1316 was 1316, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 2.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// FredPhysicsList
28//
29// Implementation of Physics for fred
30//
31
32#include "FredPhysicsList.hh"
33#include "G4ParticleTypes.hh"
34
35//
36// Constructor
37//
38FredPhysicsList::FredPhysicsList(): G4VUserPhysicsList()
39{
40  defaultCutValue = 2.0*mm;
41}
42
43
44
45FredPhysicsList::~FredPhysicsList() {;}
46
47//
48// ConstructParticle: Define particles
49//
50void FredPhysicsList::ConstructParticle()
51{
52        // Particles are defined via static member functions
53
54        G4Geantino::GeantinoDefinition();
55        G4MuonMinus::MuonMinusDefinition();
56}
57
58//
59// ConstructProcess: define processes
60//
61void FredPhysicsList::ConstructProcess()
62{
63        AddTransportation();
64}
65
66//
67// SetCuts: define cuts
68//
69void FredPhysicsList::SetCuts()
70{
71        // From "novice" example 1
72
73        // uppress error messages even in case e/gamma/proton do not exist           
74        G4int temp = GetVerboseLevel();                                                SetVerboseLevel(0);                                                           
75        //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
76        //   the default cut value for all particle types
77        SetCutsWithDefault();   
78
79        // Retrieve verbose level
80        SetVerboseLevel(temp); 
81        //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
82        //   the default cut value for all particle types
83        SetCutsWithDefault();   
84}
Note: See TracBrowser for help on using the repository browser.