|
||||
File indexing completed on 2025-01-18 09:58:19
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 // GEANT 4 class file 0029 // 0030 // CERN, Geneva, Switzerland 0031 // 0032 // File name: G4GammaTransition 0033 // 0034 // Author: Vladimir Ivanchenko 0035 // 0036 // Creation date: 27 February 2015 0037 // 0038 // Modifications: 0039 // 05.11.2016 J. Detviller added sampling of corelation between 0040 // spin of a nucleus and gamma direction 0041 // 0042 // 0043 // ------------------------------------------------------------------- 0044 0045 #ifndef G4GAMMATRANSITION_HH 0046 #define G4GAMMATRANSITION_HH 1 0047 0048 #include "globals.hh" 0049 #include "G4Fragment.hh" 0050 #include "G4PolarizationTransition.hh" 0051 0052 class G4GammaTransition 0053 { 0054 public: 0055 0056 explicit G4GammaTransition(); 0057 0058 virtual ~G4GammaTransition(); 0059 0060 virtual G4Fragment* SampleTransition(G4Fragment* nucleus, 0061 G4double newExcEnergy, 0062 G4double mpRatio, 0063 G4int JP1, 0064 G4int JP2, 0065 G4int MP, 0066 G4int shell, 0067 G4bool isDiscrete, 0068 G4bool isGamma); 0069 0070 virtual void SampleDirection(G4Fragment* nuc, G4double ratio, 0071 G4int twoJ1, G4int twoJ2, G4int mp); 0072 0073 inline void SetPolarizationFlag(G4bool val) { polarFlag = val; }; 0074 0075 inline void SetTwoJMAX(G4int val) { fTwoJMAX = val; }; 0076 0077 inline void SetVerbose(G4int val) { fVerbose = val; fPolTrans.SetVerbose(val); }; 0078 0079 private: 0080 0081 G4GammaTransition(const G4GammaTransition &right) = delete; 0082 const G4GammaTransition& operator=(const G4GammaTransition &right) = delete; 0083 G4bool operator==(const G4GammaTransition &right) const = delete; 0084 G4bool operator!=(const G4GammaTransition &right) const = delete; 0085 0086 G4bool polarFlag; 0087 0088 protected: 0089 0090 G4ThreeVector fDirection; 0091 G4PolarizationTransition fPolTrans; 0092 G4int fTwoJMAX; 0093 G4int fVerbose; 0094 }; 0095 0096 0097 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |