source: trunk/source/physics_lists/builders/src/G4IonBinaryCascadePhysics.cc @ 1319

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

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

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