| Report problems to ATLAS LXR Team (with time and IP address indicated) |
|
[ source navigation ] [ diff markup ] [ identifier search ] [ general search ] |
||||
|
||||||
| Links to LXR source navigation pages for stable releases | [ 12.*.* ] [ 13.*.* ] [ 14.*.* ] [ 15.*.* ] | |||||
001 #include "MuonGeoModel/ArrayFunction.h" 002 003 namespace Genfun { 004 005 FUNCTION_OBJECT_IMP(ArrayFunction) 006 007 // Constructor 008 ArrayFunction::ArrayFunction(const double *begin, const double *end) : 009 _values(begin,end) {} 010 011 // Destructor 012 ArrayFunction::~ArrayFunction(){} 013 014 // Copy constructor 015 ArrayFunction::ArrayFunction(const ArrayFunction &right): 016 AbsFunction(), 017 _values(right._values) {} 018 019 // Retreive function value 020 double ArrayFunction::operator ()(double argument) const { 021 int i = int (argument+0.5); 022 if (i<0 || i>=int(_values.size())) return 0; 023 else return _values[i]; 024 } 025 026 }
| [ source navigation ] | [ diff markup ] | [ identifier search ] | [ general search ] |
| Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems | |
| This page was automatically generated by the LXR engine. |
|