Changeset 14891


Ignore:
Timestamp:
Feb 13, 2013, 10:08:18 AM (7 years ago)
Author:
tbretz
Message:
Allow to set the wobble offset directly.
Location:
trunk/Mars/mpointing
Files:
2 edited

Legend:

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

    r9851 r14891  
    5757// Default Constructor
    5858//
    59 MHSrcPosCam::MHSrcPosCam(Bool_t wobble, const char *name, const char *title)
     59MHSrcPosCam::MHSrcPosCam(Float_t offset, const char *name, const char *title)
    6060    : fTimeEffOn(NULL), fEffOnTime(NULL), fSourcePos(NULL), fGeom(NULL),
    61     fPositions("TVector2", 50000)
     61    fPositions("TVector2", 50000), fWobbleOffset(offset)
    6262{
    6363    //
     
    7878    fHist.SetContour(99);
    7979
    80     const Float_t x = wobble ? 0.5499 : 0.2499;
    81     const Int_t   n = wobble ? 101    : 51;
     80    const Float_t x = offset>0 ? offset+0.0499 : offset/2+0.0499;
     81    const Int_t   n = offset>0 ? 101           : 51;
    8282
    8383    const MBinning bins(n, -x, x); // bin=0.01ø  ~0.5SE
     
    214214        el.SetLineColor(kBlack);
    215215        el.SetLineStyle(kDashed);
    216         el.DrawEllipse(0, 0, 0.4, 0, 0, 360, 0);
     216        el.DrawEllipse(0, 0, fWobbleOffset, 0, 0, 360, 0);
    217217        el.SetLineColor(17);
    218         el.DrawEllipse(0, 0, 0.4-0.022, 0, 0, 360, 0);
    219         el.DrawEllipse(0, 0, 0.4+0.022, 0, 0, 360, 0);
    220     }
    221 }
    222 
     218        el.DrawEllipse(0, 0, fWobbleOffset-0.022, 0, 0, 360, 0);
     219        el.DrawEllipse(0, 0, fWobbleOffset+0.022, 0, 0, 360, 0);
     220    }
     221}
     222
  • trunk/Mars/mpointing/MHSrcPosCam.h

    r9338 r14891  
    3737    Int_t         fNum;            //! Position in array
    3838
     39    Float_t       fWobbleOffset;
     40
    3941public:
    40     MHSrcPosCam(Bool_t wobble=kTRUE, const char *name=NULL, const char *title=NULL);
     42    MHSrcPosCam(Float_t wobble=0.4, const char *name=NULL, const char *title=NULL);
    4143
    4244    // MH
Note: See TracChangeset for help on using the changeset viewer.