|
||||
Warning, file /include/Geant4/G4ParticleHPDiscreteTwoBody.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 // P. Arce, June-2014 Conversion neutron_hp to particle_hp 0028 // 0029 #ifndef G4ParticleHPDiscreteTwoBody_h 0030 #define G4ParticleHPDiscreteTwoBody_h 1 0031 0032 // 101110 Bug fix in MF=6, LAW=2 case; contribution from E. Mendoza, D. Cano-Ott (CIEMAT) 0033 0034 #include "G4InterpolationManager.hh" 0035 #include "G4ParticleHPInterpolator.hh" 0036 #include "G4ParticleHPLegendreTable.hh" 0037 #include "G4VParticleHPEnergyAngular.hh" 0038 #include "G4ios.hh" 0039 #include "globals.hh" 0040 0041 #include <fstream> 0042 0043 class G4ParticleHPDiscreteTwoBody : public G4VParticleHPEnergyAngular 0044 { 0045 public: 0046 G4ParticleHPDiscreteTwoBody(); 0047 ~G4ParticleHPDiscreteTwoBody() override; 0048 0049 void Init(std::istream& aDataFile) override; 0050 0051 G4ReactionProduct* Sample(G4double anEnergy, G4double massCode, G4double mass) override; 0052 G4double MeanEnergyOfThisInteraction() override { return -1.0; } 0053 0054 private: 0055 G4int nEnergy{0}; 0056 G4ParticleHPLegendreTable* theCoeff{nullptr}; 0057 G4bool bCheckDiffCoeffRepr{true}; 0058 // for example ENDF-VII0_proton/Inelastic/F01/4_9_Beryllium has 0 0059 // for energy 7.5E+07 and 12 for energy 1.e+08 0060 0061 G4InterpolationManager theManager; // knows the interpolation between stores 0062 G4ParticleHPInterpolator theInt; 0063 }; 0064 0065 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |