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 // 24 // 28 // Author: Vladimir Ivanchenko (Vladimir.Ivan 25 // Author: Vladimir Ivanchenko (Vladimir.Ivantchenko@cern.ch) 29 // 26 // 30 // History: 27 // History: 31 // ----------- 28 // ----------- 32 // 27 May 2002 VI Created << 29 // 27 May 2002 VI Created 33 // 15 Jul 2009 N.A.Karakatsanis New metho << 34 // to enhanc << 35 // 30 // 36 // ------------------------------------------- 31 // ------------------------------------------------------------------- 37 // Class description: 32 // Class description: 38 // Lin-Log interpolation of a data set 33 // Lin-Log interpolation of a data set 39 34 40 // ------------------------------------------- 35 // ------------------------------------------------------------------- 41 36 42 #ifndef G4LINLOGINTERPOLATION_HH 37 #ifndef G4LINLOGINTERPOLATION_HH 43 #define G4LINLOGINTERPOLATION_HH 1 38 #define G4LINLOGINTERPOLATION_HH 1 44 39 45 #include "globals.hh" 40 #include "globals.hh" 46 #include "G4VDataSetAlgorithm.hh" 41 #include "G4VDataSetAlgorithm.hh" 47 #include "G4DataVector.hh" 42 #include "G4DataVector.hh" 48 43 49 class G4LinLogInterpolation : public G4VDataSe 44 class G4LinLogInterpolation : public G4VDataSetAlgorithm { 50 45 51 public: 46 public: 52 explicit G4LinLogInterpolation(); << 47 >> 48 G4LinLogInterpolation(); >> 49 53 ~G4LinLogInterpolation(); 50 ~G4LinLogInterpolation(); 54 51 55 G4double Calculate(G4double point, G4int bin 52 G4double Calculate(G4double point, G4int bin, 56 const G4DataVector& energies, 53 const G4DataVector& energies, 57 const G4DataVector& data) const overr << 54 const G4DataVector& data) const; >> 55 >> 56 virtual G4VDataSetAlgorithm* Clone() const { return new G4LinLogInterpolation; } 58 57 59 G4double Calculate(G4double point, G4int bin << 58 private: 60 const G4DataVector& energ << 61 const G4DataVector& data, << 62 const G4DataVector& log_energies, << 63 const G4DataVector& log_data) const o << 64 59 65 G4VDataSetAlgorithm* Clone() const override << 60 66 { return new G4LinLogInterpolation; } << 61 // Hide copy constructor and assignment operator 67 62 68 }; 63 }; 69 64 70 #endif 65 #endif 71 66 72 67 73 68 74 69 75 70 76 71 77 72 78 73 79 74 80 75 81 76 82 77