source: trunk/source/physics_lists/builders/src/G4IonQMDPhysics.cc @ 1273

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

update geant4.9.3 tag

File size: 5.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// $Id: G4IonQMDPhysics.cc,v 1.1 2009/11/27 17:25:15 gunter Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName:   G4IonQMDPhysics
32//   Created from G4IonBinaryCascadePhysics
33//
34// Author:      G.Folger
35//
36// Modified:
37//
38//----------------------------------------------------------------------------
39//
40
41#include "G4IonQMDPhysics.hh"
42
43#include "G4DeuteronInelasticProcess.hh"
44#include "G4TritonInelasticProcess.hh"
45#include "G4AlphaInelasticProcess.hh"
46#include "G4HadronInelasticProcess.hh"
47
48#include "G4BinaryLightIonReaction.hh"
49#include "G4QMDReaction.hh"
50
51#include "G4TripathiCrossSection.hh"
52#include "G4TripathiLightCrossSection.hh"
53#include "G4IonsShenCrossSection.hh"
54
55#include "G4ParticleDefinition.hh"
56#include "G4ParticleTable.hh"
57#include "G4ProcessManager.hh"
58
59// Nuclei
60#include "G4IonConstructor.hh"
61
62G4IonQMDPhysics::G4IonQMDPhysics(const G4String& name, 
63                                                     G4int verb)
64  :  G4VPhysicsConstructor(name), verbose(verb), wasActivated(false)
65{
66  eminBIC  = 0.*MeV;
67  eminQMD  = 100.*MeV;
68  emaxQMD  = 10.*GeV;
69  emaxLHEP = 1.*TeV;
70  overlap  = 10*MeV;
71  if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
72}
73
74G4IonQMDPhysics::~G4IonQMDPhysics()
75{
76  if(wasActivated) {
77    delete fTripathi;
78    delete fTripathiLight;
79    delete fShen;
80    delete fLEDModel;
81    delete fLETModel;
82    delete fLEAModel;
83    G4int i;
84    G4int n = p_list.size();
85    for(i=0; i<n; i++) {delete p_list[i];}
86    n = model_list.size();
87    for(i=0; i<n; i++) {delete model_list[i];}
88  }
89}
90
91void G4IonQMDPhysics::ConstructProcess()
92{
93  if(wasActivated) return;
94  wasActivated = true;
95
96  G4BinaryLightIonReaction* fBC= new G4BinaryLightIonReaction();
97  model_list.push_back(fBC);
98  G4QMDReaction* fQMD= new G4QMDReaction();
99  model_list.push_back(fQMD);
100 
101  fShen = new G4IonsShenCrossSection;
102  fTripathi = new G4TripathiCrossSection;
103  fTripathiLight = new G4TripathiLightCrossSection;
104
105  fLEDModel = new G4LEDeuteronInelastic();
106  fLETModel = new G4LETritonInelastic();
107  fLEAModel = new G4LEAlphaInelastic();
108
109  AddProcess("dInelastic", G4Deuteron::Deuteron(), fBC,0, fLEDModel);
110  AddProcess("tInelastic",G4Triton::Triton(),      fBC,0, fLETModel);
111  AddProcess("He3Inelastic",G4He3::He3(),          fBC,0, 0);
112  AddProcess("alphaInelastic", G4Alpha::Alpha(),   fBC,0, fLEAModel);
113  AddProcess("ionInelastic",G4GenericIon::GenericIon(), fBC, fQMD, 0);
114
115}
116
117void G4IonQMDPhysics::AddProcess(const G4String& name,
118                                           G4ParticleDefinition* p, 
119                                           G4BinaryLightIonReaction* BIC,
120                                           G4QMDReaction* QMD,
121                                           G4HadronicInteraction* LHEP)
122{
123  G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p);
124  p_list.push_back(hadi);
125  G4ProcessManager* pManager = p->GetProcessManager();
126  pManager->AddDiscreteProcess(hadi);
127 
128  hadi->AddDataSet(fShen);
129  hadi->AddDataSet(fTripathi);
130  hadi->AddDataSet(fTripathiLight);
131 
132  BIC->SetMinEnergy(eminBIC);
133  BIC->SetMaxEnergy(emaxQMD);  //reset when QMD is present
134  hadi->RegisterMe(BIC);
135
136  if(QMD) {
137    QMD->SetMinEnergy(eminQMD);
138    BIC->SetMaxEnergy(eminQMD-overlap);
139    QMD->SetMaxEnergy(emaxQMD);
140    hadi->RegisterMe(QMD);
141  } 
142
143  if(LHEP) {
144    LHEP->SetMinEnergy(emaxQMD - overlap);
145    LHEP->SetMaxEnergy(emaxLHEP);
146    hadi->RegisterMe(LHEP);
147  } 
148  if(verbose > 1) {
149    G4cout << "Register " << hadi->GetProcessName()
150           << " for " << p->GetParticleName() << G4endl
151           << "       Binary Cascade for E(MeV)= " << eminBIC << " - " 
152           << (QMD==0 ? emaxQMD : (eminQMD-overlap)) ;
153    if(QMD) {
154      G4cout  << G4endl <<"       QMD for E(MeV)= " << eminQMD << " - " << emaxQMD;
155    }
156    if(LHEP) {
157      G4cout << G4endl<< "       LHEP for E(MeV)= " << emaxQMD-overlap << " - " << emaxLHEP;
158    }
159    G4cout << G4endl;
160  }
161}
162
163void G4IonQMDPhysics::ConstructParticle()
164{
165  //  Construct light ions
166  G4IonConstructor pConstructor;
167  pConstructor.ConstructParticle(); 
168}
Note: See TracBrowser for help on using the repository browser.