Changeset 397 in Sophya for trunk/Poubelle/archTOI.old/pisteetoile.cc
- Timestamp:
- Sep 1, 1999, 5:35:17 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/pisteetoile.cc
r395 r397 116 116 // if(!isAlive()) return; 117 117 indexDebutPiste=InDebutPiste; 118 // cout << "fill " << indexDebutPiste << "\n"; 118 119 int* PhDiod=PhDiodArray; 119 120 int* pDataC=pData; … … 130 131 for(int i=0; i<nbdata; i++, PPhDiod++,pDataC++) *PPhDiod=(*pDataC); 131 132 indexDebutPiste+=nbdata; 133 // cout << "push " << nbdata << " " << indexDebutPiste << "\n"; 132 134 return; 133 135 } … … 153 155 if(testEtoile) { 154 156 // On emballe une etoile. 157 // cout << "star " << setprecision(10) << TIndex << "\n"; 155 158 LastEtoile.FitForme=SuccesAFine; 156 159 LastEtoile.X2Calc=X2Min; … … 206 209 gachette=false; 207 210 short iSeuil=0; 208 double* pPiste =PhDiodPiste+Prepulselong ;211 double* pPiste =PhDiodPiste+Prepulselong-1; 209 212 210 213 // On demande deux échantillons à 2 Vrms 211 for (int i= 0; i<(PhDiodTabLong-Prepulselong-1); i++, pPiste++) {214 for (int i=-1; i<(PhDiodTabLong-Prepulselong-1); i++, pPiste++) { 212 215 if (fabs(*pPiste)>(SeuilGachette*Vrms)) 213 216 if (fabs(*(pPiste+1))>SeuilGachette*Vrms) { … … 272 275 // On stocke les resultats 273 276 TIndex=indexDebutPiste+Prepulselong+MaxIndex+tmaxfit; 274 277 // cout << "tindex " << TIndex << " " <<indexDebutPiste<<" " <<Prepulselong << " " <<MaxIndex << " " << tmaxfit << "\n"; 275 278 X2Min=0.; 276 279 SuccesAFine=false;
Note:
See TracChangeset
for help on using the changeset viewer.