BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/TrkExtAlg/TrkExtAlg/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.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: 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
85class G4Material;
86class G4VEmFluctuationModel;
87
88class ExthIonisation : public G4VEnergyLossProcess
89{
90
91public:
92
93 ExthIonisation(const G4String& name = "ExthIoni");
94
96
97 G4bool IsApplicable(const G4ParticleDefinition& p);
98
99 G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
100 const G4Material*, G4double cut);
101
102 virtual void PrintInfo();
103 // Print out of the class parameters
104
105protected:
106 std::vector<G4DynamicParticle*>* SecondariesPostStep(
107 G4VEmModel*,
108 const G4MaterialCutsCouple*,
109 const G4DynamicParticle*,
110 G4double&);
111
112 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
113 const G4ParticleDefinition*);
114
115private:
116
117 // hide assignment operator
118 ExthIonisation & operator=(const ExthIonisation &right);
120
121 G4double mass;
122 G4double ratio;
123
124 const G4ParticleDefinition* theParticle;
125 const G4ParticleDefinition* theBaseParticle;
126 G4VEmFluctuationModel* flucModel;
127
128 G4bool isInitialised;
129
130 G4double eth;
131};
132
133//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
134//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
135
136inline G4bool ExthIonisation::IsApplicable(const G4ParticleDefinition& p)
137{
138 return (p.GetPDGCharge() != 0.0 &&
139 p.GetPDGMass() > 10.0*MeV &&
140 !p.IsShortLived());
141}
142
143//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
144
145inline G4double ExthIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
146 const G4Material*,
147 G4double cut)
148{
149 G4double x = 0.5*cut/electron_mass_c2;
150 G4double y = electron_mass_c2/mass;
151 G4double g = x*y + sqrt((1. + x)*(1. + x*y*y));
152 return mass*(g - 1.0);
153}
154
155
156inline std::vector<G4DynamicParticle*>* ExthIonisation::SecondariesPostStep(
157 G4VEmModel* model,
158 const G4MaterialCutsCouple* couple,
159 const G4DynamicParticle* dp,
160 G4double& tcut)
161{
162// return model->SampleSecondaries(couple, dp, tcut);
163 return NULL;
164}//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
165
166#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
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)
G4bool IsApplicable(const G4ParticleDefinition &p)
virtual void PrintInfo()
G4double MinPrimaryEnergy(const G4ParticleDefinition *p, const G4Material *, G4double cut)
std::vector< G4DynamicParticle * > * SecondariesPostStep(G4VEmModel *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &)