00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #ifndef G4ePolarizedIonisation_h
00055 #define G4ePolarizedIonisation_h 1
00056
00057 #include "G4VEnergyLossProcess.hh"
00058 #include "G4Electron.hh"
00059 #include "G4Positron.hh"
00060
00061 class G4Material;
00062 class G4ParticleDefinition;
00063 class G4VEmFluctuationModel;
00064 class G4PolarizedMollerBhabhaModel;
00065
00066 class G4ePolarizedIonisation : public G4VEnergyLossProcess
00067 {
00068
00069 public:
00070
00071 G4ePolarizedIonisation(const G4String& name = "pol-eIoni");
00072
00073 virtual ~G4ePolarizedIonisation();
00074
00075 G4bool IsApplicable(const G4ParticleDefinition& p);
00076
00077
00078 virtual void PrintInfo();
00079
00080 protected:
00081
00082 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
00083 const G4ParticleDefinition*);
00084
00085 virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*,
00086 const G4Material*, G4double cut);
00087
00088
00089
00090 G4double PostStepGetPhysicalInteractionLength(
00091 const G4Track& track,
00092 G4double previousStepSize,
00093 G4ForceCondition* condition
00094 );
00095
00096 G4double GetMeanFreePath(const G4Track& track,
00097 G4double previousStepSize,
00098 G4ForceCondition* condition);
00099
00100 virtual void BuildPhysicsTable(const G4ParticleDefinition&);
00101
00102 G4double ComputeAsymmetry(G4double energy,
00103 const G4MaterialCutsCouple* couple,
00104 const G4ParticleDefinition& particle,
00105 G4double cut,
00106 G4double &tasm);
00107
00108 protected:
00109
00110 const G4ParticleDefinition* DefineBaseParticle(const G4ParticleDefinition* p);
00111
00112 private:
00113 G4ePolarizedIonisation & operator=(const G4ePolarizedIonisation &right);
00114 G4ePolarizedIonisation(const G4ePolarizedIonisation&);
00115
00116 G4ParticleDefinition* theElectron;
00117 G4VEmFluctuationModel* flucModel;
00118 G4PolarizedMollerBhabhaModel* emModel;
00119
00120 G4bool isElectron;
00121 G4bool isInitialised;
00122
00123
00124 G4ThreeVector theTargetPolarization;
00125
00126
00127
00128 G4PhysicsTable* theAsymmetryTable;
00129 G4PhysicsTable* theTransverseAsymmetryTable;
00130 };
00131
00132
00133
00134
00135 inline G4double G4ePolarizedIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
00136 const G4Material*,
00137 G4double cut)
00138 {
00139 G4double x = cut;
00140 if(isElectron) x += cut;
00141 return x;
00142 }
00143
00144
00145
00146 inline G4bool G4ePolarizedIonisation::IsApplicable(const G4ParticleDefinition& p)
00147 {
00148 return (&p == G4Electron::Electron() || &p == G4Positron::Positron());
00149 }
00150
00151
00152 #endif