Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 // Authors: G.Depaola & F.Longo 28 // 29 30 #ifndef G4LivermorePolarizedGammaConversionMod 31 #define G4LivermorePolarizedGammaConversionMod 32 33 #include "G4VEmModel.hh" 34 #include "G4PhysicsFreeVector.hh" 35 36 class G4ParticleChangeForGamma; 37 38 class G4LivermorePolarizedGammaConversionModel 39 { 40 public: 41 42 explicit G4LivermorePolarizedGammaConversion 43 const G4String& nam = "Livermor 44 virtual ~G4LivermorePolarizedGammaConversion 45 46 void Initialise(const G4ParticleDefinition*, 47 48 void InitialiseLocal(const G4ParticleDefinit 49 G4VEmModel* masterModel) override; 50 51 void InitialiseForElement(const G4ParticleDe 52 53 G4double ComputeCrossSectionPerAtom( 54 const G4ParticleDefinition*, 55 G4double kinEnergy, 56 G4double Z, 57 G4double A=0, 58 G4double cut=0, 59 G4double emax=DBL_MAX) override; 60 61 void SampleSecondaries(std::vector<G4Dynamic 62 const G4MaterialCutsCouple*, 63 const G4DynamicParticle*, 64 G4double tmin, 65 G4double maxEnergy) override; 66 67 G4double MinPrimaryEnergy(const G4Material*, 68 const G4ParticleDefinition*, 69 G4double) override; 70 71 G4LivermorePolarizedGammaConversionModel & o 72 G4LivermorePolarizedGammaConversionModel(con 73 74 private: 75 void ReadData(size_t Z, const char* path = 0 76 77 G4double ScreenFunction1(G4double screenVari 78 G4double ScreenFunction2(G4double screenVari 79 80 // specific methods for polarization 81 G4ThreeVector GetRandomPolarization(G4ThreeV 82 G4ThreeVector GetPerpendicularPolarization(c 83 G4ThreeVector SetPerpendicularVector(G4Three 84 void SystemOfRefChange(G4ThreeVector& direct 85 G4ThreeVector& polarization0); 86 87 // Gamma Conversion methods 88 G4double SetPhi(G4double); 89 G4double SetPsi(G4double, G4double); // 90 91 void SetTheta(G4double*, G4double*, G4double 92 93 G4double Poli(G4double , G4double, G4double, 94 G4double Fln(G4double, G4double, G4double); 95 96 G4double Encu(G4double*, G4double*, G4double 97 98 G4double Flor(G4double*, G4double); 99 G4double Glor(G4double*, G4double); 100 101 G4double Fdlor(G4double*, G4double); 102 G4double Fintlor(G4double*, G4double); 103 G4double Finvlor(G4double*, G4double,G4doubl 104 105 G4double Ftan(G4double*, G4double); 106 G4double Fdtan(G4double*, G4double); 107 G4double Finttan(G4double*, G4double); 108 G4double Finvtan(G4double*, G4double, G4doub 109 110 111 G4ParticleChangeForGamma* fParticleChange; 112 113 static const G4int maxZ = 99; 114 static G4PhysicsFreeVector* data[100]; // 10 115 116 G4double lowEnergyLimit; 117 G4double smallEnergy; 118 G4double Psi, Phi; 119 G4int verboseLevel; 120 G4bool isInitialised; 121 }; 122 123 //....oooOO0OOooo........oooOO0OOooo........oo 124 125 #endif 126