#include <CurrMap.h>
|
| CurrMap (const std::string &filename, double xnorm) |
|
| ~CurrMap () |
|
int | GetNx () const |
|
float | GetXmin () const |
|
float | GetXmax () const |
|
float | GetDx () const |
|
int | GetNy () const |
|
float | GetYmin () const |
|
float | GetYmax () const |
|
float | GetDy () const |
|
float | GetGap (int ix, int iy) const |
|
float | GetCurr0 (int ix, int iy) const |
|
float | GetCurr1 (int ix, int iy) const |
|
float | GetCurr2 (int ix, int iy) const |
|
void | GetAll (double x, double y, double *gap, double *curr0, double *curr1, double *curr2) const |
|
Definition at line 10 of file CurrMap.h.
◆ CurrMap() [1/2]
CurrMap::CurrMap |
( |
const std::string & |
filename, |
|
|
double |
xnorm |
|
) |
| |
Definition at line 10 of file CurrMap.cxx.
50 for (
int j=0; j<
m_ny;j++) {
59 float gap,cur1,cur2,cur3;
60 while (fgets(
line,80,
fp)) {
61 sscanf(&
line[0],
"%d%d%f%f%f%f",&ix,&iy,&
gap,&cur1,&cur2,&cur3);
62 if(ix >= 0 && ix < m_nx && iy >= 0 && iy <
m_ny){
71 std::cout <<
"Error in CurrMap::CurrMap: nx or ny out of limits." << std::endl;
77 std::cout <<
"Error in CurrMap::CurrMap: The file could not be open." << std::endl;
◆ ~CurrMap()
◆ CurrMap() [2/2]
◆ GetAll()
void CurrMap::GetAll |
( |
double |
x, |
|
|
double |
y, |
|
|
double * |
gap, |
|
|
double * |
curr0, |
|
|
double * |
curr1, |
|
|
double * |
curr2 |
|
) |
| const |
Definition at line 93 of file CurrMap.cxx.
110 if ( (ix+1) <
m_nx && (iy+1) <
m_ny) {
122 for (
int i=0;
i<2;
i++) {
123 for (
int j=0;j<2;j++) {
137 *curr0 = *curr0/
sumw;
138 *curr1 = *curr1/
sumw;
139 *curr2 = *curr2/
sumw;
146 for (
int iiy=iy-7;iiy<iy+8;iiy++) {
147 for (
int iix=ix-7;iix<ix+8;iix++) {
148 if (iiy>=0 && iiy<m_ny && iix>=0 && iix<
m_nx) {
150 int idist=(iix-ix)*(iix-ix)+(iiy-iy)*(iiy-iy);
160 if (idistm<100 && jx>=0 && jy>=0) {
183 if (
m_curr0[
n]<1
e-6 && (ix-1) >0 && (iy-1) >0 )
n=ix-1+(iy-1)*
m_nx;
◆ GetCurr0()
float CurrMap::GetCurr0 |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
◆ GetCurr1()
float CurrMap::GetCurr1 |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
◆ GetCurr2()
float CurrMap::GetCurr2 |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
◆ GetDx()
float CurrMap::GetDx |
( |
| ) |
const |
|
inline |
◆ GetDy()
float CurrMap::GetDy |
( |
| ) |
const |
|
inline |
◆ GetGap()
float CurrMap::GetGap |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
◆ GetNx()
int CurrMap::GetNx |
( |
| ) |
const |
|
inline |
◆ GetNy()
int CurrMap::GetNy |
( |
| ) |
const |
|
inline |
◆ GetXmax()
float CurrMap::GetXmax |
( |
| ) |
const |
|
inline |
◆ GetXmin()
float CurrMap::GetXmin |
( |
| ) |
const |
|
inline |
◆ GetYmax()
float CurrMap::GetYmax |
( |
| ) |
const |
|
inline |
◆ GetYmin()
float CurrMap::GetYmin |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ m_curr0
◆ m_curr1
◆ m_curr2
◆ m_dx
◆ m_dy
◆ m_gap
◆ m_norm
◆ m_nx
◆ m_ny
◆ m_xmax
◆ m_xmin
◆ m_ymax
◆ m_ymin
The documentation for this class was generated from the following files: