Changeset 7375 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
09/30/05 11:11:22 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7374 r7375  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
    21  2005/09/30 Daniela Dorner
     21 2005/09/30 Thomas Bretz
    2222
    2323   * callisto.rc, callisto_MarApr05.rc:
     
    3737     _ really display rms (former display was incorrectly Pedestal
    3838       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
    3947
    4048   * mmuon/MHMuonPar.cc:
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r7189 r7375  
    679679      break;
    680680    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();
    685684      break;
    686685    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();
    691689      break;
    692690    case 8:
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r7189 r7375  
    895895      t17->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol)));
    896896      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);
    897901      TText *t14= pave->AddText(Form("Previously Excluded:                                   %3i pixels",
    898                                        CountBadPixels(&disp24,10)));
    899       t14->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol)));
     902                                       CountBadPixels(&disp24,11)));
     903      t14->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol)));
    900904      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);
    905905      pave->Draw();
    906906
     
    13671367}
    13681368
    1369 const Int_t MJCalibration::CountBadPixels ( MHCamera *cam , const Int_t what ) const
     1369const Int_t MJCalibration::CountBadPixels(MHCamera *cam, const Int_t what) const
    13701370{
    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;
    13791378}
    13801379
Note: See TracChangeset for help on using the changeset viewer.