Back to home page

EIC code displayed by LXR

 
 

    


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

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 header file
0030 //
0031 // File name:     G4VEmAngularDistribution
0032 //
0033 // Author:        V. Ivanchenko using design of existing 
0034 //                interface G4VBremAngularDistribution
0035 // 
0036 // Creation date: 13 October 2010
0037 //
0038 // Modifications: 
0039 //
0040 // Class Description: 
0041 //
0042 // Abstract base class for polar angle sampling
0043 //
0044 // Class Description: End 
0045 
0046 // -------------------------------------------------------------------
0047 //
0048 
0049 #ifndef G4VEmAngularDistribution_h
0050 #define G4VEmAngularDistribution_h 1
0051 
0052 #include "globals.hh"
0053 #include "G4ThreeVector.hh"
0054 #include "G4DynamicParticle.hh"
0055 
0056 class G4Material;
0057 
0058 class G4VEmAngularDistribution
0059 {
0060 public:
0061 
0062   explicit G4VEmAngularDistribution(const G4String& name);
0063 
0064   virtual ~G4VEmAngularDistribution();
0065 
0066   // Sample direction in global coordinate system,
0067   // this means for zero scattering angle this direction is the same
0068   // as the direction of primary 
0069   virtual G4ThreeVector& SampleDirection(const G4DynamicParticle* dp,
0070                      G4double finalTotalEnergy,
0071                      G4int Z,
0072                      const G4Material*) = 0;
0073 
0074   // Sample direction in global coordinate system for given electronic shell,
0075   // this means for zero scattering angle this direction is the same
0076   // as the direction of primary 
0077   virtual G4ThreeVector& SampleDirectionForShell(
0078                      const G4DynamicParticle* dp,
0079                      G4double finalTotalEnergy,
0080                      G4int Z,
0081                      G4int shellID,
0082                      const G4Material*);
0083 
0084   virtual void SamplePairDirections(const G4DynamicParticle* dp,
0085                     G4double elecKinEnergy,
0086                     G4double posiKinEnergy,
0087                     G4ThreeVector& dirElectron,
0088                     G4ThreeVector& dirPositron,
0089                     G4int Z = 0,
0090                     const G4Material* mat = nullptr);
0091 
0092   virtual void PrintGeneratorInformation() const;
0093 
0094   inline const G4String& GetName() const;
0095 
0096   // hide assignment operator
0097   G4VEmAngularDistribution & 
0098     operator=(const  G4VEmAngularDistribution &right) = delete;
0099   G4VEmAngularDistribution(const  G4VEmAngularDistribution&) = delete;
0100 
0101 protected:
0102 
0103   G4ThreeVector fLocalDirection;
0104   G4bool fPolarisation;
0105 
0106 private:
0107 
0108   G4String fName;
0109 };
0110 
0111 inline const G4String& G4VEmAngularDistribution::GetName() const
0112 {
0113   return fName;
0114 }
0115 
0116 #endif
0117