Changeset 6686
- Timestamp:
- 02/28/05 18:26:20 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r6685 r6686 356 356 while (p < end) 357 357 { 358 if (*p++ > max) 359 maxpos = p-start-1; 358 if (*p > max) 359 { 360 max = *p; 361 maxpos = p-start-1; 362 } 363 p++; 360 364 } 361 365 … … 366 370 while (p < end) 367 371 { 368 if (*p++ > max) 369 maxpos = p-start+pixel.GetNumHiGainSamples() - 1; 372 if (*p > max) 373 { 374 max = *p; 375 maxpos = p-start+pixel.GetNumHiGainSamples() - 1; 376 } 377 p++; 370 378 } 379 380 *fLog << err << (Int_t)max << " " << maxpos << endl; 371 381 372 382 if ((Int_t)max < fLowerSignalLimit) … … 376 386 histhi.FillHist(time); 377 387 388 *fLog << inf << time << endl; 389 378 390 const Int_t aidx = (*fGeom)[i].GetAidx(); 379 391 const Int_t sector = (*fGeom)[i].GetSector();
Note:
See TracChangeset
for help on using the changeset viewer.