- Timestamp:
- 11/30/04 19:30:36 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5512 r5525 78 78 const Int_t MExtractTimeAndChargeDigitalFilter::fgSignalStartBinHiGain = 4; 79 79 const Int_t MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain = 4; 80 const TString MExtractTimeAndChargeDigitalFilter::fgNameWeightsFile = " cosmics_weights.dat";80 const TString MExtractTimeAndChargeDigitalFilter::fgNameWeightsFile = "msignal/cosmics_weights.dat"; 81 81 // -------------------------------------------------------------------------- 82 82 // … … 546 546 Int_t MExtractTimeAndChargeDigitalFilter::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 547 547 { 548 Byte_t hw = fWindowSizeHiGain; 549 Byte_t lw = fWindowSizeLoGain; 550 Bool_t rc = kFALSE; 551 552 if (IsEnvDefined(env, prefix, "WindowSizeHiGain", print)) 553 { 554 hw = GetEnvValue(env, prefix, "WindowSizeHiGain", hw); 555 rc = kTRUE; 556 } 557 if (IsEnvDefined(env, prefix, "WindowSizeLoGain", print)) 558 { 559 lw = GetEnvValue(env, prefix, "WindowSizeLoGain", lw); 560 rc = kTRUE; 561 } 562 563 if (rc) 564 SetWindowSize(hw, lw); 565 566 Bool_t rc2 = kFALSE; 567 Int_t brh = fBinningResolutionHiGain; 568 Int_t brl = fBinningResolutionLoGain; 569 570 if (IsEnvDefined(env, prefix, "BinningResolutionHiGain", print)) 571 { 572 brh = GetEnvValue(env, prefix, brh); 573 rc2 = kTRUE; 574 } 575 if (IsEnvDefined(env, prefix, "BinningResolutionLoGain", print)) 576 { 577 brl = GetEnvValue(env, prefix, brl); 578 rc2 = kTRUE; 579 } 580 581 if (rc2) 582 { 583 SetBinningResolution(brh, brl); 584 rc = kTRUE; 585 } 586 587 if (IsEnvDefined(env, prefix, "WeightsFile", print)) 588 { 589 if (!ReadWeightsFile(GetEnvValue(env, prefix, "WeightsFile", ""))) 590 return kERROR; 591 rc = kTRUE; 592 } 593 594 return MExtractTimeAndCharge::ReadEnv(env, prefix, print) ? kTRUE : rc; 548 549 Byte_t hw = fWindowSizeHiGain; 550 Byte_t lw = fWindowSizeLoGain; 551 Bool_t rc = kFALSE; 552 553 if (IsEnvDefined(env, prefix, "WindowSizeHiGain", print)) 554 { 555 hw = GetEnvValue(env, prefix, "WindowSizeHiGain", hw); 556 rc = kTRUE; 557 } 558 if (IsEnvDefined(env, prefix, "WindowSizeLoGain", print)) 559 { 560 lw = GetEnvValue(env, prefix, "WindowSizeLoGain", lw); 561 rc = kTRUE; 562 } 563 564 if (rc) 565 SetWindowSize(hw, lw); 566 567 Bool_t rc2 = kFALSE; 568 Int_t brh = fBinningResolutionHiGain; 569 Int_t brl = fBinningResolutionLoGain; 570 571 if (IsEnvDefined(env, prefix, "BinningResolutionHiGain", print)) 572 { 573 brh = GetEnvValue(env, prefix, brh); 574 rc2 = kTRUE; 575 } 576 if (IsEnvDefined(env, prefix, "BinningResolutionLoGain", print)) 577 { 578 brl = GetEnvValue(env, prefix, brl); 579 rc2 = kTRUE; 580 } 581 582 if (rc2) 583 { 584 SetBinningResolution(brh, brl); 585 rc = kTRUE; 586 } 587 588 if (IsEnvDefined(env, prefix, "WeightsFile", print)) 589 { 590 if (!ReadWeightsFile(GetEnvValue(env, prefix, "WeightsFile", ""))) 591 return kERROR; 592 rc = kTRUE; 593 } 594 595 return MExtractTimeAndCharge::ReadEnv(env, prefix, print) ? kTRUE : rc; 595 596 } 596 597
Note:
See TracChangeset
for help on using the changeset viewer.