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:     G4PolarizedAnnihilation
0031 //
0032 // Author:   A. Schaelicke on base of Vladimir Ivanchenko / Michel Maire code
0033 //
0034 // Class Description:
0035 //  Polarized process of e+ annihilation into 2 gammas
0036 //
0037 // -------------------------------------------------------------------
0038 
0039 #ifndef G4PolarizedAnnihilation_h
0040 #define G4PolarizedAnnihilation_h 1
0041 
0042 #include "globals.hh"
0043 #include "G4eplusAnnihilation.hh"
0044 
0045 class G4PolarizedAnnihilationModel;
0046 
0047 class G4PolarizedAnnihilation : public G4eplusAnnihilation
0048 {
0049  public:
0050   explicit G4PolarizedAnnihilation(const G4String& name = "pol-annihil");
0051 
0052   virtual ~G4PolarizedAnnihilation() override;
0053 
0054   virtual void ProcessDescription(std::ostream&) const override;
0055   virtual void DumpInfo() const override { ProcessDescription(G4cout); };
0056 
0057   virtual G4double GetMeanFreePath(const G4Track& track,
0058                                    G4double previousStepSize,
0059                                    G4ForceCondition* condition) override;
0060 
0061   virtual G4double PostStepGetPhysicalInteractionLength(
0062     const G4Track& track, G4double previousStepSize,
0063     G4ForceCondition* condition) override;
0064 
0065   virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
0066 
0067   G4PolarizedAnnihilation& operator=(const G4PolarizedAnnihilation& right) =
0068     delete;
0069   G4PolarizedAnnihilation(const G4PolarizedAnnihilation&) = delete;
0070 
0071  private:
0072   void CleanTables();
0073 
0074   void BuildAsymmetryTables(const G4ParticleDefinition& part);
0075 
0076   G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple* couple,
0077                             const G4ParticleDefinition& particle, G4double cut,
0078                             G4double& tasm);
0079 
0080   G4double ComputeSaturationFactor(const G4Track& aTrack);
0081 
0082   G4PolarizedAnnihilationModel* fEmModel;
0083 
0084   // table for cross section asymmetry
0085   G4PhysicsTable* fAsymmetryTable;
0086   // table for transverse cross section asymmetry
0087   G4PhysicsTable* fTransverseAsymmetryTable;
0088 };
0089 
0090 #endif