BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExteIonisation.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: ExteIonisation.cxx,v 1.8 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: ExteIonisation
32//
33// Author: Laszlo Urban
34//
35// Creation date: 20.03.1997
36//
37// Modifications:
38//
39// 07-04-98 remove 'tracking cut' of the ionizing particle, mma
40// 04-09-98 new methods SetBining() PrintInfo()
41// 07-09-98 Cleanup
42// 02-02-99 correction inDoIt , L.Urban
43// 10-02-00 modifications , new e.m. structure, L.Urban
44// 28-05-01 V.Ivanchenko minor changes to provide ANSI -wall compilation
45// 09-08-01 new methods Store/Retrieve PhysicsTable (mma)
46// 13-08-01 new function ComputeRestrictedMeandEdx() (mma)
47// 17-09-01 migration of Materials to pure STL (mma)
48// 21-09-01 completion of RetrievePhysicsTable() (mma)
49// 29-10-01 all static functions no more inlined (mma)
50// 07-11-01 particleMass and Charge become local variables
51// 26-03-02 change access to cuts in BuildLossTables (V.Ivanchenko)
52// 30-04-02 V.Ivanchenko update to new design
53// 23-12-02 Change interface in order to move to cut per region (VI)
54// 26-12-02 Secondary production moved to derived classes (VI)
55// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
56// 23-05-03 Define default integral + BohrFluctuations (V.Ivanchenko)
57// 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
58// 08-08-03 STD substitute standard (V.Ivanchenko)
59// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
60// ------------------------------------------------------------------------------------
61// 15-04-05 Omit the correction of momentum direction due to production of secenderies.
62// This is needed for my Track Extrapotation. (L.L.Wang)
63// ------------------------------------------------------------------------------------
64// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
65// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
66//
67//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
68//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
69
71#include "G4Electron.hh"
72#include "G4MollerBhabhaModel.hh"
73#include "G4UniversalFluctuation.hh"
74#include "G4BohrFluctuations.hh"
75#include "G4UnitsTable.hh"
76#include "G4SystemOfUnits.hh"
77
78//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
79
80using namespace std;
81
82ExteIonisation::ExteIonisation(const G4String& name)
83 : G4VEnergyLossProcess(name),
84 theElectron(G4Electron::Electron()),
85 isElectron(true),
86 isInitialised(false)
87{
88 SetDEDXBinning(120);
89 //SetLambdaBinning(120);
90 SetMinKinEnergy(0.1*keV);
91 SetMaxKinEnergy(100.0*TeV);
92 SetLossFluctuations(false);
93}
94
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
96
98{}
99
100//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
101
102void ExteIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part,const G4ParticleDefinition*)
103{
104 if(!isInitialised) {
105 if(part == G4Positron::Positron()) isElectron = false;
106 SetSecondaryParticle(theElectron);
107
108 flucModel = new G4UniversalFluctuation();
109
110 G4VEmModel* em = new G4MollerBhabhaModel();
111 em->SetLowEnergyLimit(0.1*keV);
112 em->SetHighEnergyLimit(100.0*TeV);
113 AddEmModel(1, em, flucModel);
114 isInitialised = true;
115 }
116
117}
118
119//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
120
122{
123 G4cout << " Delta cross sections from Moller+Bhabha, "
124 << "good description from 1 KeV to 100 GeV."
125 << G4endl;
126}
127
128//....ooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
ExteIonisation(const G4String &name="ExteIoni")
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
virtual void PrintInfo()