Ignore:
Timestamp:
09/01/04 18:06:06 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
3 edited

Legend:

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

    r3779 r4826  
    138138        const MHillasSrc *hil = dynamic_cast<const MHillasSrc*>(par);
    139139        if (!par)
     140        {
     141            *fLog << err << dbginf << "MHillasSrc not found... abort." << endl;
    140142            return kFALSE;
     143        }
    141144
    142145        alpha = hil->GetAlpha();
  • 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;
  • trunk/MagicSoft/Mars/mhist/MHFalseSource.h

    r3682 r4826  
    1414class MParList;
    1515class MTime;
     16class MSrcPosCam;
    1617class MPointingPos;
    1718class MObservatory;
     
    2223    MTime         *fTime;        //! container to take the event time from
    2324    MPointingPos  *fPointPos;    //! container to take pointing position from
     25    MSrcPosCam    *fSrcPos;      //! container for sopurce position in camera
    2426    MObservatory  *fObservatory; //! conteiner to take observatory location from
    2527
Note: See TracChangeset for help on using the changeset viewer.