00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 25-08-06 New Final State type (refFlag==3 , Legendre (Low Energy) + Probability (High Energy) ) 00030 // is added by T. KOI 00031 // 00032 #ifndef G4NeutronHPElasticFS_h 00033 #define G4NeutronHPElasticFS_h 1 00034 00035 #include "globals.hh" 00036 #include "G4HadProjectile.hh" 00037 #include "G4HadFinalState.hh" 00038 #include "G4NeutronHPFinalState.hh" 00039 #include "G4NeutronHPLegendreStore.hh" 00040 #include "G4NeutronHPPartial.hh" 00041 #include "G4NeutronHPFastLegendre.hh" 00042 #include "G4NeutronHPInterpolator.hh" 00043 #include "G4NeutronHPNames.hh" 00044 00045 class G4NeutronHPElasticFS : public G4NeutronHPFinalState 00046 { 00047 public: 00048 00049 G4NeutronHPElasticFS() 00050 { 00051 hasXsec = false; 00052 theCoefficients = 0; 00053 theProbArray = 0; 00054 } 00055 ~G4NeutronHPElasticFS() 00056 { 00057 if(theCoefficients!=0) delete theCoefficients; 00058 if(theProbArray!=0) delete theProbArray; 00059 } 00060 void Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String & aFSType); 00061 G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack); 00062 G4NeutronHPFinalState * New() 00063 { 00064 G4NeutronHPElasticFS * theNew = new G4NeutronHPElasticFS; 00065 return theNew; 00066 } 00067 00068 private: 00069 G4int repFlag; // Legendre coeff(1), or probability array(2), or isotropic(0). 00070 // add 3: for Legendre (Low Energy) + Probability (High Energy) 00071 G4double tE_of_repFlag3; // transition energy in case of repFlag 3: 00072 G4double targetMass; // in neutronmass units. 00073 G4int frameFlag; // CMS or Lab system. 00074 00075 G4NeutronHPLegendreStore * theCoefficients; // the legendre coefficients 00076 G4NeutronHPPartial * theProbArray; // the probability array p,costh for energy 00077 G4NeutronHPInterpolator theInt; // interpolation 00078 00079 G4NeutronHPFastLegendre theLegend; // fast look-up for leg-integrals 00080 }; 00081 #endif