Changeset 7832 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/02/06 08:03:32 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r7810 r7832 226 226 227 227 if ( fLoGainFirst <= fLoGainLast-fWindowSizeLoGain) 228 228 { 229 229 const Bool_t logainabflag = (higainabflag + pixel.GetNumHiGainSamples()) & 0x1; 230 230 FindTimeAndChargeLoGain(pixel.GetLoGainSamples()+fLoGainFirst, -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r7784 r7832 88 88 const Int_t MExtractTimeAndChargeDigitalFilter::fgSignalStartBinHiGain = 4; 89 89 const Int_t MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain = 4; 90 const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain = 1. 7; // 5 ns90 const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain = 1.05; 91 91 const Float_t MExtractTimeAndChargeDigitalFilter::fgLoGainStartShift = -1.8; 92 92 … … 113 113 SetSignalStartBin(); 114 114 115 SetOffsetLoGain(fgOffsetLoGain); 116 SetLoGainStartShift(fgLoGainStartShift); 115 SetOffsetLoGain(fgOffsetLoGain); // Order between both 116 SetLoGainStartShift(fgLoGainStartShift); // is important 117 117 } 118 118 … … 480 480 481 481 // here, the first high-gain slice is already included in the fTimeShiftHiGain 482 time = fTimeShiftHiGain + max_p - Float_t(t_iter)/fBinningResolutionHiGain; 482 // time = fTimeShiftHiGain + max_p - Float_t(t_iter)/fBinningResolutionHiGain; 483 time = max_p + fTimeShiftHiGain + (Float_t)fHiGainFirst /* this shifts the time to the start of the rising edge */ 484 - ((Float_t)t_iter)/fBinningResolutionHiGain; 483 485 484 486 const Float_t timefineadjust = time_sum/sum; -
trunk/MagicSoft/Mars/msignal/MSignalCam.cc
r7831 r7832 643 643 break; 644 644 645 case 7: // pulse position above 15phe645 case 7: // pulse position above 50phe 646 646 // The number of photons is not scaled with the ratio because 647 647 // otherwise to many large pixels survive (maybe because the 648 648 // fluctuations scale different than expected) 649 if (pix->IsPixelUnmapped() || pix->GetNumPhotons() *ratio<15)649 if (pix->IsPixelUnmapped() || pix->GetNumPhotons()<50) 650 650 return kFALSE; 651 651 val = pix->GetArrivalTime(); … … 657 657 658 658 case 10: // lo gain time 659 if (pix->IsPixelUnmapped() || !pix->IsLoGainUsed()) 659 if (pix->IsPixelUnmapped() || !pix->IsLoGainUsed() || 660 pix->GetNumPhotons()<320) 660 661 return kFALSE; 661 662 val = pix->GetArrivalTime(); … … 667 668 // fluctuations scale different than expected) 668 669 if (pix->IsPixelUnmapped() || pix->IsLoGainUsed() || 669 pix->GetNumPhotons() *ratio<15)670 pix->GetNumPhotons()<50) 670 671 return kFALSE; 671 672 val = pix->GetArrivalTime();
Note:
See TracChangeset
for help on using the changeset viewer.