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