Changeset 2394 for trunk


Ignore:
Timestamp:
01/05/12 13:44:12 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Change according to an update of SpectralElement class.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFitter.cpp

    r2163 r2394  
    118118    g = dynamic_cast<Gaussian1D<Float>* >(funcs_[i]);
    119119    if (g) {
    120       (*g)[0] = listGauss[i].getAmpl();
    121       (*g)[1] = listGauss[i].getCenter();
    122       (*g)[2] = listGauss[i].getFWHM();
     120      const GaussianSpectralElement *gauss = dynamic_cast<const GaussianSpectralElement *>(listGauss[i]) ;
     121      (*g)[0] = gauss->getAmpl();
     122      (*g)[1] = gauss->getCenter();
     123      (*g)[2] = gauss->getFWHM();
     124//       (*g)[0] = listGauss[i].getAmpl();
     125//       (*g)[1] = listGauss[i].getCenter();
     126//       (*g)[2] = listGauss[i].getFWHM();
    123127    }
    124128  }
Note: See TracChangeset for help on using the changeset viewer.