Back to home page

EIC code displayed by LXR

 
 

    


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

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 // Geant4 Class header file
0029 //
0030 // File name:     G4PolarizedCompton
0031 //
0032 // Author:        Andreas Schaelicke
0033 //                based on code by Michel Maire / Vladimir IVANTCHENKO
0034 //
0035 // Class description
0036 //   polarized version of Compton scattering
0037 //
0038 // -----------------------------------------------------------------------------
0039 
0040 #ifndef PolarizedComptonScattering_h
0041 #define PolarizedComptonScattering_h 1
0042 
0043 #include "globals.hh"
0044 #include "G4Gamma.hh"
0045 #include "G4VEmProcess.hh"
0046 
0047 class G4DynamicParticle;
0048 class G4MaterialCutsCouple;
0049 class G4ParticleDefinition;
0050 class G4PolarizedComptonModel;
0051 
0052 class G4PolarizedCompton : public G4VEmProcess
0053 
0054 {
0055  public:
0056   explicit G4PolarizedCompton(const G4String& processName = "pol-compt",
0057                               G4ProcessType type          = fElectromagnetic);
0058 
0059   virtual ~G4PolarizedCompton() override;
0060 
0061   // true for Gamma only.
0062   virtual G4bool IsApplicable(const G4ParticleDefinition&) override;
0063 
0064   virtual void ProcessDescription(std::ostream&) const override;
0065   virtual void DumpInfo() const override { ProcessDescription(G4cout); };
0066 
0067   void SetModel(const G4String& name);
0068 
0069   G4PolarizedCompton& operator=(const G4PolarizedCompton& right) = delete;
0070   G4PolarizedCompton(const G4PolarizedCompton&)                  = delete;
0071 
0072  protected:
0073   virtual void InitialiseProcess(const G4ParticleDefinition*) override;
0074 
0075   virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
0076 
0077   virtual G4double GetMeanFreePath(const G4Track& aTrack,
0078                                    G4double previousStepSize,
0079                                    G4ForceCondition* condition) override;
0080 
0081   virtual G4double PostStepGetPhysicalInteractionLength(
0082     const G4Track& track, G4double previousStepSize,
0083     G4ForceCondition* condition) override;
0084 
0085  private:
0086   static G4PhysicsTable* theAsymmetryTable;  // table for crosssection asymmetry
0087   void CleanTable();
0088 
0089   void BuildAsymmetryTable(const G4ParticleDefinition& part);
0090 
0091   G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple* couple,
0092                             const G4ParticleDefinition& particle, G4double cut,
0093                             G4double& tAsymmetry);
0094 
0095   G4double ComputeSaturationFactor(const G4Track& aTrack);
0096 
0097   G4PolarizedComptonModel* fEmModel;
0098 
0099   G4int fType;
0100 
0101   G4bool fBuildAsymmetryTable;
0102   G4bool fUseAsymmetryTable;
0103 
0104   G4bool fIsInitialised;
0105 };
0106 
0107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0108 
0109 #endif