|
||||
File indexing completed on 2025-01-18 09:58:41
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 // 0032 // File name: G4ModifiedTsai 0033 // 0034 // Author: Andreia Trindade (andreia@lip.pt) 0035 // Pedro Rodrigues (psilva@lip.pt) 0036 // Luis Peralta (luis@lip.pt) 0037 // 0038 // Creation date: 21 March 2003 0039 // 0040 // Modifications: 0041 // 21 Mar 2003 A.Trindade First implementation acording with new design 0042 // 24 Mar 2003 A.Trindade Fix in Tsai generator in order to prevent theta 0043 // generation above pi 0044 // 13 Oct 2010 V.Ivanchenko Moved to standard and improved comment 0045 // 0046 // Class Description: 0047 // 0048 // Bremsstrahlung Angular Distribution Generation 0049 // suggested by L.Urban (Geant3 manual (1993) Phys211) 0050 // Derived from Tsai distribution (Rev Mod Phys 49,421(1977)) 0051 // 0052 // ------------------------------------------------------------------- 0053 // 0054 0055 #ifndef G4ModifiedTsai_h 0056 #define G4ModifiedTsai_h 1 0057 0058 #include "G4ios.hh" 0059 #include "globals.hh" 0060 #include "G4VEmAngularDistribution.hh" 0061 0062 class G4ModifiedTsai : public G4VEmAngularDistribution 0063 { 0064 0065 public: 0066 0067 explicit G4ModifiedTsai(const G4String& name = ""); 0068 0069 ~G4ModifiedTsai() override; 0070 0071 G4ThreeVector& SampleDirection(const G4DynamicParticle* dp, 0072 G4double out_energy, G4int Z, 0073 const G4Material* mat = nullptr) final; 0074 0075 void SamplePairDirections(const G4DynamicParticle* dp, 0076 G4double elecKinEnergy, 0077 G4double posiKinEnergy, 0078 G4ThreeVector& dirElectron, 0079 G4ThreeVector& dirPositron, 0080 G4int Z = 0, 0081 const G4Material* mat = nullptr) final; 0082 0083 void PrintGeneratorInformation() const final; 0084 0085 // hide assignment operator 0086 G4ModifiedTsai & operator=(const G4ModifiedTsai &right) = delete; 0087 G4ModifiedTsai(const G4ModifiedTsai&) = delete; 0088 0089 private: 0090 0091 G4double SampleCosTheta(G4double kinEnergy); 0092 0093 }; 0094 0095 #endif 0096
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |