Ignore:
Timestamp:
07/08/05 11:46:47 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
3 edited

Legend:

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

    r6869 r7176  
    6464
    6565#include <TArrayF.h>
     66#include <TMarker.h>
     67#include <TVirtualPad.h>
    6668
    6769#include "MGeomPix.h"
     
    218220    *fLog << all;
    219221    *fLog << GetDescriptor() << endl;
    220     *fLog << " - Asymmetry            = " << fAsym    << endl;
     222    *fLog << " - Asymmetry      [mm]  = " << fAsym    << endl;
    221223    *fLog << " - 3.Moment Long  [mm]  = " << fM3Long  << endl;
    222224    *fLog << " - 3.Moment Trans [mm]  = " << fM3Trans << endl;
     
    233235    *fLog << all;
    234236    *fLog << GetDescriptor() << endl;
    235     *fLog << " - Asymmetry            = " << fAsym   *geom.GetConvMm2Deg() << endl;
     237    *fLog << " - Asymmetry      [deg] = " << fAsym   *geom.GetConvMm2Deg() << endl;
    236238    *fLog << " - 3.Moment Long  [deg] = " << fM3Long *geom.GetConvMm2Deg() << endl;
    237239    *fLog << " - 3.Moment Trans [deg] = " << fM3Trans*geom.GetConvMm2Deg() << endl;
    238240    *fLog << " - Max.Dist       [deg] = " << fMaxDist*geom.GetConvMm2Deg() << endl;
    239241}
     242
     243// -------------------------------------------------------------------------
     244//
     245// Paint the 3rd moment on top of the shower. Therefor "MHillas" is needed.
     246// it is searched via gPad->FindObject. If opt is not IsNull an object with
     247// the name opt is searched.
     248//
     249void MHillasExt::Paint(Option_t *opt)
     250{
     251    const TString name(opt);
     252
     253    const MHillas *hil = dynamic_cast<const MHillas*>(gPad->FindObject(name.IsNull() ? "MHillas" : name));
     254    if (!hil)
     255        return;
     256
     257    TVector2 v(fM3Long, fM3Trans);
     258    v  = v.Rotate(hil->GetDelta()+TMath::Pi());
     259    v += hil->GetMean();
     260
     261    TMarker m;
     262    m.SetMarkerColor(15);
     263    m.SetMarkerStyle(kFullDotLarge);
     264    m.PaintMarker(v.X(), v.Y());
     265}
  • trunk/MagicSoft/Mars/mimage/MHillasExt.h

    r6855 r7176  
    3939    void Print(const MGeomCam &geom) const;
    4040
     41    void Paint(Option_t *o="");
     42
    4143    void Set(const TArrayF &arr);
    4244
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.cc

    r6869 r7176  
    228228    *fLog << all;
    229229    *fLog << GetDescriptor() << endl;
    230     *fLog << " - Leakage1       [1]   = " << fLeakage1             << endl;
    231     *fLog << " - Leakage2       [1]   = " << fLeakage2             << endl;
    232     *fLog << " - InnerLeakage1  [1]   = " << fInnerLeakage1        << endl;
    233     *fLog << " - InnerLeakage2  [1]   = " << fInnerLeakage2        << endl;
    234     *fLog << " - InnerSize      [#]   = " << fInnerSize            << " CerPhot" << endl;
    235     *fLog << " - Conc           [1]   = " << fConc                 << " (ratio)" << endl;
    236     *fLog << " - Conc1          [1]   = " << fConc1                << " (ratio)" << endl;
    237     *fLog << " - Used Pixels    [#]   = " << fNumUsedPixels        << " Pixels" << endl;
    238     *fLog << " - Core Pixels    [#]   = " << fNumCorePixels        << " Pixels" << endl;
    239     *fLog << " - Used Area     [mm^2] = " << fUsedArea             << endl;
    240     *fLog << " - Core Area     [mm^2] = " << fCoreArea             << endl;
     230    *fLog << " - Leakage1         [1] = " << fLeakage1      << endl;
     231    *fLog << " - Leakage2         [1] = " << fLeakage2      << endl;
     232    *fLog << " - InnerLeakage1    [1] = " << fInnerLeakage1 << endl;
     233    *fLog << " - InnerLeakage2    [1] = " << fInnerLeakage2 << endl;
     234    *fLog << " - InnerSize      [phe] = " << fInnerSize    << endl;
     235    *fLog << " - Conc             [1] = " << fConc          << endl;
     236    *fLog << " - Conc1            [1] = " << fConc1        << endl;
     237    *fLog << " - Num Used Pixels  [#] = " << fNumUsedPixels << endl;
     238    *fLog << " - Num Core Pixels  [#] = " << fNumCorePixels << endl;
     239    *fLog << " - Used Area     [mm^2] = " << fUsedArea      << endl;
     240    *fLog << " - Core Area     [mm^2] = " << fCoreArea      << endl;
    241241}
    242242
     
    250250    *fLog << all;
    251251    *fLog << GetDescriptor() << endl;
    252     *fLog << " - Leakage1       [1]   = " << fLeakage1             << endl;
    253     *fLog << " - Leakage2       [1]   = " << fLeakage2             << endl;
    254     *fLog << " - InnerLeakage1  [1]   = " << fInnerLeakage1        << endl;
    255     *fLog << " - InnerLeakage2  [1]   = " << fInnerLeakage2        << endl;
    256     *fLog << " - InnerSize      [#]   = " << fInnerSize            << " CerPhot" << endl;
    257     *fLog << " - Conc           [1]   = " << fConc                 << " (ratio)" << endl;
    258     *fLog << " - Conc1          [1]   = " << fConc1                << " (ratio)" << endl;
    259     *fLog << " - Used Pixels    [#]   = " << fNumUsedPixels        << " Pixels" << endl;
    260     *fLog << " - Core Pixels    [#]   = " << fNumCorePixels        << " Pixels" << endl;
     252    *fLog << " - Leakage1         [1] = " << fLeakage1      << endl;
     253    *fLog << " - Leakage2         [1] = " << fLeakage2      << endl;
     254    *fLog << " - InnerLeakage1    [1] = " << fInnerLeakage1 << endl;
     255    *fLog << " - InnerLeakage2    [1] = " << fInnerLeakage2 << endl;
     256    *fLog << " - InnerSize      [phe] = " << fInnerSize    << endl;
     257    *fLog << " - Conc             [1] = " << fConc          << endl;
     258    *fLog << " - Conc1            [1] = " << fConc1        << endl;
     259    *fLog << " - Num Used Pixels  [#] = " << fNumUsedPixels << endl;
     260    *fLog << " - Num Core Pixels  [#] = " << fNumCorePixels << endl;
    261261    *fLog << " - Used Area    [deg^2] = " << fUsedArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl;
    262262    *fLog << " - Core Area    [deg^2] = " << fCoreArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl;
Note: See TracChangeset for help on using the changeset viewer.