Changeset 4318 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 06/22/04 11:09:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r4301 r4318 1212 1212 // 1213 1213 // 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 // 1217 void MHCamera::CntCamContent(const MCamEvent &event, Double_t threshold, Int_t type, Bool_t isabove) 1217 1218 { 1218 1219 if (fNcells<=1 || IsFreezed()) … … 1226 1227 SetUsed(idx); 1227 1228 1228 if (val>threshold) 1229 if (val>threshold && isabove) 1230 Fill(idx); 1231 if (val<threshold && !isabove) 1229 1232 Fill(idx); 1230 1233 } -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r4300 r4318 150 150 virtual void SetUsed(const TArrayC &arr); 151 151 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); 153 153 virtual void CntCamContent(const TArrayD &evt, Double_t threshold, Bool_t ispos=kTRUE); 154 154
Note:
See TracChangeset
for help on using the changeset viewer.