Changeset 7375 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 09/30/05 11:11:22 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.