Changeset 4698 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 08/23/04 09:06:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r4635 r4698 537 537 // -------------------------------------------------------------------------- 538 538 // 539 // Interpolate Pedestals if kProcess RMSnot set539 // Interpolate Pedestals if kProcessPedestal not set 540 540 // 541 541 Bool_t MBadPixelsTreat::ReInit(MParList *pList) 542 542 { 543 if (!TESTBIT(fFlags, kProcess RMS))543 if (!TESTBIT(fFlags, kProcessPedestal)) 544 544 InterpolatePedestals(); 545 545 return kTRUE; … … 555 555 { 556 556 InterpolateSignal(); 557 if (TESTBIT(fFlags, kProcess RMS))557 if (TESTBIT(fFlags, kProcessPedestal)) 558 558 InterpolatePedestals(); 559 559 } … … 580 580 if (TESTBIT(fFlags, kUseCentralPixel)) 581 581 out << " " << GetUniqueName() << ".SetUseCentralPixel();" << endl; 582 if (TESTBIT(fFlags, kProcess RMS))583 out << " " << GetUniqueName() << ".SetProcess RMS();" << endl;582 if (TESTBIT(fFlags, kProcessPedestal)) 583 out << " " << GetUniqueName() << ".SetProcessPedestal();" << endl; 584 584 if (TESTBIT(fFlags, kHardTreatment)) 585 585 out << " " << GetUniqueName() << ".SetHardTreatment();" << endl; … … 594 594 // MBadPixelsTreat.UseCentralPixel: no 595 595 // MBadPixelsTreat.HardTreatment: no 596 // MBadPixelsTreat.Process RMS:no596 // MBadPixelsTreat.ProcessPedestal: no 597 597 // MBadPixelsTreat.NumMinNeighbors: 3 598 598 // … … 615 615 SetHardTreatment(GetEnvValue(env, prefix, "HardTreatment", IsHardTreatment())); 616 616 } 617 if (IsEnvDefined(env, prefix, "Process RMS", print))617 if (IsEnvDefined(env, prefix, "ProcessPedestal", print)) 618 618 { 619 619 rc = kTRUE; 620 SetProcess RMS(GetEnvValue(env, prefix, "ProcessRMS", IsProcessRMS()));620 SetProcessPedestal(GetEnvValue(env, prefix, "ProcessPedestal", IsProcessPedestal())); 621 621 } 622 622 if (IsEnvDefined(env, prefix, "NumMinNeighbors", print)) -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
r4633 r4698 27 27 kUseInterpolation = 1, 28 28 kUseCentralPixel = 2, 29 kProcess RMS= 3,29 kProcessPedestal = 3, 30 30 kHardTreatment = 4 31 31 }; … … 56 56 b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel); 57 57 } 58 void SetProcess RMS(Bool_t b=kTRUE)58 void SetProcessPedestal(Bool_t b=kTRUE) 59 59 { 60 b ? SETBIT(fFlags, kProcess RMS) : CLRBIT(fFlags, kProcessRMS);60 b ? SETBIT(fFlags, kProcessPedestal) : CLRBIT(fFlags, kProcessPedestal); 61 61 } 62 62 void SetHardTreatment(Bool_t b=kTRUE) … … 66 66 67 67 Bool_t IsHardTreatment() const { return TESTBIT(fFlags, kHardTreatment); } 68 Bool_t IsProcess RMS() const { return TESTBIT(fFlags, kProcessRMS); }68 Bool_t IsProcessPedestal() const { return TESTBIT(fFlags, kProcessPedestal); } 69 69 Bool_t IsUseCentralPixel() const { return TESTBIT(fFlags, kUseCentralPixel); } 70 70 Bool_t IsUseInterpolation() const { return TESTBIT(fFlags, kUseInterpolation); }
Note:
See TracChangeset
for help on using the changeset viewer.