Ignore:
Timestamp:
02/19/09 16:27:33 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimAPD.cc

    r9328 r9349  
    182182
    183183        // Get arrival time of photon and idx
    184         const Double_t t    = ph.GetTime();
    185         const UInt_t   idx  = ph.GetTag();
     184        const Double_t t = ph.GetTime();
     185        const Int_t  idx = ph.GetTag();
     186        if (idx<0)
     187        {
     188            *fLog << err << "ERROR - MSimAPD: Invalid index -1." << endl;
     189            return kERROR;
     190        }
    186191
    187192        if (ph.GetWeight()!=1)
     
    191196            return kERROR;
    192197        }
    193 
    194198        // Simulate hitting the APD (the signal height in effective
    195199        // "number of photons" is returned)
Note: See TracChangeset for help on using the changeset viewer.