Changeset 11568 for trunk/Mars/msignal
- Timestamp:
- 07/24/11 18:33:54 (13 years ago)
- Location:
- trunk/Mars/msignal
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msignal/MExtractBlindPixel.cc
r8519 r11568 150 150 } 151 151 152 void MExtractBlindPixel::SetRange( Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)152 void MExtractBlindPixel::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast) 153 153 { 154 154 -
trunk/Mars/msignal/MExtractBlindPixel.h
r8304 r11568 87 87 // void SetNumBlindPixels( const Int_t num=1 ) { fNumBlindPixels = num; } 88 88 89 void SetRange ( const Byte_t hifirst=0, const Byte_t hilast=0,90 const Int_t lofirst=0, const Byte_tlolast=0 );89 void SetRange ( const UShort_t hifirst=0, const UShort_t hilast=0, 90 const Int_t lofirst=0, const Byte_t lolast=0 ); 91 91 void SetResolution ( const Float_t f=fgResolution ) { fResolution = f; } 92 92 -
trunk/Mars/msignal/MExtractPINDiode.cc
r8614 r11568 146 146 // - fSqrtLoGainSamples to: 0. 147 147 // 148 void MExtractPINDiode::SetRange( Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)148 void MExtractPINDiode::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast) 149 149 { 150 150 -
trunk/Mars/msignal/MExtractPINDiode.h
r8304 r11568 56 56 57 57 // Setters 58 void SetRange( Byte_t hifirst=0, Byte_t hilast=0, Int_t lofirst=0, Byte_t lolast=0);58 void SetRange(UShort_t hifirst=0, UShort_t hilast=0, Int_t lofirst=0, Byte_t lolast=0); 59 59 void SetPINDiodeIdx ( const UInt_t idx=fgPINDiodeIdx ) { fPINDiodeIdx = idx; } 60 60 void SetLowerFitLimit( const Byte_t lim=fgLowerFitLimit ) { fLowerFitLimit = lim; } -
trunk/Mars/msignal/MExtractTimeAndCharge.cc
r10166 r11568 237 237 const UInt_t satlim = fSaturationLimit*fRunHeader->GetScale(); 238 238 239 // Do not even try to extract the hi-gain if we have 240 // more than one saturating slice 241 const Int_t rangehi = fHiGainLast - fHiGainFirst + 1; 242 239 243 MRawEvtPixelIter pixel(fRawEvt); 240 244 while (pixel.Next()) … … 251 255 Float_t sumhi =0., deltasumhi =-1; // Set hi-gain of MExtractedSignalPix valid 252 256 Float_t timehi=0., deltatimehi=-1; // Set hi-gain of MArrivalTimePix valid 253 254 // Do not even try to extract the hi-gain if we have255 // more than one saturating slice256 const Int_t rangehi = fHiGainLast - fHiGainFirst + 1;257 257 258 258 if (numsathi<2) -
trunk/Mars/msignal/MExtractTimeAndChargeSpline.cc
r10166 r11568 201 201 // explicit call to SetChargeType(). 202 202 // 203 void MExtractTimeAndChargeSpline::SetRange( Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)203 void MExtractTimeAndChargeSpline::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast) 204 204 { 205 205 MExtractor::SetRange(hifirst, hilast, lofirst, lolast); … … 347 347 s.GetTime(time, dtime); 348 348 s.GetSignal(sum, dsum); 349 350 349 } 351 350 -
trunk/Mars/msignal/MExtractTimeAndChargeSpline.h
r8478 r11568 61 61 Float_t GetFallTimeHiGain() const { return fFallTimeHiGain; } 62 62 63 void SetRange( Byte_t hifirst=0, Byte_t hilast=0, Int_t lofirst=0, Byte_t lolast=0 );63 void SetRange(UShort_t hifirst=0, UShort_t hilast=0, Int_t lofirst=0, Byte_t lolast=0 ); 64 64 65 65 void SetResolution(const Float_t f=fgResolution) { fResolution = f; } -
trunk/Mars/msignal/MExtractor.cc
r9069 r11568 147 147 } 148 148 149 void MExtractor::SetRange( Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)149 void MExtractor::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast) 150 150 { 151 151 fHiGainFirst = hifirst; … … 303 303 Int_t MExtractor::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 304 304 { 305 Byte_t hf = fHiGainFirst;306 Int_t lf = fLoGainFirst;307 Byte_t hl = fHiGainLast;308 Byte_t ll = fLoGainLast;305 UShort_t hf = fHiGainFirst; 306 UShort_t hl = fHiGainLast; 307 Int_t lf = fLoGainFirst; 308 Byte_t ll = fLoGainLast; 309 309 310 310 Bool_t rc = kFALSE; -
trunk/Mars/msignal/MExtractor.h
r8907 r11568 43 43 MPedestalSubtractedEvt *fSignal; //! 44 44 45 Byte_tfHiGainFirst; // First FADC slice nr. to extract the High Gain signal46 Byte_tfHiGainLast; // Last FADC slice nr. to extract the High Gain signal45 UShort_t fHiGainFirst; // First FADC slice nr. to extract the High Gain signal 46 UShort_t fHiGainLast; // Last FADC slice nr. to extract the High Gain signal 47 47 Int_t fLoGainFirst; // First FADC slice nr. to extract the Low Gain signal 48 48 Byte_t fLoGainLast; // Last FADC slice nr. to extract the Low Gain signal … … 81 81 82 82 // getter 83 Byte_tGetHiGainFirst() const { return fHiGainFirst; }84 Byte_tGetHiGainLast () const { return fHiGainLast ; }85 Int_t GetLoGainFirst() const { return fLoGainFirst; }86 Byte_t GetLoGainLast () const { return fLoGainLast ; }87 Float_t GetNumHiGainSamples() const { return fNumHiGainSamples; }88 Float_t GetNumLoGainSamples() const { return fNumLoGainSamples; }89 Float_t GetOffsetLoGain() const { return fOffsetLoGain; }90 Float_t GetResolutionPerPheHiGain() const { return fResolutionPerPheHiGain; }91 Float_t GetResolutionPerPheLoGain() const { return fResolutionPerPheLoGain; }92 UInt_t GetSaturationLimit() const { return fSaturationLimit; }83 UShort_t GetHiGainFirst() const { return fHiGainFirst; } 84 UShort_t GetHiGainLast () const { return fHiGainLast ; } 85 Int_t GetLoGainFirst() const { return fLoGainFirst; } 86 Byte_t GetLoGainLast () const { return fLoGainLast ; } 87 Float_t GetNumHiGainSamples() const { return fNumHiGainSamples; } 88 Float_t GetNumLoGainSamples() const { return fNumLoGainSamples; } 89 Float_t GetOffsetLoGain() const { return fOffsetLoGain; } 90 Float_t GetResolutionPerPheHiGain() const { return fResolutionPerPheHiGain; } 91 Float_t GetResolutionPerPheLoGain() const { return fResolutionPerPheLoGain; } 92 UInt_t GetSaturationLimit() const { return fSaturationLimit; } 93 93 94 94 Bool_t HasLoGain() const { return fLoGainFirst>0 || fLoGainLast>0; } … … 99 99 Float_t SetResolutionPerPheLoGain() const { return fResolutionPerPheLoGain; } 100 100 101 virtual void SetRange( Byte_t hifirst=0, Byte_t hilast=0, Int_t lofirst=0, Byte_t lolast=0);101 virtual void SetRange(UShort_t hifirst=0, UShort_t hilast=0, Int_t lofirst=0, Byte_t lolast=0); 102 102 103 103 void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain ) { fOffsetLoGain = f; }
Note:
See TracChangeset
for help on using the changeset viewer.