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 // $Id: G4LivermorePolarizedGammaConversionModel.hh 93359 2015-10-19 13:42:18Z gcosmo $ 26 // 27 // 27 // Authors: G.Depaola & F.Longo 28 // Authors: G.Depaola & F.Longo 28 // 29 // 29 30 30 #ifndef G4LivermorePolarizedGammaConversionMod 31 #ifndef G4LivermorePolarizedGammaConversionModel_h 31 #define G4LivermorePolarizedGammaConversionMod 32 #define G4LivermorePolarizedGammaConversionModel_h 1 32 33 33 #include "G4VEmModel.hh" 34 #include "G4VEmModel.hh" 34 #include "G4PhysicsFreeVector.hh" << 35 #include "G4LPhysicsFreeVector.hh" 35 36 >> 37 //#include "G4Electron.hh" >> 38 //#include "G4Positron.hh" 36 class G4ParticleChangeForGamma; 39 class G4ParticleChangeForGamma; 37 40 >> 41 >> 42 38 class G4LivermorePolarizedGammaConversionModel 43 class G4LivermorePolarizedGammaConversionModel : public G4VEmModel 39 { 44 { >> 45 40 public: 46 public: 41 47 42 explicit G4LivermorePolarizedGammaConversion << 48 G4LivermorePolarizedGammaConversionModel(const G4ParticleDefinition* p = 0, 43 const G4String& nam = "Livermor 49 const G4String& nam = "LivermorePolarizedGammaConversion"); >> 50 44 virtual ~G4LivermorePolarizedGammaConversion 51 virtual ~G4LivermorePolarizedGammaConversionModel(); 45 52 46 void Initialise(const G4ParticleDefinition*, << 53 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 47 54 48 void InitialiseLocal(const G4ParticleDefinit << 55 virtual void InitialiseLocal(const G4ParticleDefinition*, 49 G4VEmModel* masterModel) override; << 56 G4VEmModel* masterModel); >> 57 >> 58 virtual void InitialiseForElement(const G4ParticleDefinition*, G4int Z); >> 59 >> 60 virtual G4double ComputeCrossSectionPerAtom( >> 61 const G4ParticleDefinition*, >> 62 G4double kinEnergy, >> 63 G4double Z, >> 64 G4double A=0, >> 65 G4double cut=0, >> 66 G4double emax=DBL_MAX); >> 67 >> 68 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, >> 69 const G4MaterialCutsCouple*, >> 70 const G4DynamicParticle*, >> 71 G4double tmin, >> 72 G4double maxEnergy); >> 73 >> 74 virtual G4double MinPrimaryEnergy(const G4Material*, >> 75 const G4ParticleDefinition*, >> 76 G4double); >> 77 >> 78 private: 50 79 51 void InitialiseForElement(const G4ParticleDe << 80 G4ParticleChangeForGamma* fParticleChange; 52 81 53 G4double ComputeCrossSectionPerAtom( << 82 G4double lowEnergyLimit; 54 const G4ParticleDefinition*, << 83 55 G4double kinEnergy, << 84 // G4double highEnergyLimit; 56 G4double Z, << 85 G4bool isInitialised; 57 G4double A=0, << 86 G4int verboseLevel; 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 87 71 G4LivermorePolarizedGammaConversionModel & o << 72 G4LivermorePolarizedGammaConversionModel(con << 73 88 74 private: << 75 void ReadData(size_t Z, const char* path = 0 89 void ReadData(size_t Z, const char* path = 0); 76 90 77 G4double ScreenFunction1(G4double screenVari 91 G4double ScreenFunction1(G4double screenVariable); 78 G4double ScreenFunction2(G4double screenVari 92 G4double ScreenFunction2(G4double screenVariable); 79 93 80 // specific methods for polarization 94 // specific methods for polarization >> 95 81 G4ThreeVector GetRandomPolarization(G4ThreeV 96 G4ThreeVector GetRandomPolarization(G4ThreeVector& direction0); // Random Polarization 82 G4ThreeVector GetPerpendicularPolarization(c 97 G4ThreeVector GetPerpendicularPolarization(const G4ThreeVector& direction0, const G4ThreeVector& polarization0) const; 83 G4ThreeVector SetPerpendicularVector(G4Three 98 G4ThreeVector SetPerpendicularVector(G4ThreeVector& a); // temporary 84 void SystemOfRefChange(G4ThreeVector& direct 99 void SystemOfRefChange(G4ThreeVector& direction0, G4ThreeVector& direction1, 85 G4ThreeVector& polarization0); 100 G4ThreeVector& polarization0); 86 101 87 // Gamma Conversion methods 102 // Gamma Conversion methods >> 103 >> 104 88 G4double SetPhi(G4double); 105 G4double SetPhi(G4double); 89 G4double SetPsi(G4double, G4double); // 106 G4double SetPsi(G4double, G4double); // 90 107 91 void SetTheta(G4double*, G4double*, G4double 108 void SetTheta(G4double*, G4double*, G4double); 92 109 93 G4double Poli(G4double , G4double, G4double, 110 G4double Poli(G4double , G4double, G4double, G4double); 94 G4double Fln(G4double, G4double, G4double); 111 G4double Fln(G4double, G4double, G4double); 95 112 96 G4double Encu(G4double*, G4double*, G4double 113 G4double Encu(G4double*, G4double*, G4double); 97 114 98 G4double Flor(G4double*, G4double); 115 G4double Flor(G4double*, G4double); 99 G4double Glor(G4double*, G4double); 116 G4double Glor(G4double*, G4double); 100 117 101 G4double Fdlor(G4double*, G4double); 118 G4double Fdlor(G4double*, G4double); 102 G4double Fintlor(G4double*, G4double); 119 G4double Fintlor(G4double*, G4double); 103 G4double Finvlor(G4double*, G4double,G4doubl 120 G4double Finvlor(G4double*, G4double,G4double); 104 121 105 G4double Ftan(G4double*, G4double); 122 G4double Ftan(G4double*, G4double); >> 123 >> 124 //G4double Gtan(G4double*, G4double); >> 125 106 G4double Fdtan(G4double*, G4double); 126 G4double Fdtan(G4double*, G4double); 107 G4double Finttan(G4double*, G4double); 127 G4double Finttan(G4double*, G4double); 108 G4double Finvtan(G4double*, G4double, G4doub 128 G4double Finvtan(G4double*, G4double, G4double); 109 129 >> 130 G4double smallEnergy; >> 131 G4double Psi, Phi; 110 132 111 G4ParticleChangeForGamma* fParticleChange; << 133 >> 134 G4LivermorePolarizedGammaConversionModel & operator=(const G4LivermorePolarizedGammaConversionModel &right); >> 135 G4LivermorePolarizedGammaConversionModel(const G4LivermorePolarizedGammaConversionModel&); 112 136 113 static const G4int maxZ = 99; << 137 static G4int maxZ; 114 static G4PhysicsFreeVector* data[100]; // 10 << 138 static G4LPhysicsFreeVector* data[100]; // 100 because Z range is 1-99 115 139 116 G4double lowEnergyLimit; << 117 G4double smallEnergy; << 118 G4double Psi, Phi; << 119 G4int verboseLevel; << 120 G4bool isInitialised; << 121 }; 140 }; 122 141 123 //....oooOO0OOooo........oooOO0OOooo........oo 142 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 124 143 125 #endif 144 #endif 126 145