BOSS 7.0.8
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.7 2015/10/27 11:02:53 sunss Exp $
24// GEANT4 tag $Name: TrkExtAlg-00-00-65 $
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
77//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
78
79using namespace std;
80
81ExteIonisation::ExteIonisation(const G4String& name)
82 : G4VEnergyLossProcess(name),
83 theElectron(G4Electron::Electron()),
84 isElectron(true),
85 isInitialised(false)
86{
87 SetDEDXBinning(120);
88 SetLambdaBinning(120);
89 SetMinKinEnergy(0.1*keV);
90 SetMaxKinEnergy(100.0*TeV);
91 SetLossFluctuations(false);
92}
93
94//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
95
97{}
98
99//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
100
101void ExteIonisation::InitialiseEnergyLossProcess(const G4ParticleDefinition* part,const G4ParticleDefinition*)
102{
103 if(!isInitialised) {
104 if(part == G4Positron::Positron()) isElectron = false;
105 SetSecondaryParticle(theElectron);
106
107 flucModel = new G4UniversalFluctuation();
108
109 G4VEmModel* em = new G4MollerBhabhaModel();
110 em->SetLowEnergyLimit(0.1*keV);
111 em->SetHighEnergyLimit(100.0*TeV);
112 AddEmModel(1, em, flucModel);
113 isInitialised = true;
114 }
115
116}
117
118//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
119
121{
122 G4cout << " Delta cross sections from Moller+Bhabha, "
123 << "good description from 1 KeV to 100 GeV."
124 << G4endl;
125}
126
127//....ooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
ExteIonisation(const G4String &name="ExteIoni")
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
virtual void PrintInfo()