Changeset 3016
- Timestamp:
- 02/04/04 15:04:53 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3015 r3016 16 16 - MPedCalcPedRun does nothing any more (except from what is was 17 17 doing before) 18 19 * manalysis/MExtractSignal.cc 20 - remove uncommented code 21 18 22 19 23 -
trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc
r3010 r3016 122 122 } 123 123 124 void MExtractSignal::FindSignal(Byte_t *ptr, Int_t size, Int_t &sum, Byte_t &sat /*, Byte_t* &max*/) const124 void MExtractSignal::FindSignal(Byte_t *ptr, Int_t size, Int_t &sum, Byte_t &sat) const 125 125 { 126 126 Byte_t *end = ptr + size; … … 128 128 sum = 0; 129 129 sat = 0; 130 //max = ptr; 130 131 131 while (ptr<end) 132 132 { 133 133 sum += *ptr; 134 135 //if (*ptr>*max)136 // max = ptr;137 134 138 135 if (*ptr++ >= fSaturationLimit) … … 148 145 Int_t MExtractSignal::Process() 149 146 { 147 150 148 MRawEvtPixelIter pixel(fRawEvt); 151 149 fSignals->Clear(); … … 157 155 Int_t sumhi, sumlo; 158 156 Byte_t sathi, satlo; 159 //Byte_t *maxhi, *maxlo; 160 161 FindSignal(pixel.GetHiGainSamples()+fHiGainFirst, fNumHiGainSamples, sumhi, sathi);//, maxhi); 162 FindSignal(pixel.GetLoGainSamples()+fLoGainFirst, fNumLoGainSamples, sumlo, satlo);//, maxlo); 157 158 FindSignal(pixel.GetHiGainSamples()+fHiGainFirst, fNumHiGainSamples, sumhi, sathi); 159 FindSignal(pixel.GetLoGainSamples()+fLoGainFirst, fNumLoGainSamples, sumlo, satlo); 163 160 164 161 if (satlo) … … 177 174 178 175 pix.SetGainSaturation(sathi, sathi, satlo); 179 180 /*181 const Byte_t midhi = maxhi-pixel.GetHiGainSamples();182 const Byte_t midlo = maxlo-pixel.GetLoGainSamples();183 184 fArrivalTime->SetTime(pixid, sathi?midlo:midhi);185 */186 176 187 177 } /* while (pixel.Next()) */
Note:
See TracChangeset
for help on using the changeset viewer.