Ignore:
Timestamp:
03/28/07 13:43:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MHSrcPosCam.cc

    r7887 r8383  
    1818!   Author(s): Thomas Bretz, 2/2006 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2006
     20!   Copyright: MAGIC Software Development, 2007
    2121!
    2222!
     
    3434
    3535#include <TCanvas.h>
     36#include <TEllipse.h>
    3637
    3738#include "MGeomCam.h"
     
    5556// Default Constructor
    5657//
    57 MHSrcPosCam::MHSrcPosCam(const char *name, const char *title)
     58MHSrcPosCam::MHSrcPosCam(Bool_t wobble, const char *name, const char *title)
    5859    : fTimeEffOn(NULL), fEffOnTime(NULL), fSourcePos(NULL)
    5960{
     
    7576    fHist.SetContour(99);
    7677
     78    const Float_t x = wobble ? 0.5499 : 0.2499;
     79    const Int_t   n = wobble ? 101    : 51;
    7780
    7881    MBinning bins;
    79     bins.SetEdges(51, -0.2499, 0.2499); // bin=0.01ø  ~0.5SE
     82    bins.SetEdges(n, -x, x); // bin=0.01ø  ~0.5SE
    8083
    8184    MH::SetBinning(&fHist, &bins, &bins);
     
    184187    gPad->SetGridy();
    185188
     189    AppendPad();
     190
    186191    fHist.Draw("colz");
    187192
    188     AppendPad();
    189 }
    190 
     193    if (fHist.GetXaxis()->GetXmax()>0.5)
     194    {
     195        TEllipse el;
     196        el.SetFillStyle(4000);
     197        el.SetLineColor(kMagenta);
     198        el.DrawEllipse(0, 0, 0.4, 0, 0, 360, 0);
     199    }
     200}
     201
Note: See TracChangeset for help on using the changeset viewer.