Changeset 2715 for trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
- Timestamp:
- 12/18/03 17:23:50 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r2699 r2715 56 56 // Default constructor. 57 57 // 58 MExtractSignal::MExtractSignal(const Byte_t first, const Byte_t last, const char *name, const char *title) 58 MExtractSignal::MExtractSignal(const Byte_t first, const Byte_t last, const Byte_t logainshift, 59 const char *name, const char *title) 59 60 : fNumHiGainSamples(last-first+1), fNumLoGainSamples(last-first+1), 60 61 fSaturationLimit(254), fConversionHiLo(10.) … … 66 67 AddToBranchList("MRawEvtData.*"); 67 68 68 fFirst = first; 69 fFirst = first; 70 fLoGainFirst = first+logainshift; 69 71 70 72 fSqrtHiGainSamples = TMath::Sqrt((Float_t)fNumHiGainSamples); … … 186 188 187 189 ptr = pixel.GetLoGainSamples(); 188 first = ptr + f First + 1;189 last = ptr + f First + fNumLoGainSamples +1;190 first = ptr + fLoGainFirst + 1; 191 last = ptr + fLoGainFirst + fNumLoGainSamples +1; 190 192 Byte_t maxlo = 0; 191 193 Byte_t midlo = 0; … … 222 224 pix.SetArrivalTimes((Float_t)(midlo+fFirst),0.,0.); 223 225 else 224 pix.SetArrivalTimes((Float_t)(midhi+f First),0.,0.);226 pix.SetArrivalTimes((Float_t)(midhi+fLoGainFirst),0.,0.); 225 227 226 228 } /* while (pixel.Next()) */
Note:
See TracChangeset
for help on using the changeset viewer.