Ignore:
Timestamp:
05/10/07 16:33:01 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.cc

    r6858 r8489  
    110110Int_t MFSoftwareTrigger::CountPixels(Int_t idx, Float_t tm0) const
    111111{
    112     // Try to get the pixel information of a pixel with this index
    113     MSignalPix *pix = fEvt->GetPixById(idx);
    114 
    115     // If a pixel with this index is not existing... do nothing.
    116     if (!pix)
    117         return 0;
     112    // get the pixel information of a pixel with this index
     113    MSignalPix &pix = (*fEvt)[idx];
    118114
    119115    // If pixel already assigned to a cluster
    120     if (pix->TestBit(kWasChecked))
    121         return 0;
    122 
    123     if (pix->IsPixelUnmapped())
     116    if (pix.TestBit(kWasChecked))
     117        return 0;
     118
     119    if (pix.IsPixelUnmapped())
    124120        return 0;
    125121
    126122    // Assign the new island number num to this used pixel
    127     pix->SetBit(kWasChecked);
     123    pix.SetBit(kWasChecked);
    128124
    129125    // Get the size of this pixel and check threshold
    130     const Double_t size = pix->GetNumPhotons()*fCam->GetPixRatio(idx);
     126    const Double_t size = pix.GetNumPhotons()*fCam->GetPixRatio(idx);
    131127    if (size<fThreshold)
    132128        return 0;
    133129
    134     const Float_t tm1 = pix->GetArrivalTime();
     130    const Float_t tm1 = pix.GetArrivalTime();
    135131    if (TMath::Abs(tm1-tm0)>fTimeWindow)
    136132        return 0;
    137133
    138     //pix->SetBit(kAboveThreshold);
     134    //pix.SetBit(kAboveThreshold);
    139135
    140136    Int_t num = 1;
Note: See TracChangeset for help on using the changeset viewer.