Ignore:
Timestamp:
10/17/06 18:18:40 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r8022 r8106  
    11/* ======================================================================== *\
     2! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.95 2006-10-17 17:16:00 tbretz Exp $
     3! --------------------------------------------------------------------------
    24!
    35! *
     
    361363// entries with match the given sector are taken into account.
    362364//
    363 Stat_t MHCamera::GetMeanSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t all) const
     365Stat_t MHCamera::GetMeanSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t ball) const
    364366{
    365367    if (fNcells<=1)
     
    371373    for (int i=0; i<fNcells-2; i++)
    372374    {
    373         if ((all || IsUsed(i)) && MatchSector(i, sector, aidx))
     375        if ((ball || IsUsed(i)) && MatchSector(i, sector, aidx))
    374376        {
    375377            if (TestBit(kProfile) && fBinEntries[i+1]==0)
     
    390392// entries with match the given sector are taken into account.
    391393//
    392 Stat_t MHCamera::GetRmsSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t all) const
     394Stat_t MHCamera::GetRmsSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t ball) const
    393395{
    394396    if (fNcells<=1)
     
    401403    for (int i=0; i<fNcells-2; i++)
    402404    {
    403         if ((all || IsUsed(i)) && MatchSector(i, sector, aidx))
     405        if ((ball || IsUsed(i)) && MatchSector(i, sector, aidx))
    404406        {
    405407            if (TestBit(kProfile) && fBinEntries[i+1]==0)
     
    429431// only pixels with matching sector number are taken into account.
    430432//
    431 Double_t MHCamera::GetMinimumSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t all) const
     433Double_t MHCamera::GetMinimumSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t ball) const
    432434{
    433435    if (fMinimum != -1111)
     
    445447
    446448        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)
    448450            minimum = val;
    449451    }
     
    458460// only pixels with matching sector number are taken into account.
    459461//
    460 Double_t MHCamera::GetMaximumSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t all) const
     462Double_t MHCamera::GetMaximumSectors(const TArrayI &sector, const TArrayI &aidx, Bool_t ball) const
    461463{
    462464    if (fMaximum!=-1111)
     
    473475
    474476        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)
    476478            maximum = val;
    477479    }
Note: See TracChangeset for help on using the changeset viewer.