Changeset 7810
- Timestamp:
- 07/26/06 20:45:37 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7809 r7810 134 134 - fixed a deprecated conversion from string constant to `char* 135 135 136 * mfbase/MFilterList.cc: 137 - improved warn output 138 139 * msignal/MArrivalTimeCalc2.cc, msignal/MArrivalTimePix.[h,cc], 140 msignal/MExtractFixedWindowPeakSearch.cc, msignal/MExtractSignal.cc, 141 msignal/MExtractSignal2.cc, msignal/MExtractSignal3.cc, 142 msignal/MExtractSignalABcorr.cc, msignal/MExtractTime.cc, 143 msignal/MExtractTimeAndCharge.cc, msignal/MExtractor.cc, 144 msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc: 145 - removed first obsolete argument from SetGainSaturation 146 147 * msignal/MExtractedSignalCam.[h,cc]: 148 - removed obsolete fNdf 149 - increased class version 150 151 * msignal/MExtractedSignalPix.[h,cc]: 152 - removed obsolete fIsLoGainUsed 153 - removed obsolete fChisquare 154 - increased class version 155 - removed obsolete first argument from SetGainSaturation 156 136 157 137 158 -
trunk/MagicSoft/Mars/mfbase/MFilterList.cc
r7804 r7810 218 218 if (fFilters.FindObject(filter)) 219 219 { 220 *fLog << warn << dbginf << "Filter already existing... skipped." << endl;220 *fLog << warn << dbginf << "Filter " << filter << " already existing... skipped." << endl; 221 221 return kTRUE; 222 222 } -
trunk/MagicSoft/Mars/msignal/MArrivalTimeCalc2.cc
r4371 r7810 245 245 246 246 pix.SetArrivalTime(timehi+ Float_t(fHiGainFirst), deltatimehi, timelo + Float_t(fLoGainFirst), deltatimelo); 247 pix.SetGainSaturation(sathi, sat hi, satlo);247 pix.SetGainSaturation(sathi, satlo); 248 248 } 249 249 -
trunk/MagicSoft/Mars/msignal/MArrivalTimePix.cc
r5701 r7810 95 95 } 96 96 97 void MArrivalTimePix::SetGainSaturation(B ool_t sat, Byte_t higain, Byte_t logain)97 void MArrivalTimePix::SetGainSaturation(Byte_t higain, Byte_t logain) 98 98 { 99 100 fNumHiGainSaturated = higain; 101 fNumLoGainSaturated = logain; 99 fNumHiGainSaturated = higain; 100 fNumLoGainSaturated = logain; 102 101 } 103 102 -
trunk/MagicSoft/Mars/msignal/MArrivalTimePix.h
r7353 r7810 26 26 void SetArrivalTime(Float_t sig, Float_t sigerr); 27 27 void SetArrivalTime(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr); 28 void SetGainSaturation(B ool_t sat, Byte_t higain, Byte_t logain);28 void SetGainSaturation(Byte_t higain, Byte_t logain); 29 29 30 30 // Getter -
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.cc
r6115 r7810 486 486 sumlo - pedes*fNumLoGainSamples, pedrms*fSqrtLoGainSamples); 487 487 488 pix.SetGainSaturation(sathi, sat hi, satlo);488 pix.SetGainSaturation(sathi, satlo); 489 489 490 490 // pix.SetNumHiGainSlices(fNumHiGainSamples); -
trunk/MagicSoft/Mars/msignal/MExtractSignal.cc
r7804 r7810 179 179 sumlo - pedes*fNumLoGainSamples, pedrms*fSqrtLoGainSamples); 180 180 181 pix.SetGainSaturation(sathi, sat hi, satlo);181 pix.SetGainSaturation(sathi, satlo); 182 182 183 183 } /* while (pixel.Next()) */ -
trunk/MagicSoft/Mars/msignal/MExtractSignal2.cc
r3763 r7810 250 250 sumlo - pedes*fWindowSizeLoGain, pedrms*fWindowSqrtLoGain); 251 251 252 pix.SetGainSaturation(sathi, sat hi, satlo);252 pix.SetGainSaturation(sathi, satlo); 253 253 } /* while (pixel.Next()) */ 254 254 -
trunk/MagicSoft/Mars/msignal/MExtractSignal3.cc
r3769 r7810 351 351 sumlo - pedes*fWindowSizeLoGain, pedrms*fWindowSqrtLoGain); 352 352 353 pix.SetGainSaturation(sathi, sat hi, satlo);353 pix.SetGainSaturation(sathi, satlo); 354 354 } /* while (pixel.Next()) */ 355 355 -
trunk/MagicSoft/Mars/msignal/MExtractSignalABcorr.cc
r7804 r7810 199 199 sumlo - pedtotlo, pedrms*fSqrtLoGainSamples); 200 200 201 pix.SetGainSaturation(sathi, sat hi, satlo);201 pix.SetGainSaturation(sathi, satlo); 202 202 203 203 } /* while (pixel.Next()) */ -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r7731 r7810 242 242 MExtractedSignalPix &pix = (*fSignals)[pixidx]; 243 243 MArrivalTimePix &tix = (*fArrTime)[pixidx]; 244 pix.SetExtractedSignal(sumhi, deltasumhi, sumlo, deltasumlo);245 pix.SetGainSaturation(sathi, sat hi, satlo);244 pix.SetExtractedSignal(sumhi, deltasumhi, sumlo, deltasumlo); 245 pix.SetGainSaturation(sathi, satlo); 246 246 247 247 tix.SetArrivalTime(timehi, deltatimehi, timelo-fOffsetLoGain, deltatimelo); 248 tix.SetGainSaturation(sathi, sat hi, satlo);248 tix.SetGainSaturation(sathi, satlo); 249 249 250 250 } /* while (pixel.Next()) */ -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
r6332 r7810 452 452 MArrivalTimePix &tix = (*fArrTime)[pixidx]; 453 453 pix.SetExtractedSignal(sumhi, deltasumhi,sumlo, deltasumlo); 454 pix.SetGainSaturation(sathi, sat hi, satlo);454 pix.SetGainSaturation(sathi, satlo); 455 455 456 456 tix.SetArrivalTime(timehi, deltatimehi, timelo-fOffsetLoGain, deltatimelo); 457 tix.SetGainSaturation(sathi, sat hi, satlo);457 tix.SetGainSaturation(sathi, satlo); 458 458 459 459 } /* while (pixel.Next()) */ -
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.cc
r7804 r7810 19 19 ! Author(s): Thomas Bretz 12/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 421 ! Copyright: MAGIC Software Development, 2000-2006 22 22 ! 23 23 ! … … 29 29 // 30 30 // Hold the Extracted Signal information for all pixels in the camera 31 // 32 // Class Version 3: 33 // ---------------- 34 // - fNdf 31 35 // 32 36 ///////////////////////////////////////////////////////////////////////////// … … 51 55 : fFirstUsedSliceHiGain(0), fFirstUsedSliceLoGain(0), 52 56 fLastUsedSliceHiGain(0), fLastUsedSliceLoGain(0), 53 fUsedWindowHiGain(0.), fUsedWindowLoGain(0.) , fNdf(-1)57 fUsedWindowHiGain(0.), fUsedWindowLoGain(0.) 54 58 { 55 59 fName = name ? name : "MExtractedSignalCam"; … … 114 118 } 115 119 120 /* 116 121 Float_t MExtractedSignalCam::GetProb( const Int_t pixidx ) const 117 122 { … … 121 126 return TMath::Prob((*this)[pixidx].GetChisquare(),fNdf); 122 127 } 128 */ 123 129 124 130 void MExtractedSignalCam::Clear(Option_t *o) -
trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h
r5739 r7810 28 28 Float_t fUsedWindowLoGain; // Low Gain FADC extraction window 29 29 30 Int_t fNdf; // Number of degrees of freedom for a possible fit31 32 30 public: 33 34 31 MExtractedSignalCam(const char *name=NULL, const char *title=NULL); 35 32 ~MExtractedSignalCam(); … … 51 48 Float_t GetNumUsedLoGainFADCSlices() const { return fUsedWindowLoGain; } 52 49 53 Float_t GetNdf() const { return fNdf; }54 Float_t GetProb( const Int_t pixidx) const;55 56 50 void SetLogStream ( MLog *lg ); 57 void SetNdf ( Int_t ndf ) { fNdf = ndf; }58 51 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, Float_t winh, 59 52 Byte_t firstl, Byte_t lastl, Float_t winl) … … 73 66 void DrawPixelContent(Int_t num) const; 74 67 75 ClassDef(MExtractedSignalCam, 2) // Storage Container for extracted signals in the camera68 ClassDef(MExtractedSignalCam, 3) // Storage Container for extracted signals in the camera 76 69 }; 77 70 -
trunk/MagicSoft/Mars/msignal/MExtractedSignalPix.cc
r5952 r7810 30 30 // This is the storage container to hold informations about the pedestal 31 31 // (offset) value of one Pixel (PMT). 32 // 33 // Class Version 3: 34 // ---------------- 35 // - fIsLoGainUsed 36 // - fChisquare 32 37 // 33 38 ///////////////////////////////////////////////////////////////////////////// … … 72 77 fExtractedSignalLoGainError = -1; 73 78 74 fLoGainUsed = kFALSE;75 76 79 fNumHiGainSaturated = 0; 77 80 fNumLoGainSaturated = 0; 78 79 fChisquare = -1.;80 81 } 81 82 … … 100 101 } 101 102 102 void MExtractedSignalPix::SetGainSaturation(B ool_t sat, Byte_t higain, Byte_t logain)103 void MExtractedSignalPix::SetGainSaturation(Byte_t higain, Byte_t logain) 103 104 { 104 105 fLoGainUsed = sat; 106 fNumHiGainSaturated = higain; 107 fNumLoGainSaturated = logain; 105 fNumHiGainSaturated = higain; 106 fNumLoGainSaturated = logain; 108 107 } 109 108 … … 112 111 *fLog << " Signal: " << fExtractedSignalHiGain 113 112 << " +- " << fExtractedSignalHiGainError 114 << " LoGain? " << fLoGainUsed115 113 << " Nr. Sat. Hi Gain: " << fNumHiGainSaturated 116 114 << " Nr. Sat. Lo Gain: " << fNumLoGainSaturated -
trunk/MagicSoft/Mars/msignal/MExtractedSignalPix.h
r5739 r7810 15 15 Float_t fExtractedSignalLoGainError; // error of the mean value of the extracted signal 16 16 17 Float_t fChisquare; // Chi-square of a possible fit the pulse18 19 Bool_t fLoGainUsed;20 17 Byte_t fNumHiGainSaturated; 21 18 Byte_t fNumLoGainSaturated; … … 30 27 void SetExtractedSignal( Float_t sig, Float_t sigerr); 31 28 void SetExtractedSignal( Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr); 32 void SetGainSaturation ( Bool_t sat, Byte_t higain, Byte_t logain); 33 void SetChisquare ( Float_t chi2 ) { fChisquare = chi2; } 29 void SetGainSaturation ( Byte_t higain, Byte_t logain); 34 30 35 31 // Getter … … 43 39 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; } 44 40 45 Float_t GetChisquare() const { return fChisquare; } 46 47 Bool_t IsLoGainUsed() const { return fLoGainUsed; } 41 Bool_t IsLoGainUsed() const { return fNumHiGainSaturated>0; } 48 42 Bool_t IsValid() const; 49 43 50 ClassDef(MExtractedSignalPix, 2) // Storage Container for Extracted Signal information of one pixel44 ClassDef(MExtractedSignalPix, 3) // Storage Container for Extracted Signal information of one pixel 51 45 }; 52 46 -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r7804 r7810 326 326 sumlo - pedes*fNumLoGainSamples, pedrms*fSqrtLoGainSamples); 327 327 328 pix.SetGainSaturation(sathi, sat hi, satlo);328 pix.SetGainSaturation(sathi, satlo); 329 329 330 330 } /* while (pixel.Next()) */
Note:
See TracChangeset
for help on using the changeset viewer.