Changeset 3798 for trunk/MagicSoft


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3796 r3798  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2004/04/22: Thomas Bretz
     21
     22   * mhist/MHCamera.[h,cc]:
     23     - implemented SetUsed
     24
     25
     26
    2027 2004/04/22: Markus Gaug
    2128
     
    3239   * mjobs/MJCalibration.cc
    3340     - added MRawFileRead for option SetDataCheck()
     41
     42
    3443
    3544 2004/04/21: Thomas Bretz
  • 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.