Changeset 8106 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 10/17/06 18:18:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r8022 r8106 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.95 2006-10-17 17:16:00 tbretz Exp $ 3 ! -------------------------------------------------------------------------- 2 4 ! 3 5 ! * … … 361 363 // entries with match the given sector are taken into account. 362 364 // 363 Stat_t MHCamera::GetMeanSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all) const365 Stat_t MHCamera::GetMeanSectors(const TArrayI §or, const TArrayI &aidx, Bool_t ball) const 364 366 { 365 367 if (fNcells<=1) … … 371 373 for (int i=0; i<fNcells-2; i++) 372 374 { 373 if (( all || IsUsed(i)) && MatchSector(i, sector, aidx))375 if ((ball || IsUsed(i)) && MatchSector(i, sector, aidx)) 374 376 { 375 377 if (TestBit(kProfile) && fBinEntries[i+1]==0) … … 390 392 // entries with match the given sector are taken into account. 391 393 // 392 Stat_t MHCamera::GetRmsSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all) const394 Stat_t MHCamera::GetRmsSectors(const TArrayI §or, const TArrayI &aidx, Bool_t ball) const 393 395 { 394 396 if (fNcells<=1) … … 401 403 for (int i=0; i<fNcells-2; i++) 402 404 { 403 if (( all || IsUsed(i)) && MatchSector(i, sector, aidx))405 if ((ball || IsUsed(i)) && MatchSector(i, sector, aidx)) 404 406 { 405 407 if (TestBit(kProfile) && fBinEntries[i+1]==0) … … 429 431 // only pixels with matching sector number are taken into account. 430 432 // 431 Double_t MHCamera::GetMinimumSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all) const433 Double_t MHCamera::GetMinimumSectors(const TArrayI §or, const TArrayI &aidx, Bool_t ball) const 432 434 { 433 435 if (fMinimum != -1111) … … 445 447 446 448 const Double_t val = TestBit(kProfile) ? fArray[i+1]/fBinEntries[i+1] : fArray[i+1]; 447 if (MatchSector(i, sector, aidx) && ( all || IsUsed(i)) && val<minimum)449 if (MatchSector(i, sector, aidx) && (ball || IsUsed(i)) && val<minimum) 448 450 minimum = val; 449 451 } … … 458 460 // only pixels with matching sector number are taken into account. 459 461 // 460 Double_t MHCamera::GetMaximumSectors(const TArrayI §or, const TArrayI &aidx, Bool_t all) const462 Double_t MHCamera::GetMaximumSectors(const TArrayI §or, const TArrayI &aidx, Bool_t ball) const 461 463 { 462 464 if (fMaximum!=-1111) … … 473 475 474 476 const Double_t val = TestBit(kProfile) ? fArray[i+1]/fBinEntries[i+1] : fArray[i+1]; 475 if (MatchSector(i, sector, aidx) && ( all || IsUsed(i)) && val>maximum)477 if (MatchSector(i, sector, aidx) && (ball || IsUsed(i)) && val>maximum) 476 478 maximum = val; 477 479 }
Note:
See TracChangeset
for help on using the changeset viewer.