Changeset 426 in Sophya for trunk/Poubelle/archTOI.old/toiiter.cc
- Timestamp:
- Sep 24, 1999, 9:15:56 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toiiter.cc
r419 r426 52 52 53 53 initDone = false; 54 55 underSample = 1; 54 56 } 55 57 … … 87 89 88 90 initDone = x.initDone; 91 underSample = x.underSample; 89 92 } 90 93 … … 238 241 trigMask |= block_gps_mask; 239 242 break; 240 case azimut :243 case azimutBolo: 241 244 trigMask |= block_bolo_mask; 242 245 //file->needSSTProcessMask(SSTHandler::findPeriod); … … 353 356 } 354 357 355 356 358 bool TOIIter::Next() { 359 for (int ii=0; ii<underSample; ii++) 360 if (!Next1()) return false; 361 return true; 362 } 363 364 bool TOIIter::Next1() { 357 365 if (!initDone) Init(); 358 366 while (1) { … … 484 492 case tsid: 485 493 return file->hasGPSPos(); 486 case azimut :494 case azimutBolo: 487 495 case alphaAxis: 488 496 case deltaAxis: 497 case alphaBolo: 498 case deltaBolo: 489 499 return true; 490 500 //return (file->lastGPS() != NULL && file->lastSST() != NULL); 491 501 case alphaSst: 492 502 case deltaSst: 493 case alphaBolo:494 case deltaBolo:495 503 return false; 496 504 … … 589 597 tSid.setLongitude(file->getGPSLong()); 590 598 return tSid.getLST(getMJD()); 591 case azimut :599 case azimutBolo: 592 600 case alphaAxis: 593 case deltaAxis: { 601 case deltaAxis: 602 case alphaBolo: 603 case deltaBolo: { 594 604 double lat, lon; 595 605 if (auxGPS) { … … 606 616 if ((kind) == alphaAxis) return tempLocator.getAlphaZenith(); 607 617 if ((kind) == deltaAxis) return tempLocator.getDeltaZenith(); 618 if ((kind) == azimutBolo) return tempLocator.getAzimutBolo(getSampleIndex(),index); 619 if ((kind) == alphaBolo) return tempLocator.getAlphaBolo(getSampleIndex(),index); 620 if ((kind) == deltaBolo) return tempLocator.getDeltaBolo(getSampleIndex(),index); 608 621 return 0; 609 622 } … … 668 681 case altitude: 669 682 return file->blockNum() == file->getGPSBlockNum() && imes==0; 670 case azimut: 683 case azimutBolo: 684 case alphaBolo: 685 case deltaBolo: 671 686 return true; // $CHECK$ with SSTHandler 672 687 case alphaAxis: … … 726 741 } 727 742 743 int TOIIter::getUnderSampling() { 744 return underSample; 745 } 746 728 747 int TOIIter::getSampleIndex() { 729 748 if (!initDone) Init();
Note:
See TracChangeset
for help on using the changeset viewer.