Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:26

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 // File name:     G4VPolarizedXS
0027 //
0028 // Author:        Andreas Schaelicke
0029 //
0030 // Class Description:
0031 //   (virtual) interface class
0032 //
0033 //   provides readable but efficient routines to determine
0034 //   polarization for the final state of a given process
0035 //   empoying the differential cross section
0036 
0037 #ifndef G4VPolarizedXS_h
0038 #define G4VPolarizedXS_h 1
0039 
0040 #include "G4StokesVector.hh"
0041 
0042 class G4VPolarizedXS
0043 {
0044  public:
0045   G4VPolarizedXS();
0046   virtual ~G4VPolarizedXS();
0047 
0048   virtual void Initialize(G4double, G4double, G4double,
0049                           const G4StokesVector& p0, const G4StokesVector& p1,
0050                           G4int flag = 0) = 0;
0051 
0052   virtual G4double XSection(const G4StokesVector& pol2,
0053                             const G4StokesVector& pol3) = 0;
0054 
0055   virtual G4double TotalXSection(G4double xmin, G4double xmax, G4double y,
0056                                  const G4StokesVector& pol0,
0057                                  const G4StokesVector& pol1);
0058 
0059   // return expected mean polarisation
0060   virtual G4StokesVector GetPol2();
0061   virtual G4StokesVector GetPol3();
0062 
0063   // return basic kinematics properties
0064   //   minimal gamma value in TotalXSection
0065   inline G4double GetYmin() { return fYmin; }
0066   //   minimal energy fraction in TotalXSection
0067   virtual G4double GetXmin(G4double y);
0068   //   maximal energy fraction in TotalXSection
0069   virtual G4double GetXmax(G4double y);
0070 
0071   inline void SetMaterial(G4double A, G4double Z, G4double coul)
0072   {
0073     fA    = A;
0074     fZ    = Z;
0075     fCoul = coul;
0076   }
0077 
0078   G4VPolarizedXS& operator=(const G4VPolarizedXS& right) = delete;
0079   G4VPolarizedXS(const G4VPolarizedXS&)                  = delete;
0080 
0081  protected:
0082   // define kinematics properties
0083   inline void SetXmin(G4double xmin) { fXmin = xmin; }
0084   inline void SetXmax(G4double xmax) { fXmax = xmax; }
0085   inline void SetYmin(G4double ymin) { fYmin = ymin; }
0086 
0087   // kinematic properties
0088   G4double fXmin, fXmax, fYmin;
0089   // material properties
0090   G4double fA, fZ;
0091   G4double fCoul;
0092 };
0093 
0094 #endif