- Timestamp:
- 11/10/04 17:12:20 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r5369 r5372 615 615 Int_t ls = fCheckWinLast; 616 616 617 if (IsEnvDefined(env, prefix, "SetCheckRange", print)) 618 { 617 if (IsEnvDefined(env, prefix, "FirstCheckWindowSlice", print)){ 619 618 fs = GetEnvValue(env, prefix, "FirstCheckWindowSlice", fs); 619 rc = kTRUE; 620 } 621 if (IsEnvDefined(env, prefix, "LastCheckWindowSlice", print)){ 620 622 ls = GetEnvValue(env, prefix, "LastCheckWindowSlice", ls); 621 623 rc = kTRUE; 622 623 } 624 } 625 624 626 SetCheckRange(fs,ls); 625 627 … … 628 630 Int_t wf = fExtractWinFirst; 629 631 630 if (IsEnvDefined(env, prefix, "SetExtractWindow", print)) 631 { 632 lw = GetEnvValue(env, prefix, "ExtractWindowSize", lw); 633 wf = GetEnvValue(env, prefix, "ExtractWindowFirst", wf); 634 rc = kTRUE; 635 636 } 632 if (IsEnvDefined(env, prefix, "ExtractWindowSize", print)){ 633 lw = GetEnvValue(env, prefix, "ExtractWindowSize", lw); 634 rc = kTRUE; 635 } 636 637 if (IsEnvDefined(env, prefix, "ExtractWindowFirst", print)){ 638 wf = GetEnvValue(env, prefix, "ExtractWindowFirst", wf); 639 rc = kTRUE; 640 } 641 637 642 SetExtractWindow(wf,lw); 638 643 639 644 Int_t num = fNumEventsDump; 640 if (IsEnvDefined(env, prefix, " SetNumEventsDump", print))645 if (IsEnvDefined(env, prefix, "NumEventsDump", print)) 641 646 { 642 647 num = GetEnvValue(env, prefix, "NumEventsDump", num); … … 645 650 SetNumEventsDump(num); 646 651 647 Byte_t max = fMaxSignalVar;648 if (IsEnvDefined(env, prefix, " SetMaxSignalVar", print))652 Int_t max = fMaxSignalVar; 653 if (IsEnvDefined(env, prefix, "MaxSignalVar", print)) 649 654 { 650 655 max = GetEnvValue(env, prefix, "MaxSignalVar", max); … … 654 659 655 660 Bool_t upd = fPedestalUpdate; 656 if (IsEnvDefined(env, prefix, " SetPedestalUpdate", print))661 if (IsEnvDefined(env, prefix, "PedestalUpdate", print)) 657 662 { 658 663 upd = GetEnvValue(env, prefix, "PedestalUpdate", upd); -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.h
r5356 r5372 69 69 void SetCheckRange(Int_t checkfirst=0, Int_t checklast=29); 70 70 void SetExtractWindow(Int_t extractfirst=15, Int_t windowsize=6); 71 void SetMaxSignalVar(Int_t maxvar= 0) { fMaxSignalVar = maxvar; }72 void SetNumEventsDump(UInt_t dumpevents = 0) { fNumEventsDump = dumpevents;}71 void SetMaxSignalVar(Int_t maxvar=40) { fMaxSignalVar = maxvar; } 72 void SetNumEventsDump(UInt_t dumpevents = 500) { fNumEventsDump = dumpevents;} 73 73 void SetPedestalUpdate(Bool_t pedupdate) {fPedestalUpdate = pedupdate;} 74 74
Note:
See TracChangeset
for help on using the changeset viewer.