Changeset 8633 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 07/14/07 01:07:05 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.