source: trunk/source/processes/scoring/test/test1/src/A01PhysicsList.cc

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

nvx fichiers dans CVS

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// $Id: A01PhysicsList.cc,v 1.3 2006/12/13 15:49:23 gunter Exp $
27// --------------------------------------------------------------
28//
29// 28-Jan-04 Add QGSP_BERT and QGSP_BIC for hadronic lists. T. Koi
30// 22-Nov-04 Comment out QGSP_BERT and QGSP_BIC
31//           Output Notificaiton message             
32//           All Particles are created in GeneralPhysics
33
34#include "A01PhysicsList.hh"
35
36#include "globals.hh"
37#include "G4ParticleDefinition.hh"
38#include "G4ParticleWithCuts.hh"
39#include "G4ProcessManager.hh"
40#include "G4ProcessVector.hh"
41#include "G4ParticleTypes.hh"
42#include "G4ParticleTable.hh"
43
44#include "G4Material.hh"
45#include "G4MaterialTable.hh"
46#include "G4ios.hh"
47#include <iomanip>
48
49////////////////////////////////////////////////#include "A01Transport.hh"
50#include "A01ParaPhysics.hh"
51#include "A01GeneralPhysics.hh"
52#include "A01EMPhysics.hh"
53#include "A01MuonPhysics.hh"
54#include "A01HadronPhysics.hh"
55#include "A01IonPhysics.hh"
56
57
58A01PhysicsList::A01PhysicsList(G4bool ifPara,G4bool ifDisp):  G4VModularPhysicsList()
59{
60  // default cut value  (1.0mm)
61  defaultCutValue = 1.0*mm;
62  SetVerboseLevel(1);
63
64  // Transportation
65////////////////////////////////////////////////  RegisterPhysics( new A01Transport("Transport") );
66
67  // Parallel worl navigation process
68  if(ifPara) RegisterPhysics( new A01ParaPhysics("parallelScoring"));
69
70  // General Physics ( Create ALL Particle and apply Decay )
71  RegisterPhysics( new A01GeneralPhysics("general") );
72
73  // EM Physics ( Apply related Processes to gamma and e-/+)
74  RegisterPhysics( new A01EMPhysics("standard EM",ifDisp));
75
76  // Muon Physics ( Apply related processes to mu and tau
77  RegisterPhysics(  new A01MuonPhysics("muon"));
78
79   // Hadron Physics ( Apply related processes to hadrons )
80  RegisterPhysics(  new A01HadronPhysics("hadron"));
81
82  // Ion Physics ( Apply related processes to ions )
83  RegisterPhysics( new A01IonPhysics("ion"));
84
85}
86
87A01PhysicsList::~A01PhysicsList()
88{
89}
90
91void A01PhysicsList::ConstructProcess()
92{
93  AddTransportation();
94  G4PhysConstVector::iterator itr;
95  for (itr = physicsVector->begin(); itr!= physicsVector->end(); ++itr) {
96    (*itr)->ConstructProcess();
97  }
98}
99
100void A01PhysicsList::SetCuts()
101{
102  //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
103  //   the default cut value for all particle types
104  SetCutsWithDefault();
105}
106
107
108
Note: See TracBrowser for help on using the repository browser.