Changeset 14891 for trunk/Mars/mpointing
- Timestamp:
- 02/13/13 10:08:18 (12 years ago)
- Location:
- trunk/Mars/mpointing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mpointing/MHSrcPosCam.cc
r9851 r14891 57 57 // Default Constructor 58 58 // 59 MHSrcPosCam::MHSrcPosCam( Bool_t wobble, const char *name, const char *title)59 MHSrcPosCam::MHSrcPosCam(Float_t offset, const char *name, const char *title) 60 60 : fTimeEffOn(NULL), fEffOnTime(NULL), fSourcePos(NULL), fGeom(NULL), 61 fPositions("TVector2", 50000) 61 fPositions("TVector2", 50000), fWobbleOffset(offset) 62 62 { 63 63 // … … 78 78 fHist.SetContour(99); 79 79 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; 82 82 83 83 const MBinning bins(n, -x, x); // bin=0.01ø ~0.5SE … … 214 214 el.SetLineColor(kBlack); 215 215 el.SetLineStyle(kDashed); 216 el.DrawEllipse(0, 0, 0.4, 0, 0, 360, 0);216 el.DrawEllipse(0, 0, fWobbleOffset, 0, 0, 360, 0); 217 217 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 37 37 Int_t fNum; //! Position in array 38 38 39 Float_t fWobbleOffset; 40 39 41 public: 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); 41 43 42 44 // MH
Note:
See TracChangeset
for help on using the changeset viewer.