Changeset 399 in Sophya for trunk/Poubelle
- Timestamp:
- Sep 1, 1999, 6:27:56 PM (26 years ago)
- Location:
- trunk/Poubelle/archTOI.old
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/pisteetoile.cc
r397 r399 211 211 double* pPiste =PhDiodPiste+Prepulselong-1; 212 212 213 // On demande deux échantillons à 2Vrms214 for (int i= -1; i<(PhDiodTabLong-Prepulselong-1); i++, pPiste++) {213 // On demande deux échantillons à seuilgachette Vrms 214 for (int i=0; i<(PhDiodTabLong-Prepulselong); i++, pPiste++) { 215 215 if (fabs(*pPiste)>(SeuilGachette*Vrms)) 216 216 if (fabs(*(pPiste+1))>SeuilGachette*Vrms) { 217 217 gachette=true; 218 iSeuil=Prepulselong +i;218 iSeuil=Prepulselong-1+i; 219 219 break; 220 220 } … … 274 274 275 275 // On stocke les resultats 276 TIndex=indexDebutPiste+ Prepulselong+MaxIndex+tmaxfit;276 TIndex=indexDebutPiste+MaxIndex+tmaxfit; 277 277 // cout << "tindex " << TIndex << " " <<indexDebutPiste<<" " <<Prepulselong << " " <<MaxIndex << " " << tmaxfit << "\n"; 278 278 X2Min=0.; -
trunk/Poubelle/archTOI.old/ssthandler.cc
r397 r399 207 207 } 208 208 else { 209 pPiste->push(Diodedata );209 pPiste->push(Diodedata,Pousslong); 210 210 offseDataDiod+=Pousslong; 211 211 } … … 232 232 } 233 233 // Est-on en bout de Piste? 234 if(offseDataDiod+Pousslong>=NbSampleBlock) break;235 else {236 pPiste->push(Diodedata+offseDataDiod);237 offseDataDiod+=Pousslong;238 }234 int npouss = Pousslong; 235 if (offseDataDiod+npouss > NbSampleBlock) npouss = NbSampleBlock-offseDataDiod; 236 if (npouss<=0) break; 237 pPiste->push(Diodedata+offseDataDiod,npouss); 238 offseDataDiod+=npouss; 239 239 } 240 240 }
Note:
See TracChangeset
for help on using the changeset viewer.