Ignore:
Timestamp:
07/30/04 12:19:16 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/MStarLocalPos.cc

    r4294 r4433  
    1111! * provided that the above copyright notice appear in all copies and
    1212! * that both that copyright notice and this permission notice appear
    13 ! * in supporting documentation. It is provided "as is" without express
     13! * in supporting documentation. It is provided "as is" without expressed
    1414! * or implied warranty.
    1515! *
     
    1717!
    1818!   Author(s): Javier López , 4/2004 <mailto:jlopez@ifae.es>
     19!   Author(s): Robert Wagner, 7/2004 <mailto:rwagner@mppmu.mpg.de>
    1920!
    2021!   Copyright: MAGIC Software Development, 2000-2004
     
    2526
    2627#include <TEllipse.h>
     28#include <TMarker.h>
    2729
    2830#include "MLog.h"
     
    101103}
    102104
     105void MStarLocalPos::SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chiSquare, Int_t ndof, Float_t xx, Float_t xy, Float_t yy)
     106{
     107  SetFitValues(mag, max, x, y, sigmaMinorAxis, sigmaMajorAxis, chiSquare, ndof);
     108  fXXErr = xx;
     109  fYYErr = yy;
     110  fXYErr = xy;
     111}
     112
     113
    103114// --------------------------------------------------------------------------
    104115//
     
    108119{
    109120  //Print a cross in the expected position
     121 
     122  TMarker mexp(fXExp, fYExp, 29);
     123  mexp.SetMarkerSize(3);
     124  mexp.SetMarkerColor(94);
     125  mexp.Paint();
    110126
    111127  if (fSigmaMinorAxisCalc>0. && fSigmaMajorAxisCalc>0.)
    112128    {
    113129      TEllipse ecalc(fMeanXCalc, fMeanYCalc, fSigmaMinorAxisCalc, fSigmaMajorAxisCalc, 0, 360, 0);
    114       ecalc.SetLineWidth(2);
     130      ecalc.SetLineWidth(3);
    115131      ecalc.SetLineColor(kRed);
    116132      ecalc.Paint();
     
    120136    {
    121137      TEllipse efit(fMeanXFit, fMeanYFit, fSigmaMinorAxisFit, fSigmaMajorAxisFit, 0, 360, 0);
    122       efit.SetLineWidth(2);
     138      efit.SetLineWidth(3);
    123139      efit.SetLineColor(kBlack);
    124140      efit.Paint();
     
    129145{
    130146  TString o = opt;
     147
     148  if (o.Contains("name", TString::kIgnoreCase) || opt == NULL)
     149    {
     150      *fLog << inf << "Star Name: \"" << this->GetName() << "\"" << endl;
     151    }
     152   
    131153 
    132154  if (o.Contains("mag", TString::kIgnoreCase) || opt == NULL)
    133155    {
     156 
    134157      *fLog << inf << "Star maginitude:" << endl;
    135158      *fLog << inf << " Expected \t" << setw(4) << fMagExp << endl;
     
    165188      *fLog << inf << " ChiSquare/Ndof \t " << setw(3) << fChiSquare << "/" << fNdof << endl;
    166189    }
     190
     191  if (o.Contains("err", TString::kIgnoreCase) || opt == NULL)
     192    {
     193      *fLog << inf << "Minuit Error Matrix:" << endl;
     194      *fLog << inf << " xx,xy,yy \t " << setw(3) << fXXErr << ", " << fXYErr << ", " << fYYErr << endl;
     195    }
     196
     197
    167198}
  • trunk/MagicSoft/Mars/mtemp/MStarLocalPos.h

    r4294 r4433  
    3434    Float_t fSigmaMajorAxisFit;  //[mm]
    3535    Float_t fChiSquare;
     36    Float_t fXXErr;              //minuit error matrix elements
     37    Float_t fXYErr;
     38    Float_t fYYErr;
    3639    Int_t   fNdof;
    3740
     
    6669    Float_t GetSigmaMinorAxis() {return fSigmaMinorAxisFit!=0?fSigmaMinorAxisFit:fSigmaMinorAxisCalc;}
    6770    Float_t GetSigmaMajorAxis() {return fSigmaMajorAxisFit!=0?fSigmaMajorAxisFit:fSigmaMajorAxisCalc;}
     71   
     72    Float_t GetXXErr() {return fXXErr;}
     73    Float_t GetXYErr() {return fXYErr;}
     74    Float_t GetYYErr() {return fYYErr;}
    6875
    6976    void Reset();
     
    7279    void SetCalcValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis);
    7380    void SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chi, Int_t ndof);
     81    void SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chi, Int_t ndof, Float_t xx, Float_t xy, Float_t yy);
    7482
    7583    void Paint(Option_t *opt=NULL);
Note: See TracChangeset for help on using the changeset viewer.