Changeset 3851 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 04/27/04 17:20:45 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.