Changeset 11568 for trunk/Mars/msignal


Ignore:
Timestamp:
07/24/11 18:33:54 (13 years ago)
Author:
tbretz
Message:
Changed fHiGainFirst/fHiGainLast from Byte_t to UShort_t to support the DRS with 1024 samples.
Location:
trunk/Mars/msignal
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msignal/MExtractBlindPixel.cc

    r8519 r11568  
    150150}
    151151
    152 void MExtractBlindPixel::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)
     152void MExtractBlindPixel::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast)
    153153{
    154154
  • trunk/Mars/msignal/MExtractBlindPixel.h

    r8304 r11568  
    8787//  void SetNumBlindPixels( const Int_t   num=1 )  { fNumBlindPixels = num;   }
    8888 
    89   void SetRange         ( const Byte_t  hifirst=0, const Byte_t hilast=0,
    90                           const Int_t   lofirst=0, const Byte_t lolast=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 );
    9191  void SetResolution    ( const Float_t f=fgResolution       )  { fResolution     = f;     }
    9292 
  • trunk/Mars/msignal/MExtractPINDiode.cc

    r8614 r11568  
    146146// - fSqrtLoGainSamples to: 0.
    147147// 
    148 void MExtractPINDiode::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)
     148void MExtractPINDiode::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast)
    149149{
    150150
  • trunk/Mars/msignal/MExtractPINDiode.h

    r8304 r11568  
    5656
    5757  // 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);
    5959  void SetPINDiodeIdx  ( const UInt_t idx=fgPINDiodeIdx    ) { fPINDiodeIdx   = idx; }
    6060  void SetLowerFitLimit( const Byte_t lim=fgLowerFitLimit  ) { fLowerFitLimit = lim; }
  • trunk/Mars/msignal/MExtractTimeAndCharge.cc

    r10166 r11568  
    237237    const UInt_t satlim = fSaturationLimit*fRunHeader->GetScale();
    238238
     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
    239243    MRawEvtPixelIter pixel(fRawEvt);
    240244    while (pixel.Next())
     
    251255        Float_t sumhi =0., deltasumhi =-1; // Set hi-gain of MExtractedSignalPix valid
    252256        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 have
    255         // more than one saturating slice
    256         const Int_t rangehi = fHiGainLast - fHiGainFirst + 1;
    257257
    258258        if (numsathi<2)
  • trunk/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r10166 r11568  
    201201// explicit call to SetChargeType().
    202202//
    203 void MExtractTimeAndChargeSpline::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)
     203void MExtractTimeAndChargeSpline::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast)
    204204{
    205205  MExtractor::SetRange(hifirst, hilast, lofirst, lolast);
     
    347347    s.GetTime(time, dtime);
    348348    s.GetSignal(sum, dsum);
    349 
    350349}
    351350
  • trunk/Mars/msignal/MExtractTimeAndChargeSpline.h

    r8478 r11568  
    6161    Float_t GetFallTimeHiGain() const { return fFallTimeHiGain; }
    6262
    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 );
    6464
    6565    void SetResolution(const Float_t f=fgResolution)  { fResolution  = f;  }
  • trunk/Mars/msignal/MExtractor.cc

    r9069 r11568  
    147147}
    148148
    149 void MExtractor::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast)
     149void MExtractor::SetRange(UShort_t hifirst, UShort_t hilast, Int_t lofirst, Byte_t lolast)
    150150{
    151151    fHiGainFirst = hifirst;
     
    303303Int_t MExtractor::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    304304{
    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;
    309309
    310310    Bool_t rc = kFALSE;
  • trunk/Mars/msignal/MExtractor.h

    r8907 r11568  
    4343  MPedestalSubtractedEvt *fSignal;         //!
    4444
    45   Byte_t  fHiGainFirst;                   // First FADC slice nr. to extract the High Gain signal
    46   Byte_t  fHiGainLast;                    // Last FADC slice nr. to extract the High Gain signal
     45  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
    4747  Int_t    fLoGainFirst;                   // First FADC slice nr. to extract the Low Gain signal
    4848  Byte_t   fLoGainLast;                    // Last FADC slice nr. to extract the Low Gain signal
     
    8181 
    8282  // getter
    83   Byte_t GetHiGainFirst()      const { return fHiGainFirst;      }
    84   Byte_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; }
     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; }
    9393
    9494  Bool_t  HasLoGain() const { return fLoGainFirst>0 || fLoGainLast>0; }
     
    9999  Float_t SetResolutionPerPheLoGain() const { return fResolutionPerPheLoGain; }
    100100
    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);
    102102
    103103  void SetOffsetLoGain    ( const Float_t  f=fgOffsetLoGain          ) { fOffsetLoGain     = f;    }
Note: See TracChangeset for help on using the changeset viewer.