Changeset 7375
- Timestamp:
- 09/30/05 11:11:22 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7374 r7375 19 19 -*-*- END OF LINE -*-*- 20 20 21 2005/09/30 Daniela Dorner21 2005/09/30 Thomas Bretz 22 22 23 23 * callisto.rc, callisto_MarApr05.rc: … … 37 37 _ really display rms (former display was incorrectly Pedestal 38 38 instead of its rms 39 40 * mjobs/MJCalibration.cc: 41 - fixed a small bug in the display of unsuitable pixels. 42 (LoGainBlackout haven't been displayed, and previously excluded 43 pixels were wrong) 44 45 * mbadpixels/MBadPixelsCam.cc: 46 - small simplifications in GetPixelContent 39 47 40 48 * mmuon/MHMuonPar.cc: -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r7189 r7375 679 679 break; 680 680 case 6: 681 if ((*this)[idx].GetUnsuitableCalLevel()) 682 val = (*this)[idx].GetUnsuitableCalLevel(); 683 else 684 return kFALSE; 681 if (!(*this)[idx].GetUnsuitableCalLevel()) 682 return kFALSE; 683 val = (*this)[idx].GetUnsuitableCalLevel(); 685 684 break; 686 685 case 7: 687 if ((*this)[idx].GetUnreliableCalLevel()) 688 val = (*this)[idx].GetUnreliableCalLevel(); 689 else 690 return kFALSE; 686 if (!(*this)[idx].GetUnreliableCalLevel()) 687 return kFALSE; 688 val = (*this)[idx].GetUnreliableCalLevel(); 691 689 break; 692 690 case 8: -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r7189 r7375 895 895 t17->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol))); 896 896 t17->SetTextAlign(12); 897 TText *t15= pave->AddText(Form("Too many Low-Gain Blackout Events: %3i pixels", 898 CountBadPixels(&disp24,10 ))); 899 t15->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol))); 900 t15->SetTextAlign(12); 897 901 TText *t14= pave->AddText(Form("Previously Excluded: %3i pixels", 898 CountBadPixels(&disp24,1 0)));899 t14->SetTextColor(gStyle->GetColorPalette(Int_t(1 0./max*numcol)));902 CountBadPixels(&disp24,11))); 903 t14->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol))); 900 904 t14->SetTextAlign(12); 901 TText *t15= pave->AddText(Form("Too many Low-Gain Blackout Events %3i pixels",902 CountBadPixels(&disp24,25 )));903 t15->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol)));904 t15->SetTextAlign(12);905 905 pave->Draw(); 906 906 … … 1367 1367 } 1368 1368 1369 const Int_t MJCalibration::CountBadPixels ( MHCamera *cam , const Int_t what) const1369 const Int_t MJCalibration::CountBadPixels(MHCamera *cam, const Int_t what) const 1370 1370 { 1371 1372 Int_t cnt = 0; 1373 1374 for (UInt_t pix=0; pix<cam->GetNumPixels();pix++) 1375 if ((Int_t)cam->GetPixContent(pix) == what) 1376 cnt++; 1377 1378 return cnt; 1371 Int_t cnt = 0; 1372 1373 for (UInt_t pix=0; pix<cam->GetNumPixels(); pix++) 1374 if (TMath::Nint(cam->GetPixContent(pix)) == what) 1375 cnt++; 1376 1377 return cnt; 1379 1378 } 1380 1379
Note:
See TracChangeset
for help on using the changeset viewer.