Changeset 1052 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 11/08/01 10:57:01 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r859 r1052 56 56 ClassImp(MRawEvtPixelIter); 57 57 58 MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat) 59 { 60 fNumHiGainSamples = dat->GetNumHiGainSamples(); 61 fNumLoGainSamples = dat->GetNumLoGainSamples(); 62 63 Reset(); 64 } 65 58 66 // -------------------------------------------------------------------------- 59 67 // … … 92 100 fNumLoGainEntry++; 93 101 fLoGainId++; 94 fLoGainPos += f Data->GetNumLoGainSamples();102 fLoGainPos += fNumLoGainSamples; 95 103 } 96 104 … … 100 108 fNumHiGainEntry++; 101 109 fHiGainId++; 102 fHiGainPos += f Data->GetNumHiGainSamples();110 fHiGainPos += fNumHiGainSamples; 103 111 104 112 // … … 125 133 fHiGainId = fData->fHiGainPixId->GetArray()-1; 126 134 fLoGainId = fData->fLoGainPixId->GetArray()-1; 127 fHiGainPos = fData->fHiGainFadcSamples->GetArray()-f Data->GetNumHiGainSamples();128 fLoGainPos = fData->fLoGainFadcSamples->GetArray()-f Data->GetNumLoGainSamples();135 fHiGainPos = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples; 136 fLoGainPos = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples; 129 137 } 130 138 … … 145 153 // returns the sum of all hi gain fadc samples of the actual pixel 146 154 // 147 ULong_t MRawEvtPixelIter::GetSumHiGain FadcSamples() const155 ULong_t MRawEvtPixelIter::GetSumHiGainSamples() const 148 156 { 149 157 // … … 151 159 // 152 160 Byte_t *ptr = fHiGainPos; 153 const Byte_t *end = ptr + f Data->GetNumHiGainSamples();161 const Byte_t *end = ptr + fNumHiGainSamples; 154 162 155 163 ULong_t sum=0; … … 166 174 // if no lo gain information is available 0 is returned. 167 175 // 168 ULong_t MRawEvtPixelIter::GetSumLoGain FadcSamples() const176 ULong_t MRawEvtPixelIter::GetSumLoGainSamples() const 169 177 { 170 178 // … … 175 183 176 184 Byte_t *ptr = fLoGainPos; 177 const Byte_t *end = ptr + f Data->GetNumLoGainSamples();185 const Byte_t *end = ptr + fNumLoGainSamples; 178 186 179 187 ULong_t sum=0; -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r1018 r1052 28 28 UShort_t fNumEntry; 29 29 30 Byte_t fNumHiGainSamples; //! 31 Byte_t fNumLoGainSamples; //! 32 30 33 MRawEvtData *fData; //! pointer to object which we are iterating 31 34 32 35 public: 33 MRawEvtPixelIter(MRawEvtData *dat) : fData(dat) 34 { 35 Reset(); 36 } 36 MRawEvtPixelIter(MRawEvtData *dat); 37 37 38 38 MRawEvtData *Next(); … … 66 66 Byte_t GetNumPixels() const; 67 67 68 Byte_t *GetHiGain FadcSamples() const68 Byte_t *GetHiGainSamples() const 69 69 { 70 70 // … … 77 77 } 78 78 79 ULong_t GetSumHiGain FadcSamples() const;79 ULong_t GetSumHiGainSamples() const; 80 80 81 81 Bool_t HasLoGain() const … … 87 87 } 88 88 89 Byte_t *GetLoGain FadcSamples() const89 Byte_t *GetLoGainSamples() const 90 90 { 91 91 // … … 96 96 } 97 97 98 ULong_t GetSumLoGainFadcSamples() const; 98 ULong_t GetSumLoGainSamples() const; 99 99 100 100 101 void Reset(); -
trunk/MagicSoft/Mars/mraw/Makefile
r546 r1052 47 47 include ../Makefile.rules 48 48 49 clean: rm lib rmcint rmobjs rmcore rmbin49 clean: rmcint rmobjs rmcore rmlib 50 50 51 51 mrproper: clean rmbak
Note:
See TracChangeset
for help on using the changeset viewer.