Changeset 3018
- Timestamp:
- 02/04/04 16:24:10 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3017 r3018 5 5 -*-*- END OF LINE -*-*- 6 6 7 2004/02/04: Thomas Bretz 8 9 * manalysis/MExtractSignal2.cc: 10 - don't allow odd numbers for the window size 11 12 * mfilter/MFilterList.cc: 13 - corrected a wrong logging message 14 15 * mmain/MBrowser.cc: 16 - added '/data/MAGIC' as shortcut in the combo box 17 18 * mraw/MRawEvtPixelIter.cc: 19 - optimized calculation of MaxIdx 20 21 22 7 23 2004/02/03: Abelardo Moralejo 8 24 … … 10 26 - removed unnecessary variables BinsHigh, BinsLow 11 27 28 29 12 30 2004/02/03: Markus Gaug 13 31 14 * manalysis/MPedestalCam.[h,cc] 15 * manalysis/MPedestalPix.[h,cc] 16 * manalysis/MPedCalcPedRun.[h,cc] 17 * manalysis/MHPedestalPixel.[h,cc] 18 * macros/calibration.C 32 * manalysis/MPedestalCam.[h,cc], manalysis/MPedestalPix.[h,cc], 33 manalysis/MPedCalcPedRun.[h,cc], manalysis/MHPedestalPixel.[h,cc], 34 macros/calibration.C: 19 35 - histograms are now filled with MFillH as proposed and coded by 20 36 Thomas Bretz. Some modifications had to be done, however. … … 34 50 remove MHPedestalPixel 35 51 36 * manalysis/MCalibrationPix.[h,cc] 37 * manalysis/MHCalibrationPixel.[h,cc] 38 * manalysis/MCalibrationCam.cc 39 * macros/calibration.C 52 * manalysis/MCalibrationPix.[h,cc], manalysis/MHCalibrationPixel.[h,cc], 53 manalysis/MCalibrationCam.cc, macros/calibration.C: 40 54 - now split completely absolute and relative times. Absolute 41 55 times are not fitted, but their histogram mean and rms are 42 56 returned. 57 43 58 44 59 -
trunk/MagicSoft/Mars/manalysis/MExtractSignal2.cc
r3003 r3018 85 85 fLoGainFirst = first; 86 86 87 fWindow = window; 88 87 fWindow = window & ~1; 89 88 fWindowSqrt = TMath::Sqrt((Float_t)fWindow); 89 90 if (fWindow==window) 91 return; 92 93 *fLog << warn << "MExtractSignal2::SetRange - Window size set to even " << fWindow << endl; 90 94 } 91 95 -
trunk/MagicSoft/Mars/mfilter/MFilterList.cc
r2984 r3018 188 188 189 189 if (fFilters.FindObject(name)) 190 *fLog << warn << dbginf << "'" << name << "' exists in List already... skipped." << endl;190 *fLog << warn << "MFilterList::AddToList - '" << name << "' exists in List already..." << endl; 191 191 192 192 *fLog << inf << "Adding " << name << " to " << GetName() << "... " << flush; -
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r2173 r3018 136 136 frame->AddFrame(dir, laydir); 137 137 138 const TGPicture *pic0 = fList->GetPicture("magic_t.xpm"); 139 TGTReeLBEntry *entry = new TGTreeLBEntry(dir->GetListBox()->GetContainer(), 140 new TGString("/data/MAGIC"), pic0, 6000, 141 new TGString("/data/MAGIC")); 142 TGLayoutHints *laylb = new TGLayoutHints(kLHintsLeft|kLHintsTop, 14, 0, 0, 0); 143 dir->AddEntry(entry, laylb); 144 fList->Add(laylb); 145 fList->Add(entry); 146 138 147 // 139 148 // Get the three picturs from the system (must be deleted by FreePicture) -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2909 r3018 217 217 Byte_t MRawEvtPixelIter::GetIdxMaxHiGainSample() const 218 218 { 219 Byte_t max = 0; 220 Byte_t maxi = 0; 221 222 for (int i=0; i<fNumHiGainSamples; i++) 223 if (fHiGainPos[i]>max) 224 { 225 max = fHiGainPos[i]; 226 maxi = i; 227 } 228 229 return maxi; 219 Byte_t *ptr = fHiGainPos+1; 220 Byte_t *max = fHiGainPos; 221 const Byte_t *end = ptr + fNumHiGainSamples; 222 223 do if (*ptr>*max) max = ptr; 224 while (++ptr != end); 225 226 return max-fHiGainPos; 230 227 } 231 228 … … 241 238 return -1; // means: not found 242 239 243 Byte_t max = 0; 244 Byte_t maxi = 0; 245 246 for (int i=fNumLoGainSamples-1; i>=0; i--) 247 if (fLoGainPos[i]>max) 248 { 249 max = fLoGainPos[i]; 250 maxi = i; 251 } 252 253 return maxi; 240 Byte_t *ptr = fLoGainPos+1; 241 Byte_t *max = fLoGainPos; 242 const Byte_t *end = ptr + fNumLoGainSamples; 243 244 do if (*ptr>*max) max = ptr; 245 while (++ptr != end); 246 247 return max-fLoGainPos; 254 248 } 255 249
Note:
See TracChangeset
for help on using the changeset viewer.