BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExthIonisation.cxx
Go to the documentation of this file.
1//
2// ********************************************************************
3// * DISCLAIMER *
4// * *
5// * The following disclaimer summarizes all the specific disclaimers *
6// * of contributors to this software. The specific disclaimers,which *
7// * govern, are listed with their locations in: *
8// * http://cern.ch/geant4/license *
9// * *
10// * Neither the authors of this software system, nor their employing *
11// * institutes,nor the agencies providing financial support for this *
12// * work make any representation or warranty, express or implied, *
13// * regarding this software system or assume any liability for its *
14// * use. *
15// * *
16// * This code implementation is the intellectual property of the *
17// * GEANT4 collaboration. *
18// * By copying, distributing or modifying the Program (or any work *
19// * based on the Program) you indicate your acceptance of this *
20// * statement, and all its terms. *
21// ********************************************************************
22//
23// $Id: ExthIonisation.cxx,v 1.9 2022/01/26 03:16:33 wangll Exp $
24// GEANT4 tag $Name: TrkExtAlg-00-00-67 $
25//
26// -------------------------------------------------------------------
27//
28// GEANT4 Class file
29//
30//
31// File name: G4hIonisation
32//
33// Author: Laszlo Urban
34//
35// Creation date: 30.05.1997
36//
37// Modifications:
38//
39// corrected by L.Urban on 24/09/97
40// several bugs corrected by L.Urban on 13/01/98
41// 07-04-98 remove 'tracking cut' of the ionizing particle, mma
42// 22-10-98 cleanup L.Urban
43// 02-02-99 bugs fixed , L.Urban
44// 29-07-99 correction in BuildLossTable for low energy, L.Urban
45// 10-02-00 modifications , new e.m. structure, L.Urban
46// 10-08-00 V.Ivanchenko change BuildLambdaTable, in order to
47// simulate energy losses of ions; correction to
48// cross section for particles with spin 1 is inserted as well
49// 28-05-01 V.Ivanchenko minor changes to provide ANSI -wall compilation
50// 10-08-01 new methods Store/Retrieve PhysicsTable (mma)
51// 14-08-01 new function ComputeRestrictedMeandEdx() + 'cleanup' (mma)
52// 29-08-01 PostStepDoIt: correction for spin 1/2 (instead of 1) (mma)
53// 17-09-01 migration of Materials to pure STL (mma)
54// 25-09-01 completion of RetrievePhysicsTable() (mma)
55// 29-10-01 all static functions no more inlined
56// 08-11-01 Charge renamed zparticle; added to the dedx
57// 27-03-02 Bug fix in scaling of lambda table (V.Ivanchenko)
58// 09-04-02 Update calculation of tables for GenericIons (V.Ivanchenko)
59// 30-04-02 V.Ivanchenko update to new design
60// 04-12-02 Add verbose level definition (VI)
61// 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
62// 26-12-02 Secondary production moved to derived classes (V.Ivanchenko)
63// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
64// 23-05-03 Define default integral + BohrFluctuations (V.Ivanchenko)
65// 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
66// 04-08-03 Set integral=false to be default (V.Ivanchenko)
67// 08-08-03 STD substitute standard (V.Ivanchenko)
68// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
69// 27-05-04 Set integral to be a default regime (V.Ivanchenko)
70// ------------------------------------------------------------------------------------
71// 15-04-05 Omit the correction of momentum direction due to production of secenderies.
72// This is needed for my Track Extrapotation. (L.L.Wang)
73//
74// -------------------------------------------------------------------
75// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
76// 24-03-05 Optimize internal interfaces (V.Ivantchenko)
77//
78//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
79//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
80
81#include "ExthIonisation.h"
82#include "G4AntiProton.hh"
83#include "G4BetheBlochModel.hh"
84#include "G4BohrFluctuations.hh"
85#include "G4BraggModel.hh"
86#include "G4Electron.hh"
87#include "G4PhysicalConstants.hh"
88#include "G4Proton.hh"
89#include "G4SystemOfUnits.hh"
90#include "G4UnitsTable.hh"
91#include "G4UniversalFluctuation.hh"
92
93//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
94
95ExthIonisation::ExthIonisation( const G4String& name )
96 : G4VEnergyLossProcess( name )
97 , theParticle( 0 )
98 , theBaseParticle( 0 )
99 , isInitialised( false ) {
100 SetDEDXBinning( 120 );
101 // SetLambdaBinning(120);
102 SetMinKinEnergy( 0.1 * keV );
103 SetMaxKinEnergy( 100.0 * TeV );
104 SetVerboseLevel( 0 );
105 SetLossFluctuations( false );
106 mass = 0.0;
107 ratio = 0.0;
108}
109
110//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
111
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
115
116void ExthIonisation::InitialiseEnergyLossProcess( const G4ParticleDefinition* part,
117 const G4ParticleDefinition* bpart ) {
118 if ( isInitialised ) return;
119
120 theParticle = part;
121
122 if ( part == bpart || part == G4Proton::Proton() ) theBaseParticle = 0;
123 else if ( bpart == 0 ) theBaseParticle = G4Proton::Proton();
124 else theBaseParticle = bpart;
125
126 SetBaseParticle( theBaseParticle );
127 SetSecondaryParticle( G4Electron::Electron() );
128 mass = theParticle->GetPDGMass();
129 ratio = electron_mass_c2 / mass;
130
131 G4VEmModel* em = new G4BraggModel();
132 em->SetLowEnergyLimit( 0.1 * keV );
133 eth = 2.0 * MeV * mass / proton_mass_c2;
134 em->SetHighEnergyLimit( eth );
135
136 flucModel = new G4UniversalFluctuation();
137
138 AddEmModel( 1, em, flucModel );
139 G4VEmModel* em1 = new G4BetheBlochModel();
140 em1->SetLowEnergyLimit( eth );
141 em1->SetHighEnergyLimit( 100.0 * TeV );
142 AddEmModel( 2, em1, flucModel );
143
144 SetStepFunction( 0.2, 1.0 * mm );
145
146 isInitialised = true;
147}
148
149//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
150
152 G4cout << " Bether-Bloch model for Escaled > 2 MeV, "
153 << "parametrisation of Bragg peak below, "
154 << "Integral mode " << IsIntegral() << G4endl;
155}
156
157//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
virtual void PrintInfo()
ExthIonisation(const G4String &name="ExthIoni")