Changeset 8383 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 03/28/07 13:43:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MHSrcPosCam.cc
r7887 r8383 18 18 ! Author(s): Thomas Bretz, 2/2006 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 200 620 ! Copyright: MAGIC Software Development, 2007 21 21 ! 22 22 ! … … 34 34 35 35 #include <TCanvas.h> 36 #include <TEllipse.h> 36 37 37 38 #include "MGeomCam.h" … … 55 56 // Default Constructor 56 57 // 57 MHSrcPosCam::MHSrcPosCam( const char *name, const char *title)58 MHSrcPosCam::MHSrcPosCam(Bool_t wobble, const char *name, const char *title) 58 59 : fTimeEffOn(NULL), fEffOnTime(NULL), fSourcePos(NULL) 59 60 { … … 75 76 fHist.SetContour(99); 76 77 78 const Float_t x = wobble ? 0.5499 : 0.2499; 79 const Int_t n = wobble ? 101 : 51; 77 80 78 81 MBinning bins; 79 bins.SetEdges( 51, -0.2499, 0.2499); // bin=0.01ø ~0.5SE82 bins.SetEdges(n, -x, x); // bin=0.01ø ~0.5SE 80 83 81 84 MH::SetBinning(&fHist, &bins, &bins); … … 184 187 gPad->SetGridy(); 185 188 189 AppendPad(); 190 186 191 fHist.Draw("colz"); 187 192 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.