Changeset 3851
- Timestamp:
- 04/27/04 17:20:45 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3850 r3851 27 27 * mjobs/MJCalibration.cc 28 28 - take out display of previously excluded pixels 29 30 * mbadpixels/MBadPixelsCam.cc 31 - set val to 1 in case that GetPixelContent is true, before display 32 was not correct 29 33 30 34 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3839 r3851 349 349 return (*this)[idx].GetInfo()[0]; 350 350 case 1: 351 return (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun); 351 if ((*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 352 val = 1; 353 else 354 return kFALSE; 355 break; 352 356 case 2: 353 return (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt); 357 if ((*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt)) 358 val = 1; 359 else 360 return kFALSE; 361 break; 354 362 case 3: 355 return (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun); 363 if ((*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun)) 364 val = 1; 365 else 366 return kFALSE; 367 break; 356 368 case 4: 357 return (*this)[idx].IsHiGainBad(); 369 if ((*this)[idx].IsHiGainBad()) 370 val = 1; 371 else 372 return kFALSE; 373 break; 358 374 case 5: 359 return (*this)[idx].IsLoGainBad(); 375 if ((*this)[idx].IsLoGainBad()) 376 val = 1; 377 else 378 return kFALSE; 379 break; 360 380 case 8: 361 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted); 381 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted)) 382 val = 1; 383 else 384 return kFALSE; 385 break; 362 386 case 9: 363 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainNotFitted); 387 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainNotFitted)) 388 val = 1; 389 else 390 return kFALSE; 391 break; 364 392 case 10: 365 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainOscillating); 393 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainOscillating)) 394 val = 1; 395 else 396 return kFALSE; 397 break; 366 398 case 11: 367 return(*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainOscillating); 399 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainOscillating)) 400 val = 1; 401 else 402 return kFALSE; 403 break; 368 404 case 12: 369 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainSaturation ); 405 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainSaturation )) 406 val = 1; 407 else 408 return kFALSE; 409 break; 370 410 case 13: 371 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal ); 411 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal )) 412 val = 1; 413 else 414 return kFALSE; 415 break; 372 416 case 14: 373 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeErrNotValid); 417 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeErrNotValid)) 418 val = 1; 419 else 420 return kFALSE; 421 break; 374 422 case 15: 375 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid); 423 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid)) 424 val = 1; 425 else 426 return kFALSE; 427 break; 376 428 case 16: 377 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid ); 429 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid )) 430 val = 1; 431 else 432 return kFALSE; 433 break; 378 434 case 17: 379 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin ); 435 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin )) 436 val = 1; 437 else 438 return kFALSE; 439 break; 380 440 case 18: 381 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins ); 441 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins )) 442 val = 1; 443 else 444 return kFALSE; 445 break; 382 446 case 19: 383 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes ); 447 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes )) 448 val = 1; 449 else 450 return kFALSE; 451 break; 384 452 case 20: 385 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeNotFitted ); 453 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeNotFitted )) 454 val = 1; 455 else 456 return kFALSE; 457 break; 386 458 case 21: 387 return (*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeOscillating ); 459 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeOscillating)) 460 val = 1; 461 else 462 return kFALSE; 463 break; 388 464 default: 389 465 return kFALSE; 390 466 } 391 467 392 return k FALSE;468 return kTRUE; 393 469 } 394 470 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.cc
r3849 r3851 50 50 using namespace std; 51 51 52 const Int_t MHCalibrationTestPix::fgChargeNbins = 2000;52 const Int_t MHCalibrationTestPix::fgChargeNbins = 1000; 53 53 const Axis_t MHCalibrationTestPix::fgChargeFirst = -0.5; 54 54 const Axis_t MHCalibrationTestPix::fgChargeLast = 3999.5; -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3836 r3851 178 178 const Int_t fit, const Int_t rad) 179 179 { 180 180 181 c.cd(x); 181 182 gPad->SetBorderMode(0); … … 454 455 // Defects 455 456 TCanvas &c4 = fDisplay->AddTab("Defect"); 456 c4.Divide(3,2); 457 458 CamDraw(c4, 1, 3, disp23, 0); 459 CamDraw(c4, 2, 3, disp24, 0); 460 CamDraw(c4, 3, 3, disp25, 0); 457 // c4.Divide(3,2); 458 c4.Divide(2,2); 459 460 // CamDraw(c4, 1, 3, disp23, 0); 461 // CamDraw(c4, 2, 3, disp24, 0); 462 // CamDraw(c4, 3, 3, disp25, 0); 463 CamDraw(c4, 1, 2, disp24, 0); 464 CamDraw(c4, 2, 2, disp25, 0); 461 465 462 466 if (fRelTimes) … … 510 514 // Defects 511 515 TCanvas &c15 = fDisplay->AddTab("Defect"); 512 c15.Divide(5,2); 513 516 // c15.Divide(5,2); 517 c15.Divide(4,2); 518 519 /* 514 520 CamDraw(c15, 1, 5, disp23, 0); 515 521 CamDraw(c15, 2, 5, disp24, 0); … … 517 523 CamDraw(c15, 4, 5, disp26, 0); 518 524 CamDraw(c15, 5, 5, disp27, 0); 525 */ 526 CamDraw(c15, 1, 4, disp24, 0); 527 CamDraw(c15, 2, 4, disp25, 0); 528 CamDraw(c15, 3, 4, disp26, 0); 529 CamDraw(c15, 4, 4, disp27, 0); 519 530 520 531 // Abs. Times … … 614 625 // Defects 615 626 TCanvas &c29 = fDisplay->AddTab("Defect"); 616 c29.Divide(5,2);617 618 CamDraw(c29, 1, 5, disp23, 0);619 CamDraw(c29, 2, 5, disp24, 0);620 CamDraw(c29, 3, 5, disp25, 0);621 CamDraw(c29, 4, 5, disp26, 0);622 CamDraw(c29, 5, 5, disp27, 0);627 // c29.Divide(5,2); 628 c29.Divide(4,2); 629 630 CamDraw(c29, 1, 4, disp24, 0); 631 CamDraw(c29, 2, 4, disp25, 0); 632 CamDraw(c29, 3, 4, disp26, 0); 633 CamDraw(c29, 4, 4, disp27, 0); 623 634 624 635 // Abs. Times
Note:
See TracChangeset
for help on using the changeset viewer.