BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/TrkExtAlg/TrkExtAlg-00-00-64/TrkExtAlg/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.6 2015/10/27 11:02:53 sunss Exp $
24// GEANT4 tag $Name: TrkExtAlg-00-00-64 $
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
85class G4Material;
86class G4VEmFluctuationModel;
87class G4ParticleChangeForLoss;
88
89class ExtMuIonisation : public G4VEnergyLossProcess
90{
91
92public:
93
94 ExtMuIonisation(const G4String& name = "ExtmuIoni");
95
97
98 G4bool IsApplicable(const G4ParticleDefinition& p)
99 {return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV);};
100
101 G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
102 const G4Material*, G4double cut);
103
104/* virtual std::vector<G4Track*>* SecondariesAlongStep(
105 const G4Step&,
106 G4double&,
107 G4double&,
108 G4double&);
109*/
110
111 std::vector<G4DynamicParticle*>* SecondariesPostStep(
112 G4VEmModel*,
113 const G4MaterialCutsCouple*,
114 const G4DynamicParticle*,
115 G4double& tcut);
116
117 // Print out of the class parameters
118 void PrintInfo();
119
120protected:
121
122 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
123 const G4ParticleDefinition*);
124
125// virtual G4double MaxSecondaryEnergy(const G4DynamicParticle* dynParticle);
126
127private:
128
129 // hide assignment operator
130 ExtMuIonisation & operator=(const ExtMuIonisation &right);
132
133 G4double mass;
134 G4double ratio;
135
136 const G4ParticleDefinition* theParticle;
137 const G4ParticleDefinition* theBaseParticle;
138 G4VEmFluctuationModel* flucModel;
139
140 G4ParticleChangeForLoss* fParticleChange;
141// G4bool subCutoff;
142 G4bool isInitialised;
143};
144
145//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
146//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
147
148inline G4double ExtMuIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
149 const G4Material*,
150 G4double cut)
151{
152 G4double x = 0.5*cut/electron_mass_c2;
153 G4double g = x*ratio + sqrt((1. + x)*(1. + x*ratio*ratio));
154 return mass*(g - 1.0);
155}
156
157//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
158
159/*inline G4double ExtMuIonisation::MaxSecondaryEnergy(const G4DynamicParticle* dynParticle)
160{
161 G4double tau = dynParticle->GetKineticEnergy()/mass;
162 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.0)/
163 (1. + 2.0*(tau + 1.0)*ratio + ratio*ratio);
164
165 return tmax;
166}
167
168//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
169
170#include "G4VSubCutoffProcessor.hh"
171*/
172
173/*inline std::vector<G4DynamicParticle*>* ExtMuIonisation::SecondariesAlongStep(
174 const G4Step& step,
175 G4double& tmax,
176 G4double& eloss,
177 G4double& kinEnergy)
178{
179 std::vector<G4Track*>* newp = 0;
180 if(subCutoff) {
181 G4VSubCutoffProcessor* sp = SubCutoffProcessor(CurrentMaterialCutsCoupleIndex());
182 if (sp) {
183 G4VEmModel* model = SelectModel(kinEnergy);
184 newp = sp->SampleSecondaries(step,tmax,eloss,model);
185 }
186 }
187 return newp;
188}
189*/
190
191//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
192
193//#include "G4VEmModel.hh"
194
195inline std::vector<G4DynamicParticle*>* ExtMuIonisation::SecondariesPostStep(
196 G4VEmModel* model,
197 const G4MaterialCutsCouple* couple,
198 const G4DynamicParticle* dp,
199 G4double& tcut)
200{
201// return model->SampleSecondaries(couple, dp, tcut);
202 return NULL;//No secondaries, for Track Extrapolation.(Wang L.L.)
203}
204
205//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
206
207#endif
Double_t x[10]
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared cut
Definition: KarFin.h:27
G4double MinPrimaryEnergy(const G4ParticleDefinition *p, const G4Material *, G4double cut)
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
std::vector< G4DynamicParticle * > * SecondariesPostStep(G4VEmModel *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &tcut)
virtual ~ExtMuIonisation()
ExtMuIonisation(const G4String &name="ExtmuIoni")