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