Changeset 5080 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 09/16/04 17:00:50 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasSrc.cc
r4826 r5080 71 71 #include <TArrayF.h> 72 72 73 #include <TLine.h> 74 #include <TMarker.h> 75 73 76 #include "MLog.h" 74 77 #include "MLogManip.h" … … 179 182 } 180 183 184 void MHillasSrc::Paint(Option_t *opt) 185 { 186 const Float_t x = fSrcPos ? fSrcPos->GetX() : 0; 187 const Float_t y = fSrcPos ? fSrcPos->GetY() : 0; 188 189 TMarker m; 190 m.SetMarkerColor(kYellow); 191 m.SetMarkerStyle(kStar); 192 m.PaintMarker(x, y); 193 /* 194 m.SetMarkerColor(kMagenta); 195 m.PaintMarker(fDist*cos((fDCADelta-fAlpha)*TMath::DegToRad()), 196 fDist*sin((fDCADelta-fAlpha)*TMath::DegToRad())); 197 198 TLine line; 199 line.SetLineWidth(1); 200 line.SetLineColor(108); 201 202 line.PaintLine(-radius, y, radius, y); 203 line.PaintLine(x, -radius, x, radius); 204 205 // COG line 206 TLine line(x, y, meanX, meanY); 207 line.SetLineWidth(1); 208 line.SetLineColor(2); 209 line.Paint();*/ 210 } 211 181 212 // -------------------------------------------------------------------------- 182 213 // … … 191 222 *fLog << " - CosDeltaAlpha = " << fCosDeltaAlpha << endl; 192 223 *fLog << " - DCA [mm] = " << fDCA << endl; 193 *fLog << " - DCA delta [deg] = " << fDCADelta *TMath::RadToDeg()<< endl;224 *fLog << " - DCA delta [deg] = " << fDCADelta << endl; 194 225 } 195 226 … … 207 238 *fLog << " - CosDeltaAlpha = " << fCosDeltaAlpha << endl; 208 239 *fLog << " - DCA [deg] = " << fDCA*geom.GetConvMm2Deg() << endl; 209 *fLog << " - DCA delta [deg] = " << fDCADelta *TMath::RadToDeg()<< endl;240 *fLog << " - DCA delta [deg] = " << fDCADelta << endl; 210 241 } 211 242 -
trunk/MagicSoft/Mars/mimage/MHillasSrc.h
r4817 r5080 36 36 void Print(Option_t *opt=NULL) const; 37 37 void Print(const MGeomCam &geom) const; 38 void Paint(Option_t *opt=NULL); 38 39 39 40 virtual Int_t Calc(const MHillas &hillas);
Note:
See TracChangeset
for help on using the changeset viewer.