Changeset 5463
- Timestamp:
- 11/24/04 14:31:23 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5461 r5463 21 21 -*-*- END OF LINE -*-*- 22 22 23 2004/11/23: Markus Gaug 24 25 * mbadpixels/MBadPixelsCam.[h,cc] 26 - improved the Print() function such that the individual pixels 27 matching a certain badness-criterion are listed. 28 29 23 30 2004/11/23: Raquel de los Reyes 24 31 … … 51 58 sigma per mean which is anyhow reflected by the number of photo- 52 59 electrons. 60 - put a class MPedCalcPedRun in the tasklist for the intensity 61 calibration (does not affect normal calibration). 53 62 54 63 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r5117 r5463 333 333 void MBadPixelsCam::Print(Option_t *o) const 334 334 { 335 335 336 *fLog << all << GetDescriptor() << ":" << endl; 336 337 337 *fLog << "Pixels without problems:" << endl; 338 *fLog << endl;339 338 340 339 Int_t count = 0; … … 354 353 *fLog << endl; 355 354 } 356 *fLog << endl; 357 *fLog << count << " normal pixels :-))" << endl; 358 *fLog << endl; 359 count = 0; 360 361 355 *fLog << count << " normal pixels" << endl; 356 *fLog << endl; 357 362 358 *fLog << "Pixels unsuited for the whole run:" << endl; 363 *fLog << endl;364 359 365 360 for (Int_t i=0; i<GetSize(); i++) … … 377 372 *fLog << endl; 378 373 } 379 *fLog << endl; 374 380 375 *fLog << count << " unsuited pixels :-(" << endl; 381 376 *fLog << endl; … … 384 379 385 380 *fLog << all << "Pixels unreliable for the whole run:" << endl; 386 *fLog << all << endl;387 381 388 382 for (Int_t i=0; i<GetSize(); i++) … … 401 395 } 402 396 403 *fLog << endl;404 397 *fLog << count << " unreliable pixels :-(" << endl; 405 398 *fLog << endl; 406 407 count = 0; 408 409 *fLog << all << "Charge is Pedestal:" << endl; 410 *fLog << all << endl; 411 399 *fLog << endl; 400 *fLog << all << "Unsuited pixels statistics:" << endl; 401 *fLog << endl; 402 403 PrintBadPixels(MBadPixelsPix::kChargeIsPedestal,"Signal smaller 3 Pedestal RMS"); 404 PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal smaller 3 Pedestal RMS"); 405 PrintBadPixels(MBadPixelsPix::kChargeRelErrNotValid,"Signal Rel. error too large"); 406 PrintBadPixels(MBadPixelsPix::kLoGainSaturation,"Low Gain Saturation"); 407 PrintBadPixels(MBadPixelsPix::kMeanTimeInFirstBin,"Mean Arr. Time In First Extraction Bin"); 408 PrintBadPixels(MBadPixelsPix::kMeanTimeInLast2Bins,"Mean Arr. Time In Last 2 Extraction Bins"); 409 PrintBadPixels(MBadPixelsPix::kDeviatingNumPhes,"Deviating Number of Photo-electrons"); 410 PrintBadPixels(MBadPixelsPix::kDeviatingNumPhots,"Deviating Number of Photons"); 411 PrintBadPixels(MBadPixelsPix::kHiGainOverFlow,"High-Gain Histogram Overflow"); 412 PrintBadPixels(MBadPixelsPix::kLoGainOverFlow,"Low-Gain Histogram Overflow"); 413 414 *fLog << endl; 415 *fLog << all << "Unreliable pixels statistics:" << endl; 416 *fLog << endl; 417 418 PrintBadPixels(MBadPixelsPix::kChargeSigmaNotValid,"Signal Sigma smaller Pedestal RMS"); 419 PrintBadPixels(MBadPixelsPix::kHiGainNotFitted ,"High Gain Signals could not be fitted"); 420 PrintBadPixels(MBadPixelsPix::kLoGainNotFitted ,"Low Gain Signals could not be fitted"); 421 PrintBadPixels(MBadPixelsPix::kRelTimeNotFitted ,"Relative Arr. Times could not be fitted"); 422 PrintBadPixels(MBadPixelsPix::kHiGainOscillating ,"High Gain Signals Oscillation"); 423 PrintBadPixels(MBadPixelsPix::kLoGainOscillating ,"Low Gain Signals Oscillation"); 424 PrintBadPixels(MBadPixelsPix::kRelTimeOscillating ,"Relative Arr. Times Oscillation"); 425 PrintBadPixels(MBadPixelsPix::kDeviatingFFactor ,"Deviating global F-Factor"); 426 } 427 428 void MBadPixelsCam::PrintBadPixels( MBadPixelsPix::UncalibratedType_t typ, const char *text) const 429 { 430 431 432 *fLog << "Pixels with " << text << ": " << endl; 433 UInt_t count = 0; 434 412 435 for (Int_t i=0; i<GetSize(); i++) 413 436 { 414 if ((*this)[i].IsUncalibrated( MBadPixelsPix::kChargeIsPedestal))437 if ((*this)[i].IsUncalibrated(typ)) 415 438 { 416 439 *fLog << i << " "; 417 count 440 count++; 418 441 } 419 442 … … 425 448 } 426 449 427 *fLog << endl; 428 *fLog << count << " ChargeIsPedestal :-(" << endl; 429 *fLog << endl; 430 431 count = 0; 432 433 *fLog << all << "Charge Sigma not valid:" << endl; 434 *fLog << all << endl; 435 436 for (Int_t i=0; i<GetSize(); i++) 437 { 438 if ((*this)[i].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid)) 439 { 440 *fLog << i << " "; 441 count ++; 442 } 443 444 if (count == 0) 445 continue; 446 447 if (!(count % 25)) 448 *fLog << endl; 449 } 450 451 *fLog << endl; 452 *fLog << count << " ChargeSigmaNotValid :-(" << endl; 453 *fLog << endl; 454 455 count = 0; 456 457 *fLog << all << "Rel. Error Charge not valid:" << endl; 458 *fLog << all << endl; 459 460 for (Int_t i=0; i<GetSize(); i++) 461 { 462 if ((*this)[i].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid)) 463 { 464 *fLog << i << " "; 465 count ++; 466 } 467 468 if (count == 0) 469 continue; 470 471 if (!(count % 25)) 472 *fLog << endl; 473 } 474 475 *fLog << endl; 476 *fLog << count << " ChargeRelErrNotValid :-(" << endl; 477 *fLog << endl; 478 479 480 count = 0; 481 482 *fLog << all << " Deviating number photo-electrons:" << endl; 483 *fLog << all << endl; 484 485 for (Int_t i=0; i<GetSize(); i++) 486 { 487 if ((*this)[i].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes)) 488 { 489 *fLog << i << " "; 490 count ++; 491 } 492 493 if (count == 0) 494 continue; 495 496 if (!(count % 25)) 497 *fLog << endl; 498 } 499 500 *fLog << endl; 501 *fLog << count << " DeviatingNumPhes :-(" << endl; 502 *fLog << endl; 503 504 count = 0; 505 506 *fLog << all << " Deviating F-Factor:" << endl; 507 *fLog << all << endl; 508 509 for (Int_t i=0; i<GetSize(); i++) 510 { 511 if ((*this)[i].IsUncalibrated(MBadPixelsPix::kDeviatingFFactor)) 512 { 513 *fLog << i << " "; 514 count ++; 515 } 516 517 if (count == 0) 518 continue; 519 520 if (!(count % 25)) 521 *fLog << endl; 522 } 523 524 *fLog << endl; 525 *fLog << count << " DeviatingFFactor :-(" << endl; 526 *fLog << endl; 527 450 *fLog << Form("%3i",count) << " pixels in total " << endl; 451 *fLog << endl; 528 452 } 529 453 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h
r5117 r5463 20 20 Short_t GetNumMaxCluster(MBadPixelsPix::UnsuitableType_t type, TObjArray &list, Int_t idx, Int_t aidx) const; 21 21 22 void PrintBadPixels( MBadPixelsPix::UncalibratedType_t typ, const char *text) const; 23 22 24 public: 23 25 MBadPixelsCam(const char *name=NULL, const char *title=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.