Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:05

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // -------------------------------------------------------------------
0028 //
0029 // GEANT4 Class file
0030 //
0031 //
0032 // File name:  G4RDPhotoElectricAngularGeneratorPolarized
0033 //
0034 // Author:        A.C. Farinha, L. Peralta, P. Rodrigues and A. Trindade
0035 // 
0036 // Creation date: 10 January 2006
0037 //
0038 // Class Description: 
0039 //
0040 // Abstract class for PhotoElectricsstrahlung Angular Generator462 Generation
0041 // Further documentation available from http://www.ge.infn.it/geant4/lowE
0042 
0043 // -------------------------------------------------------------------
0044 //
0045 
0046 #ifndef G4RDPhotoElectricAngularGeneratorPolarized_h
0047 #define G4RDPhotoElectricAngularGeneratorPolarized_h 1
0048 
0049 #include "G4RDVPhotoElectricAngularDistribution.hh"
0050 #include "G4ios.hh"
0051 #include "globals.hh"
0052 #include "G4RotationMatrix.hh"
0053 
0054 class G4RDPhotoElectricAngularGeneratorPolarized : public G4RDVPhotoElectricAngularDistribution
0055 {
0056 
0057 public:
0058 
0059   G4RDPhotoElectricAngularGeneratorPolarized(const G4String& name);
0060 
0061   ~G4RDPhotoElectricAngularGeneratorPolarized();
0062 
0063   G4ThreeVector GetPhotoElectronDirection(const G4ThreeVector& direction, 
0064                       const G4double kineticEnergy, 
0065                       const G4ThreeVector& polarization, 
0066                       const G4int shellId) const;
0067 
0068   void PrintGeneratorInformation() const;
0069 
0070 protected:
0071   G4ThreeVector SetPerpendicularVector(const G4ThreeVector& a) const;
0072 
0073 private:
0074 
0075   // hide assignment operator 
0076   G4RDPhotoElectricAngularGeneratorPolarized & operator=(const  G4RDPhotoElectricAngularGeneratorPolarized &right);
0077   G4RDPhotoElectricAngularGeneratorPolarized(const  G4RDPhotoElectricAngularGeneratorPolarized&);
0078 
0079   void PhotoElectronGetMajorantSurfaceAandCParameters(const G4int shellLevel, 
0080                               const G4double beta, 
0081                               G4double *majorantSurfaceParameterA, 
0082                               G4double *majorantSurfaceParameterC) const;
0083 
0084   void PhotoElectronGeneratePhiAndTheta(const G4int shellLevel, 
0085                     const G4double beta, 
0086                     const G4double aBeta, 
0087                     const G4double cBeta, 
0088                     G4double *pphi, 
0089                     G4double *ptheta) const;
0090 
0091   G4ThreeVector PhotoElectronComputeFinalDirection(const G4RotationMatrix& rotation, 
0092                            const G4double theta, 
0093                            const G4double phi) const;
0094 
0095   G4RotationMatrix PhotoElectronRotationMatrix(const G4ThreeVector& direction, 
0096                            const G4ThreeVector& polarization) const;
0097 
0098   G4double GetMax(const G4double arg1, const G4double arg2) const;
0099 
0100   G4double CrossSectionMajorantFunction(const G4double theta, const G4double cBeta) const;
0101   G4double DSigmaKshellGavrila1959(const G4double beta, const G4double theta, const G4double phi) const;
0102   G4double DSigmaL1shellGavrila(const G4double beta, const G4double theta, const G4double phi) const;
0103 
0104   G4double betaArray[3];
0105   G4double aMajorantSurfaceParameterTable[980][2], cMajorantSurfaceParameterTable[980][2];
0106 };
0107 
0108 #endif
0109