Changeset 5240 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 10/12/04 13:27:39 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5218 r5240 121 121 fLoGainFirst, fLoGainLast, fNumLoGainSamples); 122 122 123 *fLog << endl;123 *fLog << dec << endl; 124 124 *fLog << inf << GetDescriptor() << ": Taking " << fNumHiGainSamples 125 125 << " HiGain samples from slice " << (Int_t)fHiGainFirst … … 185 185 Byte_t satlo=0; 186 186 187 const Bool_t logainabflag = (higainabflag + pixel.GetNumHiGainSamples()) & 0x1; 188 189 FindTimeAndChargeLoGain(pixel.GetLoGainSamples()+fLoGainFirst, 190 sumlo, deltasumlo, 191 timelo, deltatimelo, 192 satlo, ped, logainabflag); 193 187 // 188 // Adapt the low-gain extraction range from the obtained high-gain time 189 // 190 if (pixel.HasLoGain()) 191 { 192 fLoGainFirstSave = fLoGainFirst; 193 fLoGainFirst = (Int_t)(timehi+fOffsetLoGain-2.); 194 fLoGainFirst = fLoGainFirst < fLoGainFirstSave ? fLoGainFirstSave : fLoGainFirst; 195 196 if ( fLoGainFirst < fLoGainLast ) 197 { 198 const Bool_t logainabflag = (higainabflag + pixel.GetNumHiGainSamples()) & 0x1; 199 FindTimeAndChargeLoGain(pixel.GetLoGainSamples()+fLoGainFirst, 200 sumlo, deltasumlo, 201 timelo, deltatimelo, 202 satlo, ped, logainabflag); 203 } 204 205 fLoGainFirst = fLoGainFirstSave; 206 } 207 194 208 MExtractedSignalPix &pix = (*fSignals)[pixid]; 195 209 MArrivalTimePix &tix = (*fArrTime)[pixid]; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r5150 r5240 9 9 class MExtractTimeAndCharge : public MExtractTime 10 10 { 11 private: 12 13 Byte_t fLoGainFirstSave; // First Low-Gain FADC slice obtained by position of high-gain signal 14 11 15 protected: 12 16 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r5232 r5240 37 37 // fHiGainFirst = fgHiGainFirst = 0 38 38 // fHiGainLast = fgHiGainLast = 14 39 // fLoGainFirst = fgLoGainFirst = 339 // fLoGainFirst = fgLoGainFirst = 2 40 40 // fLoGainLast = fgLoGainLast = 14 41 41 // … … 63 63 const Byte_t MExtractTimeAndChargeSlidingWindow::fgHiGainFirst = 2; 64 64 const Byte_t MExtractTimeAndChargeSlidingWindow::fgHiGainLast = 14; 65 const Byte_t MExtractTimeAndChargeSlidingWindow::fgLoGainFirst = 3;65 const Byte_t MExtractTimeAndChargeSlidingWindow::fgLoGainFirst = 2; 66 66 const Byte_t MExtractTimeAndChargeSlidingWindow::fgLoGainLast = 14; 67 67 const Byte_t MExtractTimeAndChargeSlidingWindow::fgHiGainWindowSize = 6; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.h
r5232 r5240 14 14 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 2) 15 15 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to: 14) 16 static const Byte_t fgLoGainFirst; //! Default for fLOGainFirst (now set to: 3)16 static const Byte_t fgLoGainFirst; //! Default for fLOGainFirst (now set to: 2) 17 17 static const Byte_t fgLoGainLast; //! Default for fLoGainLast (now set to: 14) 18 18 static const Byte_t fgHiGainWindowSize; //! The extraction window Hi-Gain -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5235 r5240 118 118 // fHiGainFirst = 2 119 119 // fHiGainLast = 14 120 // fLoGainFirst = 3120 // fLoGainFirst = 2 121 121 // fLoGainLast = 14 122 122 // … … 157 157 const Byte_t MExtractTimeAndChargeSpline::fgHiGainFirst = 2; 158 158 const Byte_t MExtractTimeAndChargeSpline::fgHiGainLast = 14; 159 const Byte_t MExtractTimeAndChargeSpline::fgLoGainFirst = 3;159 const Byte_t MExtractTimeAndChargeSpline::fgLoGainFirst = 2; 160 160 const Byte_t MExtractTimeAndChargeSpline::fgLoGainLast = 14; 161 161 const Float_t MExtractTimeAndChargeSpline::fgResolution = 0.01; … … 762 762 // Don't start if the maxpos is too close to the left limit. 763 763 // 764 if (sat || maxpos < 2)764 if (sat || maxpos < 1) 765 765 { 766 766 time = IsExtractionType(kMaximum) … … 770 770 } 771 771 772 if (maxpos < 2 && IsExtractionType(kHalfMaximum)) 773 { 774 time = (Float_t)(fLoGainFirst + maxpos - 1); 775 return; 776 } 777 772 778 Float_t pp; 773 779 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
r5231 r5240 14 14 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 2) 15 15 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to: 14) 16 static const Byte_t fgLoGainFirst; //! Default for fL OGainFirst (now set to: 3)16 static const Byte_t fgLoGainFirst; //! Default for fLoGainFirst (now set to: 2) 17 17 static const Byte_t fgLoGainLast; //! Default for fLoGainLast (now set to: 14) 18 18 static const Float_t fgResolution; //! Default for fResolution (now set to: 0.003)
Note:
See TracChangeset
for help on using the changeset viewer.