Ignore:
Timestamp:
04/07/03 18:30:43 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHFadcCam.cc

    r1652 r1916  
    130130{
    131131    for (Int_t i=0; i<577; i++)
    132     {
    133         GetHistHi(i)->Reset();
    134         GetHistLo(i)->Reset();
    135     }
     132        Reset(i);
    136133}
     134
     135void MHFadcCam::Reset(Int_t i)
     136{
     137    GetHistHi(i)->Reset();
     138    GetHistLo(i)->Reset();
     139}
  • trunk/MagicSoft/Mars/mhist/MHFadcCam.h

    r1655 r1916  
    4949
    5050    void ResetHistograms();
     51    void Reset(Int_t i);
    5152
    5253    //
     
    5758
    5859    Bool_t HasLo(UInt_t i) const { return GetHistLo(i)->GetEntries()>0; }
     60    Bool_t HasHi(UInt_t i) const { return GetHistHi(i)->GetEntries()>0; }
     61
     62    Bool_t Exists(UInt_t i) const { return HasLo(i) && HasHi(i); }
    5963
    6064    void DrawPix(UInt_t i)     { (*this)[i].Draw(); }
Note: See TracChangeset for help on using the changeset viewer.