BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtMuIonisation.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: ExtMuIonisation.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: ExtMuIonisation
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// 10-05-02 V.Ivanchenko update to new design
48// 09-12-02 V.Ivanchenko remove warning
49// 26-12-02 Secondary production moved to derived classes (VI)
50// 24-01-03 Make models region aware (V.Ivanchenko)
51// 05-02-03 Fix compilation warnings (V.Ivanchenko)
52// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
53// 23-05-03 Add fluctuation model as a member function (V.Ivanchenko)
54// 03-06-03 Add SetIntegral method to choose fluctuation model (V.Ivanchenko)
55// 03-06-03 Fix initialisation problem for STD ionisation (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//17-08-04 Rename the process "Mu" -> "mu" (V.Ivanchenko)
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// Class Description:
68//
69// This class manages the ionisation process for muons.
70// it inherites from G4VContinuousDiscreteProcess via G4VEnergyLossProcess.
71//
72
73// -------------------------------------------------------------------
74//
75
76#ifndef ExtMuIonisation_h
77#define ExtMuIonisation_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;
89class G4ParticleChangeForLoss;
90
91class ExtMuIonisation : public G4VEnergyLossProcess
92{
93
94public:
95
96 ExtMuIonisation(const G4String& name = "ExtmuIoni");
97
98 virtual ~ExtMuIonisation();
99
100 G4bool IsApplicable(const G4ParticleDefinition& p)
101 {return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV);};
102
103 G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
104 const G4Material*, G4double cut);
105
106/* virtual std::vector<G4Track*>* SecondariesAlongStep(
107 const G4Step&,
108 G4double&,
109 G4double&,
110 G4double&);
111*/
112
113 std::vector<G4DynamicParticle*>* SecondariesPostStep(
114 G4VEmModel*,
115 const G4MaterialCutsCouple*,
116 const G4DynamicParticle*,
117 G4double& tcut);
118
119 // Print out of the class parameters
120 void PrintInfo();
121
122protected:
123
124 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
125 const G4ParticleDefinition*);
126
127// virtual G4double MaxSecondaryEnergy(const G4DynamicParticle* dynParticle);
128
129private:
130
131 // hide assignment operator
132 ExtMuIonisation & operator=(const ExtMuIonisation &right);
134
135 G4double mass;
136 G4double ratio;
137
138 const G4ParticleDefinition* theParticle;
139 const G4ParticleDefinition* theBaseParticle;
140 G4VEmFluctuationModel* flucModel;
141
142 G4ParticleChangeForLoss* fParticleChange;
143// G4bool subCutoff;
144 G4bool isInitialised;
145};
146
147//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
148//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
149
150inline G4double ExtMuIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
151 const G4Material*,
152 G4double cut)
153{
154 G4double x = 0.5*cut/electron_mass_c2;
155 G4double g = x*ratio + sqrt((1. + x)*(1. + x*ratio*ratio));
156 return mass*(g - 1.0);
157}
158
159//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
160
161/*inline G4double ExtMuIonisation::MaxSecondaryEnergy(const G4DynamicParticle* dynParticle)
162{
163 G4double tau = dynParticle->GetKineticEnergy()/mass;
164 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.0)/
165 (1. + 2.0*(tau + 1.0)*ratio + ratio*ratio);
166
167 return tmax;
168}
169
170//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
171
172#include "G4VSubCutoffProcessor.hh"
173*/
174
175/*inline std::vector<G4DynamicParticle*>* ExtMuIonisation::SecondariesAlongStep(
176 const G4Step& step,
177 G4double& tmax,
178 G4double& eloss,
179 G4double& kinEnergy)
180{
181 std::vector<G4Track*>* newp = 0;
182 if(subCutoff) {
183 G4VSubCutoffProcessor* sp = SubCutoffProcessor(CurrentMaterialCutsCoupleIndex());
184 if (sp) {
185 G4VEmModel* model = SelectModel(kinEnergy);
186 newp = sp->SampleSecondaries(step,tmax,eloss,model);
187 }
188 }
189 return newp;
190}
191*/
192
193//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
194
195//#include "G4VEmModel.hh"
196
197inline std::vector<G4DynamicParticle*>* ExtMuIonisation::SecondariesPostStep(
198 G4VEmModel* model,
199 const G4MaterialCutsCouple* couple,
200 const G4DynamicParticle* dp,
201 G4double& tcut)
202{
203// return model->SampleSecondaries(couple, dp, tcut);
204 return NULL;//No secondaries, for Track Extrapolation.(Wang L.L.)
205}
206
207//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
208
209#endif
Double_t x[10]
#define NULL
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
G4double MinPrimaryEnergy(const G4ParticleDefinition *p, const G4Material *, G4double cut)
std::vector< G4DynamicParticle * > * SecondariesPostStep(G4VEmModel *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &tcut)
G4bool IsApplicable(const G4ParticleDefinition &p)
ExtMuIonisation(const G4String &name="ExtmuIoni")