Changeset 7224 for trunk


Ignore:
Timestamp:
07/27/05 11:23:33 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7223 r7224  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2005/07/27 Thomas Bretz
     24
     25   * mhflux/MAlphaFitter.cc:
     26     - added a line at the cut value to PaintResults
     27
     28   * mhflux/MHDisp.cc:
     29     - replaced GetCosDelta/GetSinDelta by new GetNormAxis
     30
     31   * mhist/MHRate.cc:
     32     - replaced some warn by err
     33
     34   * mimage/MHillas.[h,cc]:
     35     - added new member function GetNormAxis
     36
     37
    2238
    2339 2005/07/26 Daniela Dorner
  • trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc

    r7185 r7224  
    4545#include <TRandom.h>
    4646
     47#include <TLine.h>
    4748#include <TLatex.h>
     49#include <TVirtualPad.h>
    4850
    4951#include "MMath.h"
     
    274276    text.SetTextSize(size);
    275277    text.Paint();
     278
     279    TLine line;
     280    line.SetLineColor(14);
     281    line.PaintLine(m, gPad->GetUymin(), m, gPad->GetUymax());
    276282}
    277283
  • trunk/MagicSoft/Mars/mhflux/MHDisp.cc

    r7221 r7224  
    153153
    154154    // Vector of length disp in direction of shower
    155     const TVector2 p(hil->GetCosDelta(), hil->GetSinDelta());
    156 
    157155    // Move origin of vector to center-of-gravity of shower and derotate
    158     TVector2 pos1 = hil->GetMean()*fMm2Deg + p*fDisp->GetVal();
     156    TVector2 pos1 = hil->GetMean()*fMm2Deg + hil->GetNormAxis()*fDisp->GetVal();
    159157
    160158    Double_t w0 = 1;
  • trunk/MagicSoft/Mars/mhist/MHRate.cc

    r7198 r7224  
    3232#include "MHRate.h"
    3333
    34 #include <TPad.h>
    3534#include <TCanvas.h>
    3635#include <TGaxis.h>
     
    123122    if (!fEvtRate)
    124123    {
    125         *fLog << warn << "MEventRate not found... abort." << endl;
     124        *fLog << err << "MEventRate not found... abort." << endl;
    126125        return kFALSE;
    127126    }
     
    129128    if (!fPointPos)
    130129    {
    131         *fLog << warn << "MPointingPos not found... abort." << endl;
     130        *fLog << err << "MPointingPos not found... abort." << endl;
    132131        return kFALSE;
    133132    }
  • trunk/MagicSoft/Mars/mimage/MHillas.cc

    r7177 r7224  
    118118// --------------------------------------------------------------------------
    119119//
     120//  return the direction of the main axis (normalized). The main axis
     121//  always has the direction  -->  x>0
     122//
     123TVector2 MHillas::GetNormAxis() const
     124{
     125    return TVector2(fCosDelta, fSinDelta);
     126}
     127
     128// --------------------------------------------------------------------------
     129//
    120130//  Analytical estimation of length of border line:
    121131//    U = pi*(a+b - sqrt(a*b))
  • trunk/MagicSoft/Mars/mimage/MHillas.h

    r6871 r7224  
    4646
    4747    TVector2 GetMean() const;
     48    TVector2 GetNormAxis() const;
    4849
    4950    Double_t GetBorderLine() const;
Note: See TracChangeset for help on using the changeset viewer.