Changeset 3734 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 04/14/04 16:35:59 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r3732 r3734 53 53 { 54 54 fName = name ? name : "MBadPixelsCam"; 55 fTitle = title ? title : " ";55 fTitle = title ? title : "Storage container to store bad pixel information"; 56 56 57 57 fArray = new TClonesArray("MBadPixelsPix", 1); 58 } 59 60 MBadPixelsCam::MBadPixelsCam(const MBadPixelsCam &cam) 61 { 62 fName = "MBadPixelsCam"; 63 fTitle = "Storage container to store bad pixel information"; 64 65 fArray = new TClonesArray("MBadPixelsPix", 1); 66 cam.Copy(*fArray); 58 67 } 59 68 … … 342 351 val = (*this)[idx].GetInfo()[0]; 343 352 return (*this)[idx].IsOK(); 344 break;345 353 case 1: 346 354 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun); 347 355 return val; 348 break;349 356 case 2: 350 357 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt); 351 358 return val; 352 break;353 359 case 3: 354 360 val = (*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun); 355 361 return val; 356 break;357 362 case 4: 358 363 val = (*this)[idx].IsHiGainBad(); 359 364 return val; 360 break;361 365 case 5: 362 366 val = (*this)[idx].IsLoGainBad(); 363 367 return val; 364 break;365 368 case 6: 366 369 val = !(*this)[idx].IsCalibrationSignalOK(); 367 370 return val; 368 break;369 371 case 7: 370 372 val = !(*this)[idx].IsCalibrationResultOK(); 371 373 return val; 372 break;373 374 case 8: 374 375 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted); 375 376 return val; 376 break;377 377 case 9: 378 378 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainNotFitted); 379 379 return val; 380 break;381 380 case 10: 382 381 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainOscillating); 383 382 return val; 384 break;385 383 case 11: 386 384 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainOscillating); 387 385 return val; 388 break;389 386 case 12: 390 387 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainSaturation ); 391 388 return val; 392 break;393 389 case 13: 394 390 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal ); 395 391 return val; 396 break;397 392 case 14: 398 393 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeErrNotValid); 399 394 return val; 400 break;401 395 case 15: 402 396 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid); 403 397 return val; 404 break;405 398 case 16: 406 399 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid ); 407 400 return val; 408 break;409 401 case 17: 410 402 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin ); 411 403 return val; 412 break;413 404 case 18: 414 405 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins ); 415 406 return val; 416 break;417 407 case 19: 418 408 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes ); 419 409 return val; 420 break;421 410 case 20: 422 411 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeNotFitted ); 423 412 return val; 424 break;425 413 case 21: 426 414 val = (*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeOscillating ); 427 415 return val; 428 break;429 416 default: 430 417 return kFALSE; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.h
r3068 r3734 19 19 public: 20 20 MBadPixelsCam(const char *name=NULL, const char *title=NULL); 21 MBadPixelsCam(const MBadPixelsCam &cam); 21 22 ~MBadPixelsCam(); 22 23 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsMerge.cc
r3461 r3734 26 26 // 27 27 // MBadPixelsMerge 28 // =============== 28 29 // 29 30 // Merges in ReInit two bad pixel containers together: … … 33 34 // into the container given in the constructor. While the contents 34 35 // to which 1) refers are still untouched. 36 // 37 // 38 // An explanation taken from Mantis: 39 // -------------------------------- 40 // In my eyes everything works a supposed to do. We have different sources 41 // for bad-pixels, eg from Pedestal calculation, from the calibration 42 // constant calculation, manual setting and so on. If processing data we 43 // have to take care of all this different sources. Therefor we have to 44 // store the bad pixels from this sources (eg. from calibration). In 45 // addition MBadPixelsCam is read from the file containing the data (once 46 // per file). Now always after a new (data-)file has been opened the bad 47 // pixels from (for example) the calibration file have to be merged into 48 // the container loaded from the (data-)file which is stored in the 49 // parameter list. Copying the pointer would totally overwrite the pixels 50 // loaded (automatically by MReadMarsFile) from the data-file. All this is 51 // done using a copy of the original MBadPixelsCam (fSource). In addition 52 // fDest is initialized to the pointer given as argument to the 53 // constructor. To keep track of all bad pixels the instance this pointer 54 // is pointing to is used to collect all bad pixels used so far. 55 // 35 56 // 36 57 // Input Containers: … … 69 90 fTitle = title ? title : fgDefTitle.Data(); 70 91 71 fSource = new MBadPixelsCam; 72 bad->Copy(*fSource); 92 fSource = new MBadPixelsCam(*bad); 73 93 } 74 94
Note:
See TracChangeset
for help on using the changeset viewer.