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: G4PolarizedCompton 30 // File name: G4PolarizedCompton 31 // 31 // 32 // Author: Andreas Schaelicke 32 // Author: Andreas Schaelicke 33 // based on code by Michel Mair 33 // based on code by Michel Maire / Vladimir IVANTCHENKO 34 // 34 // 35 // Class description 35 // Class description 36 // polarized version of Compton scattering 36 // polarized version of Compton scattering 37 // 37 // 38 // ------------------------------------------- 38 // ----------------------------------------------------------------------------- 39 39 40 #ifndef PolarizedComptonScattering_h 40 #ifndef PolarizedComptonScattering_h 41 #define PolarizedComptonScattering_h 1 41 #define PolarizedComptonScattering_h 1 42 42 43 #include "globals.hh" 43 #include "globals.hh" 44 #include "G4Gamma.hh" 44 #include "G4Gamma.hh" 45 #include "G4VEmProcess.hh" 45 #include "G4VEmProcess.hh" 46 46 47 class G4DynamicParticle; 47 class G4DynamicParticle; 48 class G4MaterialCutsCouple; 48 class G4MaterialCutsCouple; 49 class G4ParticleDefinition; 49 class G4ParticleDefinition; 50 class G4PolarizedComptonModel; 50 class G4PolarizedComptonModel; 51 51 52 class G4PolarizedCompton : public G4VEmProcess 52 class G4PolarizedCompton : public G4VEmProcess 53 53 54 { 54 { 55 public: 55 public: 56 explicit G4PolarizedCompton(const G4String& 56 explicit G4PolarizedCompton(const G4String& processName = "pol-compt", 57 G4ProcessType ty 57 G4ProcessType type = fElectromagnetic); 58 58 59 virtual ~G4PolarizedCompton() override; 59 virtual ~G4PolarizedCompton() override; 60 60 61 // true for Gamma only. 61 // true for Gamma only. 62 virtual G4bool IsApplicable(const G4Particle 62 virtual G4bool IsApplicable(const G4ParticleDefinition&) override; 63 63 64 virtual void ProcessDescription(std::ostream 64 virtual void ProcessDescription(std::ostream&) const override; 65 virtual void DumpInfo() const override { Pro 65 virtual void DumpInfo() const override { ProcessDescription(G4cout); }; 66 66 67 void SetModel(const G4String& name); 67 void SetModel(const G4String& name); 68 68 69 G4PolarizedCompton& operator=(const G4Polari 69 G4PolarizedCompton& operator=(const G4PolarizedCompton& right) = delete; 70 G4PolarizedCompton(const G4PolarizedCompton& 70 G4PolarizedCompton(const G4PolarizedCompton&) = delete; 71 71 72 protected: 72 protected: 73 virtual void InitialiseProcess(const G4Parti 73 virtual void InitialiseProcess(const G4ParticleDefinition*) override; 74 74 75 virtual void BuildPhysicsTable(const G4Parti 75 virtual void BuildPhysicsTable(const G4ParticleDefinition&) override; 76 76 77 virtual G4double GetMeanFreePath(const G4Tra 77 virtual G4double GetMeanFreePath(const G4Track& aTrack, 78 G4double pr 78 G4double previousStepSize, 79 G4ForceCond 79 G4ForceCondition* condition) override; 80 80 81 virtual G4double PostStepGetPhysicalInteract 81 virtual G4double PostStepGetPhysicalInteractionLength( 82 const G4Track& track, G4double previousSte 82 const G4Track& track, G4double previousStepSize, 83 G4ForceCondition* condition) override; 83 G4ForceCondition* condition) override; 84 84 85 private: 85 private: 86 static G4PhysicsTable* theAsymmetryTable; / 86 static G4PhysicsTable* theAsymmetryTable; // table for crosssection asymmetry 87 void CleanTable(); 87 void CleanTable(); 88 88 89 void BuildAsymmetryTable(const G4ParticleDef 89 void BuildAsymmetryTable(const G4ParticleDefinition& part); 90 90 91 G4double ComputeAsymmetry(G4double energy, c 91 G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple* couple, 92 const G4ParticleDe 92 const G4ParticleDefinition& particle, G4double cut, 93 G4double& tAsymmet 93 G4double& tAsymmetry); 94 94 95 G4double ComputeSaturationFactor(const G4Tra 95 G4double ComputeSaturationFactor(const G4Track& aTrack); 96 96 97 G4PolarizedComptonModel* fEmModel; 97 G4PolarizedComptonModel* fEmModel; 98 98 99 G4int fType; 99 G4int fType; 100 100 101 G4bool fBuildAsymmetryTable; 101 G4bool fBuildAsymmetryTable; 102 G4bool fUseAsymmetryTable; 102 G4bool fUseAsymmetryTable; 103 103 104 G4bool fIsInitialised; 104 G4bool fIsInitialised; 105 }; 105 }; 106 106 107 //....oooOO0OOooo........oooOO0OOooo........oo 107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 108 108 109 #endif 109 #endif 110 110