Ignore:
Timestamp:
08/12/02 14:14:13 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc

    r1487 r1496  
    160160        const Int_t n = gpix.GetNumNeighbors();
    161161
     162        Int_t num = TESTBIT(fFlags, kUseCentralPixel) ? 1 : 0;
     163
    162164        nphot[i] = TESTBIT(fFlags, kUseCentralPixel) ? (*fEvt)[id].GetNumPhotons() : 0;
    163165        perr[i]  = TESTBIT(fFlags, kUseCentralPixel) ? (*fEvt)[id].GetErrorPhot()  : 0;
     
    166168            const UShort_t nid = gpix.GetNeighbor(j);
    167169
     170            if (fPixels->IsBlind(nid))
     171                continue;
     172
    168173            nphot[i] += (*fEvt)[nid].GetNumPhotons();
    169174            perr[i]  += (*fEvt)[nid].GetErrorPhot();
     175
     176            num++;
    170177        }
    171178
    172         nphot[i] /= TESTBIT(fFlags, kUseCentralPixel) ? n+1 : n;
    173         perr[i]  /= TESTBIT(fFlags, kUseCentralPixel) ? n+1 : n;
     179        nphot[i] /= num;
     180        perr[i]  /= num;
    174181    }
    175182
     
    263270    MMcRunHeader *mcrun = (MMcRunHeader*)pList->FindObject("MMcRunHeader");
    264271    if (!mcrun)
     272    {
     273        *fLog << warn << "MBlindPixelCalc::ReInit: Warning - No run header available... no action." << endl;
    265274        return kTRUE;
     275    }
    266276
    267277    Int_t rah, ram, ras;
     
    272282    if (rah!=5 || ram!=34 || ras!=32 || ded!=22 || dem!=0 || des!=55)
    273283    {
    274         *fLog << warn << "Warning - Detected Starfield unknown..." << endl;
     284        *fLog << warn << "Warning - Starfield unknown..." << endl;
    275285        return kTRUE;
    276286    }
  • trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h

    r1487 r1496  
    4242        b ? SETBIT(fFlags, kUseInterpolation) : CLRBIT(fFlags, kUseInterpolation);
    4343    }
    44     void SetUseCetralPixel(Bool_t b=kTRUE)
     44    void SetUseCentralPixel(Bool_t b=kTRUE)
    4545    {
    4646        b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
Note: See TracChangeset for help on using the changeset viewer.