Belle II Software  release-08-01-10
YScanner::Table Struct Reference

A table of equidistant entries. More...

#include <YScanner.h>

Collaboration diagram for YScanner::Table:

Public Member Functions

 Table ()
 Default constructor.
 
void clear ()
 Clear the content entirely.
 
void set (double X0, double Step)
 Sets the first x and the step, and clears the entries. More...
 
void set (const Table &T)
 Sets the first x and the step, and clears the entries. More...
 
double getX (int i) const
 Returns x for a given index. More...
 
double getXmin () const
 Returns x of the first entry. More...
 
double getXmax () const
 Returns x of the last entry. More...
 
int getIndex (double x) const
 Returns index. More...
 
double getY (int i) const
 Returns y for a given index. More...
 

Public Attributes

double x0 = 0
 x of first entry
 
double step = 0
 step size
 
std::vector< TableEntryentries
 table entries
 

Detailed Description

A table of equidistant entries.

Definition at line 118 of file YScanner.h.

Member Function Documentation

◆ getIndex()

int getIndex ( double  x) const
inline

Returns index.

Returns
index (note: the range is not limited to the range of entries)

Definition at line 547 of file YScanner.h.

◆ getX()

double getX ( int  i) const
inline

Returns x for a given index.

Returns
x

Definition at line 541 of file YScanner.h.

◆ getXmax()

double getXmax ( ) const
inline

Returns x of the last entry.

Returns
maximal x

Definition at line 545 of file YScanner.h.

◆ getXmin()

double getXmin ( ) const
inline

Returns x of the first entry.

Returns
minimal x

Definition at line 543 of file YScanner.h.

◆ getY()

double getY ( int  i) const
inline

Returns y for a given index.

Returns
y or 0 if index is out of range

Definition at line 549 of file YScanner.h.

◆ set() [1/2]

void set ( const Table T)
inline

Sets the first x and the step, and clears the entries.

Parameters
Tthe table

Definition at line 534 of file YScanner.h.

◆ set() [2/2]

void set ( double  X0,
double  Step 
)
inline

Sets the first x and the step, and clears the entries.

Parameters
X0x of the first entry
Stepstep size

Definition at line 527 of file YScanner.h.


The documentation for this struct was generated from the following file: