// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4NeutronHPLegendreTable.hh,v 1.9 2003/06/16 17:10:52 gunter Exp $ // GEANT4 tag $Name: geant4-05-02-patch-01 $ // #ifndef G4NeutronHPLegendreTable_h #define G4NeutronHPLegendreTable_h 1 #include "globals.hh" #include #include "G4ios.hh" #include "G4InterpolationManager.hh" class G4NeutronHPLegendreTable { public: G4NeutronHPLegendreTable() { nCoeff=0; theCoeff = NULL; } ~G4NeutronHPLegendreTable(){if(theCoeff!=NULL) delete [] theCoeff;} void operator= (const G4NeutronHPLegendreTable & aSet) { if(&aSet!=this) { theRep = aSet.theRep; theEnergy = aSet.theEnergy; theTemp = aSet.theTemp; theManager = aSet.theManager; nCoeff = aSet.nCoeff; if(theCoeff!=NULL) delete [] theCoeff; theCoeff = new G4double[nCoeff]; for(G4int i=0; i> eNeu >> nPoly; eNeu *= eV; Init(eNeu, nPoly); for(G4int l=0; l> coeff; SetCoeff(l+1, coeff); } } inline void Init(G4double e, G4int n) { nCoeff = n+1; theCoeff = new G4double[nCoeff]; for(G4int i=0; i