Geant4 Cross Reference |
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 // ------------------------------------------------------------------- 27 // 28 // Geant4 Class header file 29 // 30 // File name: G4PolarizedIonisation 31 // 32 // Author: A.Schaelicke on base of Vladimir Ivanchenko code 33 // 34 // Class Description: 35 // polarized version of G4eIonisation 36 // ---------------------------------------------------------------------------- 37 38 #ifndef G4PolarizedIonisation_h 39 #define G4PolarizedIonisation_h 1 40 41 #include "globals.hh" 42 #include "G4VEnergyLossProcess.hh" 43 44 class G4Material; 45 class G4MaterialCutsCouple; 46 class G4ParticleDefinition; 47 class G4PhysicsTable; 48 class G4VEmFluctuationModel; 49 class G4PolarizedIonisationModel; 50 class G4Track; 51 52 class G4PolarizedIonisation : public G4VEnergyLossProcess 53 { 54 public: 55 explicit G4PolarizedIonisation(const G4String& name = "pol-eIoni"); 56 57 virtual ~G4PolarizedIonisation() override; 58 59 virtual G4bool IsApplicable(const G4ParticleDefinition& p) override; 60 61 virtual void ProcessDescription(std::ostream&) const override; 62 virtual void DumpInfo() const override { ProcessDescription(G4cout); }; 63 64 G4PolarizedIonisation& operator=(const G4PolarizedIonisation& right) = delete; 65 G4PolarizedIonisation(const G4PolarizedIonisation&) = delete; 66 67 protected: 68 virtual void InitialiseEnergyLossProcess( 69 const G4ParticleDefinition*, const G4ParticleDefinition*) override; 70 71 virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*, 72 const G4Material*, G4double cut) override; 73 74 virtual G4double PostStepGetPhysicalInteractionLength( 75 const G4Track& track, G4double previousStepSize, 76 G4ForceCondition* condition) override; 77 78 virtual G4double GetMeanFreePath(const G4Track& track, 79 G4double previousStepSize, 80 G4ForceCondition* condition) override; 81 82 virtual void BuildPhysicsTable(const G4ParticleDefinition&) override; 83 84 private: 85 void CleanTables(); 86 87 void BuildAsymmetryTables(const G4ParticleDefinition& part); 88 89 G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple* couple, 90 const G4ParticleDefinition& particle, G4double cut, 91 G4double& tasm); 92 93 G4double ComputeSaturationFactor(const G4Track& aTrack); 94 95 G4VEmFluctuationModel* fFlucModel; 96 G4PolarizedIonisationModel* fEmModel; 97 98 G4PhysicsTable* fAsymmetryTable; 99 G4PhysicsTable* fTransverseAsymmetryTable; 100 101 G4bool fIsElectron; 102 G4bool fIsInitialised; 103 }; 104 105 #endif 106