Changeset 8304 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 02/04/07 15:33:08 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc
r8158 r8304 150 150 } 151 151 152 void MExtractBlindPixel::SetRange(Byte_t hifirst, Byte_t hilast, Byte_t lofirst, Byte_t lolast)152 void MExtractBlindPixel::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast) 153 153 { 154 154 -
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h
r8158 r8304 88 88 89 89 void SetRange ( const Byte_t hifirst=0, const Byte_t hilast=0, 90 const Byte_tlofirst=0, const Byte_t lolast=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/MagicSoft/Mars/msignal/MExtractPINDiode.cc
r8155 r8304 145 145 // - fSqrtLoGainSamples to: 0. 146 146 // 147 void MExtractPINDiode::SetRange(Byte_t hifirst, Byte_t hilast, Byte_t lofirst, Byte_t lolast)147 void MExtractPINDiode::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast) 148 148 { 149 149 -
trunk/MagicSoft/Mars/msignal/MExtractPINDiode.h
r7043 r8304 56 56 57 57 // Setters 58 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);58 void SetRange(Byte_t hifirst=0, Byte_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/MagicSoft/Mars/msignal/MExtractTime.cc
r8154 r8304 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTime.cc,v 1.2 2 2006-10-24 08:24:52tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTime.cc,v 1.23 2007-02-04 15:30:16 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 86 86 87 87 const TString MExtractTime::fgNameTimeCam = "MArrivalTimeCam"; 88 88 89 // -------------------------------------------------------------------------- 89 90 // … … 109 110 } 110 111 111 112 113 112 // -------------------------------------------------------------------------- 114 113 // … … 132 131 } 133 132 134 // --------------------------------------------------------------------------135 //136 // The ReInit calls:137 // - MExtractor::ReInit()138 //139 // Call:140 // - MArrivalTimeCam::SetUsedFADCSlices(fHiGainFirst, fHiGainLast, fNumHiGainSamples,141 // fLoGainFirst, fLoGainLast, fNumLoGainSamples);142 /*143 Bool_t MExtractTime::ReInit(MParList *pList)144 {145 if (!MExtractor::ReInit(pList))146 return kFALSE;147 148 // if (fArrTime)149 // fArrTime->SetUsedFADCSlices(fHiGainFirst, fHiGainLast+fHiLoLast, fLoGainFirst, fLoGainLast);150 151 return kTRUE;152 }153 */154 // --------------------------------------------------------------------------155 //156 // Calculate the integral of the FADC time slices and store them as a new157 // pixel in the MArrivalTimeCam container.158 /*159 Int_t MExtractTime::Process()160 {161 162 163 MRawEvtPixelIter pixel(fRawEvt);164 165 while (pixel.Next())166 {167 //168 // Find signal in hi- and lo-gain169 //170 Float_t timehi=0., deltatimehi=0.;171 Byte_t sathi=0;172 173 const Int_t pixid = pixel.GetPixelId();174 const MPedestalPix &ped = (*fPedestals)[pixid];175 MArrivalTimePix &pix = (*fArrTime)[pixid];176 177 FindTimeHiGain(pixel.GetHiGainSamples()+fHiGainFirst, timehi, deltatimehi, sathi, ped);178 179 Float_t timelo=0., deltatimelo=0.;180 Byte_t satlo=0;181 182 if ((sathi)&&pixel.HasLoGain())183 FindTimeLoGain(pixel.GetLoGainSamples()+fLoGainFirst, timelo, deltatimelo, satlo, ped);184 185 pix.SetArrivalTime(timehi, deltatimehi, timelo-fOffsetLoGain, deltatimelo);186 pix.SetGainSaturation(sathi, satlo);187 188 }189 190 fArrTime->SetReadyToSave();191 192 return kTRUE;193 }*/194 133 195 134 void MExtractTime::Print(Option_t *o) const 196 135 { 197 // if (IsA()==MExtractTime::Class())198 // *fLog << GetDescriptor() << ":" << endl;199 136 MExtractor::Print(o); 200 137 *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r8297 r8304 30 30 MExtractTimeAndCharge(const char *name=NULL, const char *title=NULL); 31 31 32 Int_t GetWindowSizeHiGain () const { return fWindowSizeHiGain; } 33 Int_t GetWindowSizeLoGain () const { return fWindowSizeLoGain; } 34 Byte_t GetLoGainSwitch () const { return fLoGainSwitch; } 32 Int_t GetWindowSizeHiGain () const { return fWindowSizeHiGain; } 33 Int_t GetWindowSizeLoGain () const { return fWindowSizeLoGain; } 34 Float_t GetLoGainStartShift () const { return fLoGainStartShift; } 35 Byte_t GetLoGainSwitch () const { return fLoGainSwitch; } 35 36 36 37 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain; } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r8260 r8304 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeDigitalFilter.cc,v 1.7 6 2007-01-16 14:14:37tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeDigitalFilter.cc,v 1.77 2007-02-04 15:30:16 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 86 86 const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainFirst = 0; 87 87 const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainLast = 16; 88 const Byte_tMExtractTimeAndChargeDigitalFilter::fgLoGainFirst = 1;88 const Int_t MExtractTimeAndChargeDigitalFilter::fgLoGainFirst = 1; 89 89 const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainLast = 14; 90 90 const Int_t MExtractTimeAndChargeDigitalFilter::fgBinningResolutionHiGain = 10; … … 137 137 } 138 138 139 if (windowl > fLoGainLast-fLoGainFirst+1)139 if (windowl > (int)fLoGainLast-fLoGainFirst+1) 140 140 { 141 141 *fLog << err << "ERROR - The new hi-gain window size exceeds the extraction range." << endl; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r8278 r8304 17 17 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 0) 18 18 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to:14) 19 static const Byte_tfgLoGainFirst; //! Default for fLoGainFirst (now set to: 3)19 static const Int_t fgLoGainFirst; //! Default for fLoGainFirst (now set to: 3) 20 20 static const Byte_t fgLoGainLast; //! Default for fLoGainLast (now set to:14) 21 21 static const Int_t fgBinningResolutionHiGain; //! Default for fBinningResolutionHiGain (now set to: 10) -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r8297 r8304 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.6 5 2007-02-03 20:07:52tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.66 2007-02-04 15:30:16 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 158 158 const Byte_t MExtractTimeAndChargeSpline::fgHiGainFirst = 0; 159 159 const Byte_t MExtractTimeAndChargeSpline::fgHiGainLast = 14; 160 const Byte_tMExtractTimeAndChargeSpline::fgLoGainFirst = 1;160 const Int_t MExtractTimeAndChargeSpline::fgLoGainFirst = 1; 161 161 const Byte_t MExtractTimeAndChargeSpline::fgLoGainLast = 14; 162 162 const Float_t MExtractTimeAndChargeSpline::fgResolution = 0.05; … … 205 205 // explicit call to SetChargeType(). 206 206 // 207 void MExtractTimeAndChargeSpline::SetRange(Byte_t hifirst, Byte_t hilast, Byte_t lofirst, Byte_t lolast) 208 { 209 207 void MExtractTimeAndChargeSpline::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast) 208 { 210 209 MExtractor::SetRange(hifirst, hilast, lofirst, lolast); 211 210 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
r8165 r8304 17 17 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 2) 18 18 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to: 14) 19 static const Byte_tfgLoGainFirst; //! Default for fLoGainFirst (now set to: 2)19 static const Int_t fgLoGainFirst; //! Default for fLoGainFirst (now set to: 2) 20 20 static const Byte_t fgLoGainLast; //! Default for fLoGainLast (now set to: 14) 21 21 static const Float_t fgResolution; //! Default for fResolution (now set to: 0.003) … … 60 60 Float_t GetFallTimeHiGain() const { return fFallTimeHiGain; } 61 61 62 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0 );62 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Int_t lofirst=0, Byte_t lolast=0 ); 63 63 64 64 void SetResolution(const Float_t f=fgResolution) { fResolution = f; } -
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.cc
r7876 r8304 34 34 // - fNdf 35 35 // 36 // Class Version 4: 37 // ---------------- 38 // - Byte_t fFirstUsedSliceLoGain; // First Low Gain FADC used for extraction (incl.) 39 // + Int_t fFirstUsedSliceLoGain; // First Low Gain FADC used for extraction (incl.) 40 // 36 41 ///////////////////////////////////////////////////////////////////////////// 37 42 #include "MExtractedSignalCam.h" -
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h
r7810 r8304 20 20 21 21 Byte_t fFirstUsedSliceHiGain; // First High Gain FADC used for extraction (incl.) 22 Byte_tfFirstUsedSliceLoGain; // First Low Gain FADC used for extraction (incl.)22 Int_t fFirstUsedSliceLoGain; // First Low Gain FADC used for extraction (incl.) 23 23 24 24 Byte_t fLastUsedSliceHiGain; // Last High Gain FADC used for extraction (incl.) … … 40 40 41 41 Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; } 42 Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; } 43 42 Int_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; } 44 43 Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; } 45 44 Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; } … … 50 49 void SetLogStream ( MLog *lg ); 51 50 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, Float_t winh, 52 Byte_tfirstl, Byte_t lastl, Float_t winl)51 Int_t firstl, Byte_t lastl, Float_t winl) 53 52 { 54 53 fFirstUsedSliceHiGain = firsth; … … 66 65 void DrawPixelContent(Int_t num) const; 67 66 68 ClassDef(MExtractedSignalCam, 3) // Storage Container for extracted signals in the camera67 ClassDef(MExtractedSignalCam, 4) // Storage Container for extracted signals in the camera 69 68 }; 70 69 -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r8258 r8304 141 141 } 142 142 143 void MExtractor::SetRange(Byte_t hifirst, Byte_t hilast, Byte_t lofirst, Byte_t lolast)143 void MExtractor::SetRange(Byte_t hifirst, Byte_t hilast, Int_t lofirst, Byte_t lolast) 144 144 { 145 145 fHiGainFirst = hifirst; … … 397 397 { 398 398 Byte_t hf = fHiGainFirst; 399 Byte_tlf = fLoGainFirst;399 Int_t lf = fLoGainFirst; 400 400 Byte_t hl = fHiGainLast; 401 401 Byte_t ll = fLoGainLast; -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r8258 r8304 48 48 Byte_t fHiGainFirst; // First FADC slice nr. to extract the High Gain signal 49 49 Byte_t fHiGainLast; // Last FADC slice nr. to extract the High Gain signal 50 Byte_tfLoGainFirst; // First FADC slice nr. to extract the Low Gain signal50 Int_t fLoGainFirst; // First FADC slice nr. to extract the Low Gain signal 51 51 Byte_t fLoGainLast; // Last FADC slice nr. to extract the Low Gain signal 52 52 … … 87 87 Byte_t GetHiGainFirst() const { return fHiGainFirst; } 88 88 Byte_t GetHiGainLast () const { return fHiGainLast ; } 89 Byte_tGetLoGainFirst() const { return fLoGainFirst; }89 Int_t GetLoGainFirst() const { return fLoGainFirst; } 90 90 Byte_t GetLoGainLast () const { return fLoGainLast ; } 91 91 Float_t GetNumHiGainSamples() const { return fNumHiGainSamples; } … … 102 102 Float_t SetResolutionPerPheLoGain() const { return fResolutionPerPheLoGain; } 103 103 104 virtual void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);104 virtual void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Int_t lofirst=0, Byte_t lolast=0); 105 105 106 106 void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain ) { fOffsetLoGain = f; }
Note:
See TracChangeset
for help on using the changeset viewer.