Ignore:
Timestamp:
09/16/04 17:00:50 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MHillasSrc.cc

    r4826 r5080  
    7171#include <TArrayF.h>
    7272
     73#include <TLine.h>
     74#include <TMarker.h>
     75
    7376#include "MLog.h"
    7477#include "MLogManip.h"
     
    179182}
    180183
     184void MHillasSrc::Paint(Option_t *opt)
     185{
     186    const Float_t x = fSrcPos ? fSrcPos->GetX() : 0;
     187    const Float_t y = fSrcPos ? fSrcPos->GetY() : 0;
     188
     189    TMarker m;
     190    m.SetMarkerColor(kYellow);
     191    m.SetMarkerStyle(kStar);
     192    m.PaintMarker(x, y);
     193/*
     194    m.SetMarkerColor(kMagenta);
     195    m.PaintMarker(fDist*cos((fDCADelta-fAlpha)*TMath::DegToRad()),
     196                  fDist*sin((fDCADelta-fAlpha)*TMath::DegToRad()));
     197
     198    TLine line;
     199    line.SetLineWidth(1);
     200    line.SetLineColor(108);
     201
     202    line.PaintLine(-radius, y, radius, y);
     203    line.PaintLine(x, -radius, x, radius);
     204 
     205    // COG line
     206    TLine line(x, y, meanX, meanY);
     207    line.SetLineWidth(1);
     208    line.SetLineColor(2);
     209    line.Paint();*/
     210}
     211
    181212// --------------------------------------------------------------------------
    182213//
     
    191222    *fLog << " - CosDeltaAlpha        = " << fCosDeltaAlpha << endl;
    192223    *fLog << " - DCA            [mm]  = " << fDCA << endl;
    193     *fLog << " - DCA delta      [deg] = " << fDCADelta*TMath::RadToDeg() << endl;
     224    *fLog << " - DCA delta      [deg] = " << fDCADelta << endl;
    194225}
    195226
     
    207238    *fLog << " - CosDeltaAlpha        = " << fCosDeltaAlpha << endl;
    208239    *fLog << " - DCA            [deg] = " << fDCA*geom.GetConvMm2Deg() << endl;
    209     *fLog << " - DCA delta      [deg] = " << fDCADelta*TMath::RadToDeg() << endl;
     240    *fLog << " - DCA delta      [deg] = " << fDCADelta << endl;
    210241}
    211242
  • trunk/MagicSoft/Mars/mimage/MHillasSrc.h

    r4817 r5080  
    3636    void Print(Option_t *opt=NULL) const;
    3737    void Print(const MGeomCam &geom) const;
     38    void Paint(Option_t *opt=NULL);
    3839
    3940    virtual Int_t Calc(const MHillas &hillas);
Note: See TracChangeset for help on using the changeset viewer.