Changeset 3798 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 04/22/04 18:48:33 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r3667 r3798 268 268 // ------------------------------------------------------------------------ 269 269 // 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 // 273 void 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 // 270 287 // Return the mean value of all entries which are used if all=kFALSE and 271 288 // of all entries if all=kTRUE if sector<0. If sector>=0 only -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r3551 r3798 143 143 144 144 virtual void SetCamError(const MCamEvent &evt, Int_t type=0); 145 virtual void SetUsed(const TArrayC &arr); 145 146 146 147 virtual void CntCamContent(const MCamEvent &evt, Double_t threshold, Int_t type=0);
Note:
See TracChangeset
for help on using the changeset viewer.