Changeset 9186 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 12/02/08 11:23:24 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r8988 r9186 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.1 09 2008-06-30 09:36:38tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.110 2008-12-02 11:22:19 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 363 363 } 364 364 365 UInt_t MHCamera::GetNumUsedSector(const TArrayI §or, const TArrayI &aidx) const 366 { 367 if (fNcells<=1) 368 return 0; 369 370 Int_t n=0; 371 372 for (int i=0; i<fNcells-2; i++) 373 { 374 if (!IsUsed(i) || !MatchSector(i, sector, aidx)) 375 continue; 376 377 if (TestBit(kProfile) && fBinEntries[i+1]==0) 378 continue; 379 n++; 380 } 381 382 // return Median of the profile data 383 return n; 384 } 385 365 386 // ------------------------------------------------------------------------ 366 387 // -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r8988 r9186 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.6 5 2008-06-30 09:36:38tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.h,v 1.66 2008-12-02 11:22:19 tbretz Exp $ 3 3 \* ======================================================================== */ 4 4 #ifndef MARS_MHCamera … … 133 133 void SetUsed(Int_t idx) { SETBIT(fUsed[idx], kIsUsed); } 134 134 void SetAllUsed() { fUsed.Reset(BIT(kIsUsed)); } 135 136 UInt_t GetNumUsedSector(const TArrayI §or, const TArrayI &aidx) const; 137 UInt_t GetNumUsed() const { return GetNumUsedSector(TArrayI(), TArrayI()); } 138 UInt_t GetNumUsedSector(Int_t sector, Int_t aidx) const 139 { 140 return GetNumUsedSector(TArrayI(1, §or), TArrayI(1, &aidx)); 141 } 142 135 143 136 144 Int_t Fill(Axis_t x, Axis_t y, Stat_t w);
Note:
See TracChangeset
for help on using the changeset viewer.