Ignore:
Timestamp:
04/25/11 19:06:56 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2819

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

Bug fix on nif and nbeam.
For BEARS (MULT2), nif and nbeam is fixed as 1 and 25, respectively.
Otherwise, nif is number of arrays used and nbeam is 1.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NRO45Reader.cc

    r1868 r2154  
    124124}
    125125
     126Int NRO45Reader::getNumIF()
     127{
     128  Int nif = 1 ;
     129  if ( (dataset_->getRX()[0]).find("MULT2-") == string::npos ) {
     130    vector<Bool> v ;
     131    vector<int> arry = dataset_->getARRY() ;
     132    for ( uInt i = 0 ; i < arry.size() ; i++ ) {
     133      if ( arry[i] != 0 ) {
     134        v.push_back( True ) ;
     135      }
     136    }
     137    nif = v.size() ;
     138  }
     139  return nif ;
     140}
     141
     142Int NRO45Reader::getNumBeam()
     143{
     144  Int nbeam = 25 ;
     145  if ( (dataset_->getRX()[0]).find("MULT2-") == string::npos ) {
     146    nbeam = 1 ;
     147  }
     148  return nbeam ;
     149}
Note: See TracChangeset for help on using the changeset viewer.