source: trunk/source/processes/electromagnetic/standard/src/G4alphaIonisation.cc @ 1340

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

update ti head

File size: 5.1 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: G4alphaIonisation.cc,v 1.3 2010/10/26 10:06:12 vnivanch Exp $
27// GEANT4 tag $Name: emstand-V09-03-24 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class file
32//
33//
34// File name:     G4alphaIonisation
35//
36// Author:        Vladimir Ivanchenko
37//
38// Creation date: 28.10.2009 created from G4ionIonisation
39//
40// Modifications:
41//
42//
43//
44// -------------------------------------------------------------------
45//
46//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
47//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
48
49#include "G4alphaIonisation.hh"
50#include "G4Electron.hh"
51#include "G4Alpha.hh"
52#include "G4BraggIonModel.hh"
53#include "G4BetheBlochModel.hh"
54#include "G4UnitsTable.hh"
55#include "G4LossTableManager.hh"
56#include "G4IonFluctuations.hh"
57#include "G4UniversalFluctuation.hh"
58
59//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
60
61using namespace std;
62
63G4alphaIonisation::G4alphaIonisation(const G4String& name)
64  : G4VEnergyLossProcess(name),
65    theParticle(0),
66    isInitialised(false)
67{
68  //  SetLinearLossLimit(0.15);
69  SetStepFunction(0.2, 0.1*mm);
70  //  SetIntegral(true);
71  SetProcessSubType(fIonisation);
72  //  SetVerboseLevel(1);
73  mass = 0.0;
74  ratio = 0.0;
75  eth = 8*MeV;
76}
77
78//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
79
80G4alphaIonisation::~G4alphaIonisation()
81{}
82
83//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
84
85G4bool G4alphaIonisation::IsApplicable(const G4ParticleDefinition& p)
86{
87  return (!p.IsShortLived() &&
88          std::fabs(p.GetPDGCharge() - 2*CLHEP::eplus) < 0.01);
89}
90
91//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
92
93G4double G4alphaIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, 
94                                             const G4Material*, 
95                                             G4double cut)
96{
97  G4double x = 0.5*cut/electron_mass_c2;
98  G4double g = x*ratio + std::sqrt((1. + x)*(1. + x*ratio*ratio));
99  return mass*(g - 1.0);
100}
101
102//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
103
104void G4alphaIonisation::InitialiseEnergyLossProcess(
105                      const G4ParticleDefinition* part,
106                      const G4ParticleDefinition* bpart)
107{
108  if(!isInitialised) {
109
110    theParticle = part;
111    G4String pname = part->GetParticleName();
112
113    // define base particle
114    const G4ParticleDefinition* theBaseParticle = 0;
115    if(bpart == 0) { 
116      if(pname != "alpha") { theBaseParticle = G4Alpha::Alpha(); }
117    } else { theBaseParticle = bpart; }
118
119    mass  = part->GetPDGMass();
120    ratio = electron_mass_c2/mass;
121
122    SetBaseParticle(theBaseParticle);
123    SetSecondaryParticle(G4Electron::Electron());
124
125    if (!EmModel(1)) { SetEmModel(new G4BraggIonModel(), 1); }
126    EmModel(1)->SetLowEnergyLimit(MinKinEnergy());
127
128    // model limit defined for alpha
129    eth = (EmModel(1)->HighEnergyLimit())*mass/proton_mass_c2;
130    EmModel(1)->SetHighEnergyLimit(eth);
131
132    if (!FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); }
133    AddEmModel(1, EmModel(1), new G4IonFluctuations());
134
135    if (!EmModel(2)) { SetEmModel(new G4BetheBlochModel(),2); } 
136    EmModel(2)->SetLowEnergyLimit(eth);
137    EmModel(2)->SetHighEnergyLimit(MaxKinEnergy());
138    AddEmModel(2, EmModel(2), FluctModel());   
139
140    isInitialised = true;
141  }
142}
143
144//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
145
146void G4alphaIonisation::PrintInfo()
147{}
148
149//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracBrowser for help on using the repository browser.