Ignore:
Timestamp:
06/03/05 20:15:28 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmuon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.cc

    r7009 r7134  
    5252{
    5353    fName  = name  ? name  : "MMuonCalibPar";
    54     fTitle = title ? title : "Muon calibration parameters";
     54    fTitle = title ? title : "Parameters to calculate Muon calibration";
    5555
    5656    Reset();
     
    7676    *fLog << "Muon Parameters (" << GetName() << ")"       << endl;
    7777//    *fLog << " - Arc Length    [deg]   = " << fArcLength   << endl;
    78     *fLog << " - Arc Phi       [deg]   = " << fArcPhi      << endl;
    79     *fLog << " - Arc Width     [deg]   = " << fArcWidth    << endl;
    80     *fLog << " - Chi Arc Phi   [x2/ndf]= " << fChiArcPhi   << endl;
    81     *fLog << " - Chi Arc Width [x2/ndf]= " << fChiArcWidth << endl;
     78    *fLog << " - Arc Phi      [deg]   = " << fArcPhi      << endl;
     79    *fLog << " - Arc Width    [deg]   = " << fArcWidth    << endl;
     80    *fLog << " - Chi Arc Phi  [x2/ndf]= " << fChiArcPhi   << endl;
     81    *fLog << " - Chi Arc Width[x2/ndf]= " << fChiArcWidth << endl;
    8282//    *fLog << " - Est. I. P.    [m]     = " << fEstImpact   << endl;
    83     *fLog << " - Size of muon  [phe]   = " << fMuonSize    << endl;
    84     *fLog << " - Peak Phi      [deg]   = " << fPeakPhi     << endl;
     83    *fLog << " - Size of muon [phe]   = " << fMuonSize    << endl;
     84    *fLog << " - Peak Phi     [deg]   = " << fPeakPhi     << endl;
    8585}
    8686
  • trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc

    r7009 r7134  
    5454
    5555#include <TMinuit.h>
     56#include <TEllipse.h>
    5657
    5758#include "MLog.h"
     
    7778{
    7879    fName  = name  ? name  : "MMuonSearchPar";
    79     fTitle = title ? title : "Muon search parameters";
     80    fTitle = title ? title : "Parameters to find Muons";
    8081}
    8182
     
    261262    *fLog << all;
    262263    *fLog << "Muon Parameters (" << GetName() << ")" << endl;
    263     *fLog << " - Est. Radius   [mm] = " << fRadius  << endl;
    264     *fLog << " - Deviation     [mm] = " << fDeviation  << endl;
    265     *fLog << " - Center Pos. X [mm] = " << fCenterX << endl;
    266     *fLog << " - Center Pos. Y [mm] = " << fCenterY << endl;
     264    *fLog << " - Est. Radius     [mm] = " << fRadius  << endl;
     265    *fLog << " - Deviation       [mm] = " << fDeviation  << endl;
     266    *fLog << " - Center Pos. X   [mm] = " << fCenterX << endl;
     267    *fLog << " - Center Pos. Y   [mm] = " << fCenterY << endl;
    267268}
    268269
     
    271272    *fLog << all;
    272273    *fLog << "Muon Parameters (" << GetName() << ")" << endl;
    273     *fLog << " - Est. Radius   [deg] = " << fRadius*geom.GetConvMm2Deg()   << endl;
    274     *fLog << " - Deviation     [deg] = " << fDeviation*geom.GetConvMm2Deg()   << endl;
    275     *fLog << " - Center Pos. X [deg] = " << fCenterX*geom.GetConvMm2Deg()  << endl;
    276     *fLog << " - Center Pos. Y [deg] = " << fCenterY*geom.GetConvMm2Deg()  << endl;
    277 }
     274    *fLog << " - Est. Radius    [deg] = " << fRadius*geom.GetConvMm2Deg()   << endl;
     275    *fLog << " - Deviation      [deg] = " << fDeviation*geom.GetConvMm2Deg()   << endl;
     276    *fLog << " - Center Pos. X  [deg] = " << fCenterX*geom.GetConvMm2Deg()  << endl;
     277    *fLog << " - Center Pos. Y  [deg] = " << fCenterY*geom.GetConvMm2Deg()  << endl;
     278}
     279
     280// --------------------------------------------------------------------------
     281//
     282// Paint the ellipse corresponding to the parameters
     283//
     284void MMuonSearchPar::Paint(Option_t *opt)
     285{
     286    if (fRadius<180 || fRadius>400 || fDeviation>45)
     287        return;
     288
     289    TEllipse e1(fCenterX, fCenterY, fRadius-fDeviation, fRadius-fDeviation);
     290    TEllipse e2(fCenterX, fCenterY, fRadius+fDeviation, fRadius+fDeviation);
     291    e1.SetLineWidth(1);
     292    e2.SetLineWidth(1);
     293    e1.SetLineColor(kYellow);
     294    e2.SetLineColor(kYellow);
     295    e1.Paint();
     296    e2.Paint();
     297}
  • trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h

    r6979 r7134  
    3232    MMuonSearchPar(const char *name=NULL, const char *title=NULL);
    3333
     34    // MParContainer
    3435    void Reset();
    3536
     37    // Getter
    3638    Float_t GetRadius()    const { return fRadius; }
    3739    Float_t GetDeviation() const { return fDeviation; }
     
    3941    Float_t GetCenterY()   const { return fCenterY; }
    4042
     43    // MMuonSearchPar
    4144    void   CalcMinimumDeviation(const MGeomCam &geom, const MSignalCam &evt,
    4245                                Double_t &x, Double_t &y, Double_t &sigma, Double_t &rad);
     
    4548                const MHillas &hillas);
    4649
     50    // TObject
     51    void   Paint(Option_t *opt="");
    4752    void   Print(Option_t *opt=NULL) const;
    4853    void   Print(const MGeomCam &geom, Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.