Ignore:
Timestamp:
04/22/04 18:48:33 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

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

    r3667 r3798  
    268268// ------------------------------------------------------------------------
    269269//
     270// Call this if you want to change the display status (displayed or not)
     271// for all pixels. val==0 means that the pixel is not displayed.
     272//
     273void MHCamera::SetUsed(const TArrayC &arr)
     274{
     275    if (fNcells-2 != arr.GetSize())
     276    {
     277        gLog << warn << "WARNING - MHCamera::SetUsed: array size mismatch... ignored." << endl;
     278        return;
     279    }
     280
     281    for (Int_t idx=0; idx<fNcells-2; idx++)
     282        arr[idx] ? SetUsed(idx) : ResetUsed(idx);
     283}
     284
     285// ------------------------------------------------------------------------
     286//
    270287// Return the mean value of all entries which are used if all=kFALSE and
    271288// of all entries if all=kTRUE if sector<0. If sector>=0 only
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r3551 r3798  
    143143
    144144    virtual void     SetCamError(const MCamEvent &evt, Int_t type=0);
     145    virtual void     SetUsed(const TArrayC &arr);
    145146
    146147    virtual void     CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0);
Note: See TracChangeset for help on using the changeset viewer.