Changeset 612 in Sophya for trunk/Poubelle/archTOI.old/toiiter.cc


Ignore:
Timestamp:
Nov 22, 1999, 10:43:44 AM (26 years ago)
Author:
ansari
Message:

fin de fichier, start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/toiiter.cc

    r555 r612  
    205205  processRequest("#UTCORIGIN 1376.5");
    206206  processRequest("#ASIGPS ASI_GPS_archeops1999.ascii");
    207   processRequest("#COMMENT Archtoi V2 -- october 1999 -- Eric Aubourg CEA/DAPNIA");
    208   processRequest("#COMMENT ***WARNING***");
    209   processRequest("#COMMENT ***SOME TOI'S ARE PRELIMINARY***");
    210   processRequest("#COMMENT gyroSpeed is not calibrated");
    211   processRequest("#COMMENT azimut/alpha/delta use galaxy crossings and ASI GPS data");
    212   processRequest("#COMMENT   and assume no pendulation");
    213   processRequest("#COMMENT Focal plane center elevation found at 41.5 deg");
    214   processRequest("#COMMENT   with Jupiter");
    215   processRequest("#COMMENT boloMuV2 is not protected against glitches");
     207  processRequest("#COMMENT Archtoi V3 -- novembre 1999 -- Eric Aubourg CEA/DAPNIA");
    216208}
    217209
     
    233225  }
    234226
    235   fset.setMJDRange(mjdStart-0.01, mjdEnd+0.01);
    236   fset.setSNumRange(sStart-1000, sEnd+1000);
     227  // Let's add some time on each side, 30 seconds should be ok, at least
     228  // for Trapani
     229 
     230  double delT = 30. / 86400;
     231  long   delSN = long(delT / archParam.acq.perEch);
     232
     233  fset.setMJDRange(mjdStart-delT, mjdEnd+delT);
     234  fset.setSNumRange(sStart-delSN, sEnd+delSN);
    237235
    238236  fset.init();
     
    267265// Si on a epuise les fichiers de donnees, on s'arrete des qu'aucune
    268266// TOI n'a de valeurs apres curSample...
    269   if (curSample <= 0) curSample = sStart-1;
     267  if (curSample <= 0) curSample = sStart-1; 
     268  if (curSample <= 0) {
     269    long sn = archParam.acq.MJD2SN(mjdStart) - 1;
     270    if (sn > curSample) curSample = sn;
     271  }
     272 
    270273  if (curSample <= 0) curSample = fset.getSampleIndex()-1;
    271274 
     
    288291    }
    289292    bool found=false;
    290     bool valuesAhead = false;
     293    //bool valuesAhead = false;
    291294    for (vector<TOIInfo>::iterator i = request.begin(); i != request.end(); i++) {
    292295      if (((*i).third & triggering) == 0) continue;
    293296      if ((*i).second->canGetValue(curSample, (*i).first)) {found=true;break;}
    294       if ((*i).second->lastSampleNum((*i).first)>curSample) valuesAhead=true;
     297      //if ((*i).second->lastSampleNum((*i).first)>curSample) valuesAhead=true;
    295298    }
    296299    if (found) break;
    297     if (endFound && !valuesAhead) return false;
     300    if (endFound && curSample >= fset.getSampleIndex()+71) return false;
    298301  }
    299302  return true;
Note: See TracChangeset for help on using the changeset viewer.