source: trunk/source/processes/hadronic/models/cascade/cascade/src/G4VCascadeCollider.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: 4.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// $Id: G4VCascadeCollider.cc,v 1.1 2010/05/21 17:56:34 mkelsey Exp $
26// Geant4 tag: $Name: geant4-09-04-beta-cand-01 $
27
28#include "G4VCascadeCollider.hh"
29#include "G4HadTmpUtil.hh"
30#include "G4InteractionCase.hh"
31#include "G4InuclElementaryParticle.hh"
32#include "G4InuclNuclei.hh"
33#include "G4InuclSpecialFunctions.hh"
34#include "G4NucleiProperties.hh"
35#include "G4ios.hh"
36
37using namespace G4InuclSpecialFunctions;
38
39
40// Constructor handles verbose announcement
41
42G4VCascadeCollider::G4VCascadeCollider(const char* name, G4int verbose)
43  : theName(name), verboseLevel(verbose) {
44  if (verbose > 3) G4cout << " >>> " << theName << " ctor " << G4endl;
45}
46
47
48// Both bullet and target must be hadrons or leptons for this to work
49
50G4bool G4VCascadeCollider::useEPCollider(G4InuclParticle* bullet, 
51                                         G4InuclParticle* target) const {
52  return (dynamic_cast<G4InuclElementaryParticle*>(bullet) &&
53          dynamic_cast<G4InuclElementaryParticle*>(target));
54}
55
56
57// Decide wether nuclear fragment is candidate for G4BigBanger
58
59G4bool G4VCascadeCollider::explosion(G4InuclNuclei* target) const {
60  if (verboseLevel > 3) {
61    G4cout << " >>> " << theName << "::explosion" << G4endl;
62  }
63
64  const G4double a_cut = 20.0;
65  const G4double be_cut = 3.0;
66
67  G4double a = target->getA();
68  G4double z = target->getZ();
69  G4double eexs = target->getExitationEnergy();
70
71  // Only small fragments with high excitations can explode
72  G4bool explo = ((a <= a_cut) && 
73                  (eexs >= be_cut * G4NucleiProperties::GetBindingEnergy(G4lrint(a), G4lrint(z)))
74                  );
75
76  return explo;
77}
78
79
80// Decide whether bullet-target interaction is candidate for cascade
81
82G4bool
83G4VCascadeCollider::inelasticInteractionPossible(G4InuclParticle* bullet,
84                                                 G4InuclParticle* target, 
85                                                 G4double ekin) const {
86  if (verboseLevel > 3) {
87    G4cout << " >>> " << theName << "::inelasticInteractionPossible" << G4endl;
88  }
89
90  // If hadron-hadron collision, defer to ElementaryParticleCollider
91  if (useEPCollider(bullet, target)) return true;
92
93  // See which one of the two (or both) is a nucleus, get properties
94  // FIXME:  Should set a = baryon() for both, but that's not in base
95  G4InuclNuclei* nuclei_bullet = dynamic_cast<G4InuclNuclei*>(bullet);
96  G4double ab = nuclei_bullet ? nuclei_bullet->getA() : 1;      // FIXME
97  G4double zb = nuclei_bullet ? nuclei_bullet->getZ() : bullet->getCharge();
98 
99  G4InuclNuclei* nuclei_target = dynamic_cast<G4InuclNuclei*>(target);
100  G4double at = nuclei_target ? nuclei_target->getA() : 1;      // FIXME
101  G4double zt = nuclei_target ? nuclei_target->getZ() : target->getCharge();
102 
103  // VCOL (Coulomb barrier) used for testing if elastic collision necessary
104  const G4double coeff = 0.001 * 1.2;
105
106  G4double VCOL = coeff * zt * zb / (G4cbrt(at) + G4cbrt(ab)); 
107 
108  G4bool possible = true;       // Force inelastic; should be (ekin >= VCOL)
109
110  if (verboseLevel > 3) {
111    G4cout << " VCOL: " << VCOL << " ekin: " << ekin << " inelastic possible: "
112           << possible << G4endl;
113  }
114
115  return possible;
116}
Note: See TracBrowser for help on using the repository browser.