Ignore:
Timestamp:
09/01/04 18:06:06 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHFalseSource.cc

    r4704 r4826  
    276276        *fLog << warn << "MTime not found... no derotation." << endl;
    277277
     278    fSrcPos = (MSrcPosCam*)plist->FindObject(AddSerialNumber("MSrcPosCam"));
     279    if (!fSrcPos)
     280        *fLog << warn << "MSrcPosCam not found... no translation." << endl;
     281
    278282    fObservatory = (MObservatory*)plist->FindObject(AddSerialNumber("MObservatory"));
    279283    if (!fObservatory)
     
    341345            // convert degrees to millimeters
    342346            v *= 1./fMm2Deg;
     347
     348            if (fSrcPos)
     349                v += fSrcPos->GetXY();
     350
    343351            src.SetXY(v);
    344352
    345353            // Source dependant hillas parameters
    346             if (!hsrc.Calc(*hil))
     354            if (hsrc.Calc(*hil)>0)
    347355            {
    348356                *fLog << warn << "Calculation of MHillasSrc failed for x=" << cx[ix] << " y=" << cy[iy] << endl;
     
    498506    if ((h5 = (TH2D*)gPad->FindObject("Alpha_yx_diff")))
    499507    {
    500         h5->Add(h3, h2, -1);
     508        h5->Add(h2, h3, -1);
    501509        MakeSymmetric(h5);
    502510    }
     
    575583    *fLog << err << "FIXME - The catalog will never be deleted, because this crashes!" << endl;
    576584
    577     stars->SetBit(kCanDelete);
     585//    stars->SetBit(kCanDelete);
    578586
    579587    return stars;
Note: See TracChangeset for help on using the changeset viewer.