Changeset 4635 for trunk/MagicSoft
- Timestamp:
- 08/16/04 17:40:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
r4632 r4635 268 268 { 269 269 Bool_t rc = kFALSE; 270 if (IsEnvDefined(env, prefix, "PedestalLevel" ))270 if (IsEnvDefined(env, prefix, "PedestalLevel", print)) 271 271 { 272 272 rc = kTRUE; -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r4633 r4635 591 591 // 592 592 // Read the setup from a TEnv, eg: 593 // MBadPixels Calc.UseInterpolation: no594 // MBadPixels Calc.UseCentralPixel: no595 // MBadPixels Calc.HardTreatment: no596 // MBadPixels Calc.ProcessRMS: no597 // MBadPixels Calc.NumMinNeighbors: 3593 // MBadPixelsTreat.UseInterpolation: no 594 // MBadPixelsTreat.UseCentralPixel: no 595 // MBadPixelsTreat.HardTreatment: no 596 // MBadPixelsTreat.ProcessRMS: no 597 // MBadPixelsTreat.NumMinNeighbors: 3 598 598 // 599 599 Int_t MBadPixelsTreat::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 600 600 { 601 601 Bool_t rc = kFALSE; 602 if (IsEnvDefined(env, prefix, "UseInterpolation" ))602 if (IsEnvDefined(env, prefix, "UseInterpolation", print)) 603 603 { 604 604 rc = kTRUE; 605 605 SetUseInterpolation(GetEnvValue(env, prefix, "UseInterpolation", IsUseInterpolation())); 606 606 } 607 if (IsEnvDefined(env, prefix, "UseCentralPixel" ))607 if (IsEnvDefined(env, prefix, "UseCentralPixel", print)) 608 608 { 609 609 rc = kTRUE; 610 610 SetUseCentralPixel(GetEnvValue(env, prefix, "UseCentralPixel", IsUseCentralPixel())); 611 611 } 612 if (IsEnvDefined(env, prefix, "HardTreatment" ))612 if (IsEnvDefined(env, prefix, "HardTreatment", print)) 613 613 { 614 614 rc = kTRUE; 615 615 SetHardTreatment(GetEnvValue(env, prefix, "HardTreatment", IsHardTreatment())); 616 616 } 617 if (IsEnvDefined(env, prefix, "ProcessRMS" ))617 if (IsEnvDefined(env, prefix, "ProcessRMS", print)) 618 618 { 619 619 rc = kTRUE; 620 620 SetProcessRMS(GetEnvValue(env, prefix, "ProcessRMS", IsProcessRMS())); 621 621 } 622 if (IsEnvDefined(env, prefix, "NumMinNeighbors" ))622 if (IsEnvDefined(env, prefix, "NumMinNeighbors", print)) 623 623 { 624 624 rc = kTRUE; -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r4632 r4635 648 648 { 649 649 Bool_t rc = kFALSE; 650 if (IsEnvDefined(env, prefix, "PedestalFlag" ))650 if (IsEnvDefined(env, prefix, "PedestalFlag", print)) 651 651 { 652 652 rc = kTRUE; 653 653 TString s = GetEnvValue(env, prefix, "PedestalFlag", ""); 654 654 s.ToLower(); 655 if (s ==(TString)"no")655 if (s.BeginsWith("no")) 656 656 SetPedestalFlag(kNo); 657 if (s ==(TString)"run")657 if (s.BeginsWith("run")) 658 658 SetPedestalFlag(kRun); 659 if (s ==(TString)"event")659 if (s.BeginsWith("event")) 660 660 SetPedestalFlag(kEvent); 661 661 } 662 662 663 if (IsEnvDefined(env, prefix, "CalibrationMode" ))663 if (IsEnvDefined(env, prefix, "CalibrationMode", print)) 664 664 { 665 665 rc = kTRUE; 666 666 TString s = GetEnvValue(env, prefix, "CalibrationMode", ""); 667 667 s.ToLower(); 668 if (s ==(TString)"skip")668 if (s.BeginsWith("skip")) 669 669 SetCalibrationMode(kSkip); 670 if (s ==(TString)"none")670 if (s.BeginsWith("none")) 671 671 SetCalibrationMode(kNone); 672 if (s ==(TString)"flatcharge")672 if (s.BeginsWith("flatcharge")) 673 673 SetCalibrationMode(kFlatCharge); 674 if (s ==(TString)"blindpixel")674 if (s.BeginsWith("blindpixel")) 675 675 SetCalibrationMode(kBlindPixel); 676 if (s ==(TString)"ffactor")676 if (s.BeginsWith("ffactor")) 677 677 SetCalibrationMode(kFfactor); 678 if (s ==(TString)"pindiode")678 if (s.BeginsWith("pindiode")) 679 679 SetCalibrationMode(kPinDiode); 680 if (s ==(TString)"combined")680 if (s.BeginsWith("combined")) 681 681 SetCalibrationMode(kCombined); 682 if (s ==(TString)"dummy")682 if (s.BeginsWith("dummy")) 683 683 SetCalibrationMode(kDummy); 684 if (s ==(TString)"default")684 if (s.BeginsWith("default")) 685 685 SetCalibrationMode(); 686 686 }
Note:
See TracChangeset
for help on using the changeset viewer.