Changeset 4318


Ignore:
Timestamp:
06/22/04 11:09:44 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4317 r4318  
    2424    - use flag to choose if one wants to re-normalize the histogram
    2525      results
     26
     27  * mhist/MHCamera.[h,cc]
     28    - added one argument to CntCamContent to tell if event above or
     29      below threshold have to be counted. Default is above, like before
    2630
    2731
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r4301 r4318  
    12121212//
    12131213// Call this function to add a MCamEvent on top of the present contents.
    1214 // 1 is added to each pixel if the contents of MCamEvent>threshold
    1215 //
    1216 void MHCamera::CntCamContent(const MCamEvent &event, Double_t threshold, Int_t type)
     1214// 1 is added to each pixel if the contents of MCamEvent>threshold (in case isabove is set to kTRUE == default)
     1215// 1 is added to each pixel if the contents of MCamEvent<threshold (in case isabove is set to kFALSE)
     1216//
     1217void MHCamera::CntCamContent(const MCamEvent &event, Double_t threshold, Int_t type, Bool_t isabove)
    12171218{
    12181219    if (fNcells<=1 || IsFreezed())
     
    12261227            SetUsed(idx);
    12271228
    1228         if (val>threshold)
     1229        if (val>threshold && isabove)
     1230            Fill(idx);
     1231        if (val<threshold && !isabove)
    12291232            Fill(idx);
    12301233    }
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r4300 r4318  
    150150    virtual void     SetUsed(const TArrayC &arr);
    151151
    152     virtual void     CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0);
     152    virtual void     CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0, Bool_t isabove=kTRUE);
    153153    virtual void     CntCamContent(const TArrayD &evt, Double_t threshold, Bool_t ispos=kTRUE);
    154154
Note: See TracChangeset for help on using the changeset viewer.