Changeset 2004 for trunk/src/STMath.cpp


Ignore:
Timestamp:
02/22/11 20:24:33 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes .CAS-2718

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...

The MSFiller is called instead of PKSFiller when input data is MS.
I have tested all task regressions as well as sdsave unit test and passed.

A few modification was needed for STMath::dototalpower() and
STWriter::write().


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1967 r2004  
    10471047      if ( tcal <= 0.0 ) {
    10481048        caloff->tcal().getEntry(tcalt, tcalout, tcalId);
    1049         if (polno<=3) {
    1050           tcalUsed = tcalout[polno];
    1051         }
     1049//         if (polno<=3) {
     1050//           tcalUsed = tcalout[polno];
     1051//         }
     1052//         else {
     1053//           tcalUsed = tcalout[0];
     1054//         }
     1055        if ( tcalout.size() == 1 )
     1056          tcalUsed = tcalout[0] ;
     1057        else if ( tcalout.size() == nchan )
     1058          tcalUsed = mean(tcalout) ;
    10521059        else {
    1053           tcalUsed = tcalout[0];
     1060          uInt ipol = polno ;
     1061          if ( ipol > 3 ) ipol = 0 ;
     1062          tcalUsed = tcalout[ipol] ;
    10541063        }
    10551064      }
Note: See TracChangeset for help on using the changeset viewer.