Changeset 8633 for trunk/MagicSoft/Mars
- Timestamp:
- 07/14/07 01:07:05 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8632 r8633 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 22 2007/07/14 Thomas Bretz 23 24 * mpedestal/MPedestalSubtract.[h,cc]: 25 - fixed the buggy Memcpy function introduced with the last change 26 07/06/17 ;( This bug was effecting the old FADC data only, the 27 MUX data were (by chance) correctly copied 28 29 * mpedestal/MExtractPedestal.cc: 30 - some cosmetics 31 32 * mfilter/MFMagicCuts.cc: 33 - changed some comments 34 35 * mjobs/MJCut.cc: 36 - some cosmetics. Simplified the setting of the scale factor 37 20 38 21 39 -
trunk/MagicSoft/Mars/mfilter/MFMagicCuts.cc
r8624 r8633 368 368 const Double_t slope = fMatrix ? GetVal(kESlope) : fHilExt->GetSlopeLong()/TMath::Sign(fMm2Deg, fHilSrc->GetCosDeltaAlpha()); 369 369 370 370 // Do Ghostbusting with slope and m3l 371 371 const Double_t sign1 = (dist-c[9])*c[8]-slope; 372 372 const Double_t sign2 = m3long-c[5]; 373 374 // Calculate disp including sign 373 375 const Double_t p = sign1<0 || sign2<0 ? -disp : disp; 374 376 -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8618 r8633 635 635 plist.AddToList(&fit); 636 636 if (set.IsWobbleMode()) 637 { 638 fit.SetScaleMode(MAlphaFitter::kNone); 639 fit.SetScaleUser(1./fNumOffSourcePos); 640 } 637 fit.SetScaleUser(1./fNumOffSourcePos); // includes fit.SetScaleMode(MAlphaFitter::kUserScale); 641 638 642 639 MHAlpha *halphaoff = CreateNewHist(plist, "Off"); -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r8582 r8633 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.3 3 2007-06-19 09:25:39tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.34 2007-07-14 00:02:24 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 714 714 CalcSums(pixel, offset, ab[0], ab[1]); 715 715 716 fNumEventsUsed[idx]++;717 718 716 if (fIntermediateStorage) 719 717 (*fPedestalsInter)[idx].Set(sum, 0, 0, fNumEventsUsed[idx]); … … 723 721 fSumx[idx] += sum; 724 722 fSumx2[idx] += sqrsum; 723 724 fNumEventsUsed[idx]++; 725 725 726 726 if (!fExtractor && pixel.IsABFlagValid()) -
trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.cc
r8571 r8633 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1. 7 2007-06-17 14:51:55tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1.8 2007-07-14 00:02:24 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 129 129 } 130 130 131 void MPedestalSubtract::Memcpy(void *dest, Int_t offset,void *src, Int_t cnt) const131 void MPedestalSubtract::Memcpy(void *dest, void *src, Int_t cnt) const 132 132 { 133 133 if (fRawEvt->GetNumBytesPerSample()==2) 134 memcpy((UShort_t*)dest +offset, src, cnt*2);134 memcpy((UShort_t*)dest, src, cnt*2); 135 135 else 136 136 { 137 const Byte_t *b = (Byte_t*)src +offset;137 const Byte_t *b = (Byte_t*)src; 138 138 for (USample_t *ptr=(USample_t*)dest; ptr<(USample_t*)dest+cnt; ptr++) 139 139 *ptr = *b++; … … 171 171 172 172 // copy hi- and lo-gains samples together 173 Memcpy(sample, 0,pixel.GetHiGainSamples(), numh);174 Memcpy(sample ,numh, pixel.GetLoGainSamples(), numl);173 Memcpy(sample, pixel.GetHiGainSamples(), numh); 174 Memcpy(sample+numh, pixel.GetLoGainSamples(), numl); 175 175 176 176 // start of destination array, end of hi-gain destination array -
trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.h
r8565 r8633 26 26 Int_t Process(); 27 27 28 void Memcpy(void *sample, Int_t offset,void *ptr, Int_t cnt) const;28 void Memcpy(void *sample, void *ptr, Int_t cnt) const; 29 29 30 30 public:
Note:
See TracChangeset
for help on using the changeset viewer.