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 #ifndef G4eplusPolarizedAnnihilation_h
00054 #define G4eplusPolarizedAnnihilation_h 1
00055
00056 #include "G4VEmProcess.hh"
00057 #include "G4Positron.hh"
00058 #include "G4VEmModel.hh"
00059
00060
00061 class G4PolarizedAnnihilationModel;
00062
00063 class G4eplusPolarizedAnnihilation : public G4VEmProcess
00064 {
00065
00066 public:
00067
00068 G4eplusPolarizedAnnihilation(const G4String& name = "pol-annihil");
00069
00070 virtual ~G4eplusPolarizedAnnihilation();
00071
00072 virtual G4bool IsApplicable(const G4ParticleDefinition& p);
00073
00074 virtual G4VParticleChange* AtRestDoIt(
00075 const G4Track& track,
00076 const G4Step& stepData);
00077
00078 G4double AtRestGetPhysicalInteractionLength(
00079 const G4Track& track,
00080 G4ForceCondition* condition
00081 );
00082
00083
00084 virtual void PrintInfo();
00085
00086
00087
00088
00089 G4double GetMeanFreePath(const G4Track& track,
00090 G4double previousStepSize,
00091 G4ForceCondition* condition);
00092
00093 G4double PostStepGetPhysicalInteractionLength(
00094 const G4Track& track,
00095 G4double previousStepSize,
00096 G4ForceCondition* condition
00097 );
00098
00099 virtual void BuildPhysicsTable(const G4ParticleDefinition&);
00100 void BuildAsymmetryTable(const G4ParticleDefinition& part);
00101 virtual void PreparePhysicsTable(const G4ParticleDefinition&);
00102
00103 G4double ComputeAsymmetry(G4double energy,
00104 const G4MaterialCutsCouple* couple,
00105 const G4ParticleDefinition& particle,
00106 G4double cut,
00107 G4double &tasm);
00108
00109 protected:
00110
00111 virtual void InitialiseProcess(const G4ParticleDefinition*);
00112
00113 private:
00114
00115 G4bool isInitialised;
00116
00117
00118 G4PolarizedAnnihilationModel* emModel;
00119 G4ThreeVector theTargetPolarization;
00120
00121 G4PhysicsTable* theAsymmetryTable;
00122 G4PhysicsTable* theTransverseAsymmetryTable;
00123 };
00124
00125
00126
00127
00128 inline G4bool G4eplusPolarizedAnnihilation::IsApplicable(const G4ParticleDefinition& p)
00129 {
00130 return (&p == G4Positron::Positron());
00131 }
00132
00133
00134
00135 inline G4double G4eplusPolarizedAnnihilation::AtRestGetPhysicalInteractionLength(
00136 const G4Track&, G4ForceCondition* condition)
00137 {
00138 *condition = NotForced;
00139 return 0.0;
00140 }
00141
00142
00143
00144 #endif