Ignore:
Timestamp:
03/27/01 13:21:59 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r702 r703  
    9595}
    9696
    97 void MHillas::Calc(MGeomCam &geom, MCerPhotEvt &evt)
     97Bool_t MHillas::Calc(MGeomCam &geom, MCerPhotEvt &evt)
    9898{
    9999    const UInt_t nevt = evt.GetNumPixels();
     100
     101    //
     102    // sanity check
     103    //
     104    if (nevt<2)
     105        return kFALSE;
    100106
    101107    //
     
    200206    fTheta  = atan(ymean/xmean);                     // [rad]
    201207    if (xmean<0) fTheta += kPI;                      // [rad]
    202 }
     208
     209    return kTRUE;
     210}
Note: See TracChangeset for help on using the changeset viewer.