Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // ------------------------------------------- 26 // ------------------------------------------------------------------- 27 // 27 // 28 // Geant4 Class header file 28 // Geant4 Class header file 29 // 29 // 30 // File name: G4PolarizedAnnihilation 30 // File name: G4PolarizedAnnihilation 31 // 31 // 32 // Author: A. Schaelicke on base of Vladimir 32 // Author: A. Schaelicke on base of Vladimir Ivanchenko / Michel Maire code 33 // 33 // 34 // Class Description: 34 // Class Description: 35 // Polarized process of e+ annihilation into 35 // Polarized process of e+ annihilation into 2 gammas 36 // 36 // 37 // ------------------------------------------- 37 // ------------------------------------------------------------------- 38 38 39 #ifndef G4PolarizedAnnihilation_h 39 #ifndef G4PolarizedAnnihilation_h 40 #define G4PolarizedAnnihilation_h 1 40 #define G4PolarizedAnnihilation_h 1 41 41 42 #include "globals.hh" 42 #include "globals.hh" 43 #include "G4eplusAnnihilation.hh" 43 #include "G4eplusAnnihilation.hh" 44 44 45 class G4PolarizedAnnihilationModel; 45 class G4PolarizedAnnihilationModel; 46 46 47 class G4PolarizedAnnihilation : public G4eplus 47 class G4PolarizedAnnihilation : public G4eplusAnnihilation 48 { 48 { 49 public: 49 public: 50 explicit G4PolarizedAnnihilation(const G4Str 50 explicit G4PolarizedAnnihilation(const G4String& name = "pol-annihil"); 51 51 52 virtual ~G4PolarizedAnnihilation() override; 52 virtual ~G4PolarizedAnnihilation() override; 53 53 54 virtual void ProcessDescription(std::ostream 54 virtual void ProcessDescription(std::ostream&) const override; 55 virtual void DumpInfo() const override { Pro 55 virtual void DumpInfo() const override { ProcessDescription(G4cout); }; 56 56 57 virtual G4double GetMeanFreePath(const G4Tra 57 virtual G4double GetMeanFreePath(const G4Track& track, 58 G4double pr 58 G4double previousStepSize, 59 G4ForceCond 59 G4ForceCondition* condition) override; 60 60 61 virtual G4double PostStepGetPhysicalInteract 61 virtual G4double PostStepGetPhysicalInteractionLength( 62 const G4Track& track, G4double previousSte 62 const G4Track& track, G4double previousStepSize, 63 G4ForceCondition* condition) override; 63 G4ForceCondition* condition) override; 64 64 65 virtual void BuildPhysicsTable(const G4Parti 65 virtual void BuildPhysicsTable(const G4ParticleDefinition&) override; 66 66 67 G4PolarizedAnnihilation& operator=(const G4P 67 G4PolarizedAnnihilation& operator=(const G4PolarizedAnnihilation& right) = 68 delete; 68 delete; 69 G4PolarizedAnnihilation(const G4PolarizedAnn 69 G4PolarizedAnnihilation(const G4PolarizedAnnihilation&) = delete; 70 70 71 private: 71 private: 72 void CleanTables(); 72 void CleanTables(); 73 73 74 void BuildAsymmetryTables(const G4ParticleDe 74 void BuildAsymmetryTables(const G4ParticleDefinition& part); 75 75 76 G4double ComputeAsymmetry(G4double energy, c 76 G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple* couple, 77 const G4ParticleDe 77 const G4ParticleDefinition& particle, G4double cut, 78 G4double& tasm); 78 G4double& tasm); 79 79 80 G4double ComputeSaturationFactor(const G4Tra 80 G4double ComputeSaturationFactor(const G4Track& aTrack); 81 81 82 G4PolarizedAnnihilationModel* fEmModel; 82 G4PolarizedAnnihilationModel* fEmModel; 83 83 84 // table for cross section asymmetry 84 // table for cross section asymmetry 85 G4PhysicsTable* fAsymmetryTable; 85 G4PhysicsTable* fAsymmetryTable; 86 // table for transverse cross section asymme 86 // table for transverse cross section asymmetry 87 G4PhysicsTable* fTransverseAsymmetryTable; 87 G4PhysicsTable* fTransverseAsymmetryTable; 88 }; 88 }; 89 89 90 #endif 90 #endif 91 91