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