[819] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // $Id: G4eplusPolarizedAnnihilation.hh,v 1.3 2007/06/11 13:37:56 vnivanch Exp $ |
---|
[961] | 27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[819] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // GEANT4 Class header file |
---|
| 32 | // |
---|
| 33 | // |
---|
| 34 | // File name: G4eplusPolarizedAnnihilation |
---|
| 35 | // |
---|
| 36 | // Author: A. Schaelicke on base of Vladimir Ivanchenko / Michel Maire code |
---|
| 37 | // |
---|
| 38 | // Creation date: 02.07.2006 |
---|
| 39 | // |
---|
| 40 | // Modifications: |
---|
| 41 | // 26-07-06 modified cross section (P. Starovoitov) |
---|
| 42 | // 21-08-06 interface updated (A. Schaelicke) |
---|
| 43 | // 11-06-07, add PostStepGetPhysicalInteractionLength (A.Schalicke) |
---|
| 44 | // |
---|
| 45 | // |
---|
| 46 | // Class Description: |
---|
| 47 | // |
---|
| 48 | // Polarized process of e+ annihilation into 2 gammas |
---|
| 49 | // |
---|
| 50 | |
---|
| 51 | // ------------------------------------------------------------------- |
---|
| 52 | // |
---|
| 53 | |
---|
| 54 | #ifndef G4eplusPolarizedAnnihilation_h |
---|
| 55 | #define G4eplusPolarizedAnnihilation_h 1 |
---|
| 56 | |
---|
| 57 | #include "G4VEmProcess.hh" |
---|
| 58 | #include "G4Positron.hh" |
---|
| 59 | #include "G4VEmModel.hh" |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | class G4PolarizedAnnihilationModel; |
---|
| 63 | |
---|
| 64 | class G4eplusPolarizedAnnihilation : public G4VEmProcess |
---|
| 65 | { |
---|
| 66 | |
---|
| 67 | public: |
---|
| 68 | |
---|
| 69 | G4eplusPolarizedAnnihilation(const G4String& name = "pol-annihil"); |
---|
| 70 | |
---|
| 71 | virtual ~G4eplusPolarizedAnnihilation(); |
---|
| 72 | |
---|
| 73 | virtual G4bool IsApplicable(const G4ParticleDefinition& p); |
---|
| 74 | |
---|
| 75 | virtual G4VParticleChange* AtRestDoIt( |
---|
| 76 | const G4Track& track, |
---|
| 77 | const G4Step& stepData); |
---|
| 78 | |
---|
| 79 | G4double AtRestGetPhysicalInteractionLength( |
---|
| 80 | const G4Track& track, |
---|
| 81 | G4ForceCondition* condition |
---|
| 82 | ); |
---|
| 83 | |
---|
| 84 | // Print out of the class parameters |
---|
| 85 | virtual void PrintInfo(); |
---|
| 86 | |
---|
| 87 | // for polarization |
---|
| 88 | // G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&); |
---|
| 89 | |
---|
| 90 | G4double GetMeanFreePath(const G4Track& track, |
---|
| 91 | G4double previousStepSize, |
---|
| 92 | G4ForceCondition* condition); |
---|
| 93 | |
---|
| 94 | G4double PostStepGetPhysicalInteractionLength( |
---|
| 95 | const G4Track& track, |
---|
| 96 | G4double previousStepSize, |
---|
| 97 | G4ForceCondition* condition |
---|
| 98 | ); |
---|
| 99 | |
---|
| 100 | virtual void BuildPhysicsTable(const G4ParticleDefinition&); |
---|
| 101 | void BuildAsymmetryTable(const G4ParticleDefinition& part); |
---|
| 102 | virtual void PreparePhysicsTable(const G4ParticleDefinition&); |
---|
| 103 | |
---|
| 104 | G4double ComputeAsymmetry(G4double energy, |
---|
| 105 | const G4MaterialCutsCouple* couple, |
---|
| 106 | const G4ParticleDefinition& particle, |
---|
| 107 | G4double cut, |
---|
| 108 | G4double &tasm); |
---|
| 109 | |
---|
| 110 | protected: |
---|
| 111 | |
---|
| 112 | virtual void InitialiseProcess(const G4ParticleDefinition*); |
---|
| 113 | |
---|
| 114 | private: |
---|
| 115 | |
---|
| 116 | G4bool isInitialised; |
---|
| 117 | |
---|
| 118 | // for polarization: |
---|
| 119 | G4PolarizedAnnihilationModel* emModel; |
---|
| 120 | G4ThreeVector theTargetPolarization; |
---|
| 121 | |
---|
| 122 | G4PhysicsTable* theAsymmetryTable; // table for cross section assym. |
---|
| 123 | G4PhysicsTable* theTransverseAsymmetryTable; // table for transverse cross section assym. |
---|
| 124 | }; |
---|
| 125 | |
---|
| 126 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 127 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 128 | |
---|
| 129 | inline G4bool G4eplusPolarizedAnnihilation::IsApplicable(const G4ParticleDefinition& p) |
---|
| 130 | { |
---|
| 131 | return (&p == G4Positron::Positron()); |
---|
| 132 | } |
---|
| 133 | |
---|
| 134 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
| 135 | |
---|
| 136 | inline G4double G4eplusPolarizedAnnihilation::AtRestGetPhysicalInteractionLength( |
---|
| 137 | const G4Track&, G4ForceCondition* condition) |
---|
| 138 | { |
---|
| 139 | *condition = NotForced; |
---|
| 140 | return 0.0; |
---|
| 141 | } |
---|
| 142 | |
---|
| 143 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 144 | |
---|
| 145 | #endif |
---|