BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/TrkExtAlg/TrkExtAlg-00-00-64/TrkExtAlg/ExteIonisation.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: ExteIonisation.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: ExteIonisation
32//
33// Author: Laszlo Urban
34//
35// Creation date: 20.03.1997
36//
37// Modifications:
38//
39// 10-02-00 modifications , new e.m. structure, L.Urban
40// 03-08-01 new methods Store/Retrieve PhysicsTable (mma)
41// 13-08-01 new function ComputeRestrictedMeandEdx() (mma)
42// 19-09-01 come back to previous ProcessName "eIoni"
43// 29-10-01 all static functions no more inlined (mma)
44// 07-01-02 new design of em processes (V.Ivanchenko)
45// 26-12-02 Secondary production moved to derived classes (VI)
46// 24-01-03 Make models region aware (V.Ivanchenko)
47// 05-02-03 Fix compilation warnings (V.Ivanchenko)
48// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
49// 23-05-03 Add fluctuation model as a member function (V.Ivanchenko)
50// 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
51// 08-08-03 STD substitute standard (V.Ivanchenko)
52// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
53// 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
54//
55// ------------------------------------------------------------------------------------
56// 15-04-05 Omit the correction of momentum direction due to production of secenderies.
57// This is needed for my Track Extrapotation. (L.L.Wang)
58// ------------------------------------------------------------------------------------
59//
60// 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
61// 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko)
62// 11-04-04 Move MaxSecondaryEnergy to models (V.Ivanchenko)
63//
64// Class Description:
65//
66// This class manages the ionisation process for e-/e+
67// it inherites from G4VContinuousDiscreteProcess via G4VEnergyLossProcess.
68//
69
70// -------------------------------------------------------------------
71//
72
73#ifndef ExteIonisation_h
74#define ExteIonisation_h 1
75
76#include "G4VEnergyLossProcess.hh"
77#include "G4Electron.hh"
78#include "G4Positron.hh"
79#include "G4VEmModel.hh"
80
81class G4Material;
82class G4ParticleDefinition;
83class G4VEmFluctuationModel;
84
85class ExteIonisation : public G4VEnergyLossProcess
86{
87
88public:
89
90 ExteIonisation(const G4String& name = "ExteIoni");
91
93
94 G4bool IsApplicable(const G4ParticleDefinition& p);
95
96 virtual void PrintInfo();
97 // Print out of the class parameters
98
99protected:
100
101 std::vector<G4DynamicParticle*>* SecondariesPostStep(
102 G4VEmModel*,
103 const G4MaterialCutsCouple*,
104 const G4DynamicParticle*,
105 G4double&);
106
107 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,const G4ParticleDefinition*);
108
109 virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*,
110 const G4Material*, G4double cut);
111
112private:
113
114 // hide assignment operator
115 ExteIonisation & operator=(const ExteIonisation &right);
117
118 const G4ParticleDefinition* theElectron;
119 const G4ParticleDefinition* particle;
120 G4VEmFluctuationModel* flucModel;
121
122 G4bool isElectron;
123 G4bool isInitialised;
124};
125
126//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
127//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
128
129inline G4double ExteIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
130 const G4Material*,
131 G4double cut)
132{
133 G4double x = cut;
134 if(isElectron) x += cut;
135 return x;
136}
137
138//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
139
140inline G4bool ExteIonisation::IsApplicable(const G4ParticleDefinition& p)
141{
142 return (&p == G4Electron::Electron() || &p == G4Positron::Positron());
143}
144
145//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
146
147inline std::vector<G4DynamicParticle*>* ExteIonisation::SecondariesPostStep(
148 G4VEmModel* model,
149 const G4MaterialCutsCouple* couple,
150 const G4DynamicParticle* dp,
151 G4double& tcut)
152{
153 //return model->SampleSecondaries(couple,dp,tcut);
154 return NULL;
155}
156
157//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
158
159#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
ExteIonisation(const G4String &name="ExteIoni")
std::vector< G4DynamicParticle * > * SecondariesPostStep(G4VEmModel *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &)
G4bool IsApplicable(const G4ParticleDefinition &p)
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition *, const G4Material *, G4double cut)
virtual void PrintInfo()
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition *, const G4Material *, G4double cut)
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition *, const G4ParticleDefinition *)