Ignore:
Timestamp:
03/27/01 13:21:59 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 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}
  • trunk/MagicSoft/Mars/manalysis/MHillas.h

    r702 r703  
    2727    ~MHillas();
    2828
    29     void Calc(MGeomCam &geom, MCerPhotEvt &pix);
     29    Bool_t Calc(MGeomCam &geom, MCerPhotEvt &pix);
    3030
    3131    void Print(Option_t *opt=NULL);
Note: See TracChangeset for help on using the changeset viewer.