Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:55

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:  G4PhotoElectricAngularGeneratorPolarized
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 
0041 // -------------------------------------------------------------------
0042 //
0043 
0044 #ifndef G4PhotoElectricAngularGeneratorPolarized_h
0045 #define G4PhotoElectricAngularGeneratorPolarized_h 1
0046 
0047 #include "G4VEmAngularDistribution.hh"
0048 #include "G4ios.hh"
0049 #include "globals.hh"
0050 #include "G4RotationMatrix.hh"
0051 
0052 class G4PhotoElectricAngularGeneratorPolarized : public G4VEmAngularDistribution
0053 {
0054 public:
0055   explicit G4PhotoElectricAngularGeneratorPolarized();
0056   ~G4PhotoElectricAngularGeneratorPolarized();
0057 
0058   G4ThreeVector& SampleDirection(const G4DynamicParticle* dp,
0059                  G4double eKinEnergy,
0060                  G4int shellId,
0061                  const G4Material* mat = nullptr) override;
0062 
0063   void PrintGeneratorInformation() const override;
0064 
0065   // hide assignment operator 
0066   G4PhotoElectricAngularGeneratorPolarized & operator=(const  G4PhotoElectricAngularGeneratorPolarized &right) = delete;
0067   G4PhotoElectricAngularGeneratorPolarized(const  G4PhotoElectricAngularGeneratorPolarized&) = delete;
0068 
0069 protected:
0070   G4ThreeVector PerpendicularVector(const G4ThreeVector& a) const;
0071 
0072 private:
0073   void PhotoElectronGetMajorantSurfaceAandCParameters(G4int shellId, 
0074                               G4double beta, 
0075                               G4double *majorantSurfaceParameterA, 
0076                               G4double *majorantSurfaceParameterC) const;
0077   void PhotoElectronGeneratePhiAndTheta(G4int shellId, 
0078                     G4double beta, 
0079                     G4double aBeta, 
0080                     G4double cBeta, 
0081                     G4double *pphi, 
0082                     G4double *ptheta) const;
0083   G4ThreeVector PhotoElectronComputeFinalDirection(const G4RotationMatrix& rotation, 
0084                            G4double theta, 
0085                            G4double phi) const;
0086   G4RotationMatrix PhotoElectronRotationMatrix(const G4ThreeVector& direction, 
0087                            const G4ThreeVector& polarization);
0088 
0089   G4double CrossSectionMajorantFunction(G4double theta, G4double cBeta) const;
0090   G4double DSigmaKshellGavrila1959(G4double beta, G4double theta, G4double phi) const;
0091   G4double DSigmaL1shellGavrila(G4double beta, G4double theta, G4double phi) const;
0092 
0093   G4double betaArray[3];
0094   G4double aMajorantSurfaceParameterTable[980][2];
0095   G4double cMajorantSurfaceParameterTable[980][2];
0096 };
0097 
0098 #endif
0099