ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GeoGenfun::ArrayFunction Class Reference

#include <ArrayFunction.h>

Inheritance diagram for GeoGenfun::ArrayFunction:
Collaboration diagram for GeoGenfun::ArrayFunction:

Public Member Functions

 ArrayFunction (const double *begin, const double *end)
 
virtual ~ArrayFunction ()
 
 ArrayFunction (const ArrayFunction &right)
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 

Private Member Functions

const ArrayFunctionoperator= (const ArrayFunction &right)
 

Private Attributes

std::vector< double > m_values
 

Detailed Description

Definition at line 16 of file ArrayFunction.h.

Constructor & Destructor Documentation

◆ ArrayFunction() [1/2]

GeoGenfun::ArrayFunction::ArrayFunction ( const double *  begin,
const double *  end 
)

Definition at line 13 of file ArrayFunction.cxx.

13  :
14  m_values(begin,end) {}

◆ ~ArrayFunction()

GeoGenfun::ArrayFunction::~ArrayFunction ( )
virtual

Definition at line 17 of file ArrayFunction.cxx.

17 {}

◆ ArrayFunction() [2/2]

GeoGenfun::ArrayFunction::ArrayFunction ( const ArrayFunction right)

Definition at line 20 of file ArrayFunction.cxx.

20  :
21  GeoGenfun::AbsFunction(), m_values(right.m_values) {}

Member Function Documentation

◆ operator()() [1/2]

virtual double GeoGenfun::ArrayFunction::operator() ( const Argument &  a) const
inlineoverridevirtual

Definition at line 34 of file ArrayFunction.h.

34 {return operator() (a[0]);}

◆ operator()() [2/2]

double GeoGenfun::ArrayFunction::operator() ( double  argument) const
overridevirtual

Definition at line 24 of file ArrayFunction.cxx.

24  {
25  int i = int (argument+0.5);
26  if (i<0 || i>=int(m_values.size())) return 0;
27  else return m_values[i];
28 }

◆ operator=()

const ArrayFunction& GeoGenfun::ArrayFunction::operator= ( const ArrayFunction right)
private

Member Data Documentation

◆ m_values

std::vector<double> GeoGenfun::ArrayFunction::m_values
private

Definition at line 41 of file ArrayFunction.h.


The documentation for this class was generated from the following files:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
GeoGenfun::ArrayFunction::m_values
std::vector< double > m_values
Definition: ArrayFunction.h:41
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
python.acmdlib.argument
def argument(*args, **kwargs)
Definition: acmdlib.py:181
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
lumiFormat.i
int i
Definition: lumiFormat.py:85
GeoGenfun::ArrayFunction::operator()
virtual double operator()(double argument) const override
Definition: ArrayFunction.cxx:24
a
TList * a
Definition: liststreamerinfos.cxx:10