Changeset 2158


Ignore:
Timestamp:
04/27/11 17:28:12 (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: read NRO data

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

BEAMNO is non-zero only when receiver is BEARS (MULT2).


File:
1 edited

Legend:

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

    r2156 r2158  
    552552
    553553  // beamno
    554   string arryt = string( record->ARRYT ) ;
    555   string sbeamno = arryt.substr( 1, arryt.size()-1 ) ;
    556   uInt ibeamno = atoi( sbeamno.c_str() ) ;
    557   beamno = ibeamno - 1 ;
     554  string rxname = dataset_->getRX()[0] ;
     555  if ( rxname.find("MULT2") != string::npos ) {
     556    string arryt = string( record->ARRYT ) ;
     557    string sbeamno = arryt.substr( 1, arryt.size()-1 ) ;
     558    uInt ibeamno = atoi( sbeamno.c_str() ) ;
     559    beamno = ibeamno - 1 ;
     560  }
     561  else {
     562    beamno = 0 ;
     563  }
    558564  //cout << "beamno = " << beamno << endl ;
    559565
Note: See TracChangeset for help on using the changeset viewer.