Changeset 18849 for trunk/Mars/mhist


Ignore:
Timestamp:
05/12/17 15:26:38 (8 years ago)
Author:
tbretz
Message:
Fixed a typo and a bug. Fill could crash if it got an invalid channel number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhist/MHCamera.cc

    r13388 r18849  
    278278#endif
    279279   const Int_t bin = (Int_t)x+1;
     280   if (bin<0 || bin>fNcells-1)
     281       return -1;
     282
    280283   AddBinContent(bin, w);
    281284   fBinEntries[bin]++;
     
    803806        h1->SetTitle(GetTitle());
    804807        h1->SetDirectory(0);
    805         h1->SetXTitle("Radius from camera center [mm]");
     808        h1->SetXTitle("Radius from camera center [deg]");
    806809        h1->SetYTitle(GetYaxis()->GetTitle());
    807810    }
Note: See TracChangeset for help on using the changeset viewer.