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

Legend:

Unmodified
Added
Removed
  • 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.