Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // 23 // 27 // Author: Vladimir Ivanchenko (Vladimir.Ivan 24 // Author: Vladimir Ivanchenko (Vladimir.Ivantchenko@cern.ch) 28 // 25 // 29 // History: 26 // History: 30 // ----------- 27 // ----------- 31 // 27 May 2002 VI Created << 28 // 27 May 2002 VI Created 32 // << 33 // 15 Jul 2009 N.A.Karakatsanis New metho << 34 // to enhanc << 35 // 29 // 36 // ------------------------------------------- 30 // ------------------------------------------------------------------- 37 // Class description: 31 // Class description: 38 // Lin-Log-Log interpolation of a data set 32 // Lin-Log-Log interpolation of a data set 39 33 40 // ------------------------------------------- 34 // ------------------------------------------------------------------- 41 35 42 #ifndef G4LINLOGLOGINTERPOLATION_HH 36 #ifndef G4LINLOGLOGINTERPOLATION_HH 43 #define G4LINLOGLOGINTERPOLATION_HH 1 37 #define G4LINLOGLOGINTERPOLATION_HH 1 44 38 45 #include "globals.hh" 39 #include "globals.hh" 46 #include "G4VDataSetAlgorithm.hh" 40 #include "G4VDataSetAlgorithm.hh" 47 #include "G4DataVector.hh" 41 #include "G4DataVector.hh" 48 42 49 class G4LinLogLogInterpolation : public G4VDat 43 class G4LinLogLogInterpolation : public G4VDataSetAlgorithm { 50 44 51 public: 45 public: 52 46 53 G4LinLogLogInterpolation(); 47 G4LinLogLogInterpolation(); 54 48 55 ~G4LinLogLogInterpolation(); 49 ~G4LinLogLogInterpolation(); 56 50 57 G4double Calculate(G4double point, G4int bin 51 G4double Calculate(G4double point, G4int bin, 58 const G4DataVector& energies, 52 const G4DataVector& energies, 59 const G4DataVector& data) const; 53 const G4DataVector& data) const; 60 << 61 G4double Calculate(G4double point, G4int bin << 62 const G4DataVector& energ << 63 const G4DataVector& data, << 64 const G4DataVector& log_energies, << 65 const G4DataVector& log_data) const; << 66 54 67 virtual G4VDataSetAlgorithm* Clone() const; 55 virtual G4VDataSetAlgorithm* Clone() const; 68 56 69 private: 57 private: 70 58 71 59 72 // Hide copy constructor and assignment oper 60 // Hide copy constructor and assignment operator 73 61 74 }; 62 }; 75 63 76 #endif 64 #endif 77 65 78 66 79 67 80 68 81 69 82 70 83 71 84 72 85 73 86 74 87 75 88 76