BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
ExthIonisation.h
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.h,v 1.7 2022/01/26 03:16:33 wangll Exp $
24// GEANT4 tag $Name: TrkExtAlg-00-00-67 $
25//
26// -------------------------------------------------------------------
27//
28// GEANT4 Class header 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// corrected by L.Urban on 13/01/98
41// bugs fixed by L.Urban on 02/02/99
42// 10/02/00 modifications , new e.m. structure, L.Urban
43// 10-08-01 new methods Store/Retrieve PhysicsTable (mma)
44// 14-08-01 new function ComputeRestrictedMeandEdx() + 'cleanup' (mma)
45// 19-09-01 come back to previous process name "hIoni"
46// 29-10-01 all static functions no more inlined
47// 07-01-02 new design of em processes (V.Ivanchenko)
48// 26-12-02 secondary production moved to derived classes (VI)
49// 24-01-03 Make models region aware (V.Ivanchenko)
50// 05-02-03 Fix compilation warnings (V.Ivanchenko)
51// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
52// 15-02-03 Add control on delta pointer (V.Ivanchenko)
53// 23-05-03 Add fluctuation model as a member function (V.Ivanchenko)
54// 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
55// 16-06-03 ShortLived are not applicable any more (V.Ivanchenko)
56// 08-08-03 STD substitute standard (V.Ivanchenko)
57// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
58// 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
59// ------------------------------------------------------------------------------------
60// 15-04-05 Omit the correction of momentum direction due to production of secenderies.
61// This is needed for my Track Extrapotation. (L.L.Wang)
62// ------------------------------------------------------------------------------------
63// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
64// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
65// 11-04-04 Move MaxSecondaryEnergy to models (V.Ivanchenko)
66//
67// Class Description:
68//
69// This class manages the ionisation process for hadrons.
70// it inherites from G4VContinuousDiscreteProcess via G4VEnergyLoss.
71//
72
73// -------------------------------------------------------------------
74//
75
76#ifndef ExthIonisation_h
77#define ExthIonisation_h 1
78
79#include "G4VEnergyLossProcess.hh"
80#include "G4Electron.hh"
81#include "G4Positron.hh"
82#include "globals.hh"
83#include "G4VEmModel.hh"
84#include "G4SystemOfUnits.hh"
85#include "G4PhysicalConstants.hh"
86
87class G4Material;
88class G4VEmFluctuationModel;
89
90class ExthIonisation : public G4VEnergyLossProcess
91{
92
93public:
94
95 ExthIonisation(const G4String& name = "ExthIoni");
96
98
99 G4bool IsApplicable(const G4ParticleDefinition& p);
100
101 G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
102 const G4Material*, G4double cut);
103
104 virtual void PrintInfo();
105 // Print out of the class parameters
106
107protected:
108 std::vector<G4DynamicParticle*>* SecondariesPostStep(
109 G4VEmModel*,
110 const G4MaterialCutsCouple*,
111 const G4DynamicParticle*,
112 G4double&);
113
114 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
115 const G4ParticleDefinition*);
116
117private:
118
119 // hide assignment operator
120 ExthIonisation & operator=(const ExthIonisation &right);
122
123 G4double mass;
124 G4double ratio;
125
126 const G4ParticleDefinition* theParticle;
127 const G4ParticleDefinition* theBaseParticle;
128 G4VEmFluctuationModel* flucModel;
129
130 G4bool isInitialised;
131
132 G4double eth;
133};
134
135//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
136//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
137
138inline G4bool ExthIonisation::IsApplicable(const G4ParticleDefinition& p)
139{
140 return (p.GetPDGCharge() != 0.0 &&
141 p.GetPDGMass() > 10.0*MeV &&
142 !p.IsShortLived());
143}
144
145//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
146
147inline G4double ExthIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
148 const G4Material*,
149 G4double cut)
150{
151 G4double x = 0.5*cut/electron_mass_c2;
152 G4double y = electron_mass_c2/mass;
153 G4double g = x*y + sqrt((1. + x)*(1. + x*y*y));
154 return mass*(g - 1.0);
155}
156
157
158inline std::vector<G4DynamicParticle*>* ExthIonisation::SecondariesPostStep(
159 G4VEmModel* model,
160 const G4MaterialCutsCouple* couple,
161 const G4DynamicParticle* dp,
162 G4double& tcut)
163{
164// return model->SampleSecondaries(couple, dp, tcut);
165 return NULL;
166}//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
167
168#endif
Double_t x[10]
#define NULL
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
G4bool IsApplicable(const G4ParticleDefinition &p)
virtual void PrintInfo()
ExthIonisation(const G4String &name="ExthIoni")
G4double MinPrimaryEnergy(const G4ParticleDefinition *p, const G4Material *, G4double cut)
std::vector< G4DynamicParticle * > * SecondariesPostStep(G4VEmModel *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &)
double y[1000]