Changeset 5034
- Timestamp:
- 09/15/04 16:40:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillas.cc
r4826 r5034 61 61 62 62 #include <TArrayF.h> 63 64 #include <TLine.h> 63 65 #include <TEllipse.h> 64 66 #include <TVector2.h> … … 165 167 void MHillas::Paint(Option_t *opt) 166 168 { 169 static const Float_t sOffsetW=40.0; 170 static const Float_t sOffsetL=266.0; 171 167 172 if (fLength<0 || fWidth<0) 168 173 return; 169 174 175 const Float_t l = fLength+sOffsetL; 176 const Float_t w = fWidth +sOffsetW; 177 178 TLine line; 179 line.SetLineWidth(1); 180 line.SetLineColor(kRed); 181 line.Paint(); 182 183 // Length line 184 line.PaintLine(-l*fCosDelta+fMeanX, -l*fSinDelta+fMeanY, 185 +l*fCosDelta+fMeanX, +l*fSinDelta+fMeanY); 186 187 188 // Width line 189 line.PaintLine(+w*fSinDelta+fMeanX, -w*fCosDelta+fMeanY, 190 -w*fSinDelta+fMeanX, +w*fCosDelta+fMeanY); 191 170 192 TEllipse e(fMeanX, fMeanY, fLength, fWidth, 0, 360, fDelta*kRad2Deg+180); 171 193 e.SetLineWidth(2); 194 e.SetLineColor(kGreen); 172 195 e.Paint(); 173 196 }
Note:
See TracChangeset
for help on using the changeset viewer.