Changeset 8500
- Timestamp:
- 05/11/07 19:30:04 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8499 r8500 89 89 - removed data members fPedestal and fPedestalsIn respectively, 90 90 and all referencing functions because it was never used at all 91 92 * mextralgo/MExtralgoDigitalFilter.[h,cc], 93 mextralgo/MExtralgoSpline.cc 94 msignal/MExtractTimeAndChargeDigitalFilter.cc: 95 - made the noise extraction completely random and automatic 96 - gave the noise extraction completely into the hand of 97 the extractors 91 98 92 99 -
trunk/MagicSoft/Mars/NEWS
r8490 r8500 23 23 simplified the process of producing several movies from a single 24 24 sequence with different setup. 25 26 - callisto: The extraction of the pedestal with the extractor was 27 not random. It seems that extracting at one position is still biased 28 (for example in the first or last slices we could still suffer from 29 switching noise) Now it is completely random. 25 30 26 31 - callisto: In MPedCalcPedRun (which is the pedestal extraction from -
trunk/MagicSoft/Mars/mextralgo/MExtralgoDigitalFilter.cc
r8218 r8500 31 31 #include "MExtralgoDigitalFilter.h" 32 32 33 #include <TRandom.h> 34 33 35 using namespace std; 34 36 35 Float_t MExtralgoDigitalFilter::ExtractNoise( Int_t iter) const37 Float_t MExtralgoDigitalFilter::ExtractNoise() const 36 38 { 37 return Eval(fWeightsAmp, 0, iter-fWeightsPerBin/2); 39 const Int_t pos = gRandom->Integer(fNum-fWindowSize+1); 40 const Int_t frac = gRandom->Integer(fWeightsPerBin); 41 42 return Eval(fWeightsAmp, pos, frac-fWeightsPerBin/2); 38 43 } 39 44 -
trunk/MagicSoft/Mars/mextralgo/MExtralgoDigitalFilter.h
r8154 r8500 161 161 void GetTime(Float_t &sig, Float_t &dsig) const { sig=fTime; dsig=fTimeDev; } 162 162 163 Float_t ExtractNoise( Int_t iter) const;163 Float_t ExtractNoise() const; 164 164 void Extract(Int_t maxpos=-1); 165 165 -
trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc
r8480 r8500 225 225 } 226 226 227 Float_t MExtralgoSpline::ExtractNoise( /*Int_t iter*/)227 Float_t MExtralgoSpline::ExtractNoise() 228 228 { 229 229 if (fNum<5) 230 230 return 0; 231 231 232 // FIXME: Shell we keep the extraction inside one slice233 // or randomize it along the extraction window?234 const Float_t nsx = gRandom->Uniform(); //iter * fResolution;235 236 232 if (fExtractionType == kAmplitude) 237 return Eval(2, nsx); 233 { 234 const Int_t pos = gRandom->Integer(fNum-1); 235 const Float_t nsx = gRandom->Uniform(); 236 return Eval(pos, nsx); 237 } 238 238 else 239 return CalcIntegral(2 + nsx); 239 { 240 const Float_t pos = gRandom->Uniform(fNum-1-fRiseTime-fFallTime)+fRiseTime; 241 return CalcIntegral(pos); 242 } 240 243 } 241 244 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r8304 r8500 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeDigitalFilter.cc,v 1.7 7 2007-02-04 15:30:16tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeDigitalFilter.cc,v 1.78 2007-05-11 18:29:42 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 305 305 if (IsNoiseCalculation()) 306 306 { 307 sum = df.ExtractNoise( gRandom->Integer(fBinningResolutionHiGain));307 sum = df.ExtractNoise(); 308 308 return; 309 309 } … … 328 328 if (IsNoiseCalculation()) 329 329 { 330 sum = df.ExtractNoise( gRandom->Integer(fBinningResolutionHiGain));330 sum = df.ExtractNoise(); 331 331 return; 332 332 }
Note:
See TracChangeset
for help on using the changeset viewer.