Ignore:
Timestamp:
10/15/02 17:02:46 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1528 r1540  
    220220// In case you don't call Calc from within an eventloop make sure, that
    221221// you call the Reset member function before.
    222 //
    223 Bool_t MHillas::Calc(const MGeomCam &geom, const MCerPhotEvt &evt)
     222// Returns:
     223//   0  no error
     224//   1  number of pixels < 3
     225//   2  size==0
     226//   3  number of used pixel < 3
     227//   4  CorrXY == 0
     228//
     229Int_t MHillas::Calc(const MGeomCam &geom, const MCerPhotEvt &evt)
    224230{
    225231    const UInt_t npixevt = evt.GetNumPixels();
     
    228234    // sanity check
    229235    //
    230     if (npixevt <= 2)
    231     {
    232         *fLog << warn << "MHillas::Calc: Event has less than two pixels... skipped." << endl;
    233         return kFALSE;
     236    if (npixevt < 3)
     237    {
     238        //*fLog << warn << "MHillas::Calc: Event has less than three pixels... skipped." << endl;
     239        return 1;
    234240    }
    235241
     
    280286    {
    281287        //*fLog << inf << GetDescriptor() << ": Event has zero cerenkov photons... skipped." << endl;
    282         return kFALSE;
     288        return 2;
    283289    }
    284290
     
    286292    {
    287293        //*fLog << inf << GetDescriptor() << ": Event has less than 3 used pixels... skipped." << endl;
    288         return kFALSE;
     294        return 3;
    289295    }
    290296
     
    334340    if (corrxy==0)
    335341    {
    336         *fLog << inf << GetDescriptor() << ": Event has CorrXY==0... skipped." << endl;
    337         return kFALSE;
     342        //*fLog << inf << GetDescriptor() << ": Event has CorrXY==0... skipped." << endl;
     343        return 4;
    338344    }
    339345
     
    375381    SetReadyToSave();
    376382
    377     return kTRUE;
     383    return 0;
    378384}
    379385
Note: See TracChangeset for help on using the changeset viewer.