Changeset 2444


Ignore:
Timestamp:
03/29/12 11:55:14 (13 years ago)
Author:
Malte Marquarding
Message:

Backing out of r2394 as GaussianSpectralElement is not part of casacore (yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFitter.cpp

    r2415 r2444  
    22//# Fitter.cc: A Fitter class for spectra
    33//#--------------------------------------------------------------------------
    4 //# Copyright (C) 2004
     4//# Copyright (C) 2004-2012
    55//# ATNF
    66//#
     
    118118    g = dynamic_cast<Gaussian1D<Float>* >(funcs_[i]);
    119119    if (g) {
    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();
     120      (*g)[0] = listGauss[i].getAmpl();
     121      (*g)[1] = listGauss[i].getCenter();
     122      (*g)[2] = listGauss[i].getFWHM();
    127123    }
    128124  }
Note: See TracChangeset for help on using the changeset viewer.