Changeset 6907 for trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
- Timestamp:
- 04/04/05 10:18:01 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r5142 r6907 244 244 // together with the canvas. 245 245 // 246 void MHHillasExt::Draw(Option_t * )246 void MHHillasExt::Draw(Option_t *o) 247 247 { 248 248 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); … … 251 251 AppendPad(""); 252 252 253 pad->Divide(2, 2); 253 // FIXME: If same-option given make two independant y-axis! 254 const TString opt(o); 255 const Bool_t same = opt.Contains("same"); 256 257 if (!same) 258 pad->Divide(2,2); 259 else 260 { 261 fHM3Long.SetLineColor(kMagenta); 262 fHM3Trans.SetLineColor(kCyan); 263 264 fHAsym.SetLineColor(kBlue); 265 fHMaxDist.SetLineColor(kBlue); 266 } 254 267 255 268 pad->cd(1); 256 269 gPad->SetBorderMode(0); 257 MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments" );270 MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments", same); 258 271 259 272 pad->cd(3); 260 273 gPad->SetBorderMode(0); 261 fHAsym.Draw( );274 fHAsym.Draw(same?"same":""); 262 275 263 276 pad->cd(2); 264 277 gPad->SetBorderMode(0); 265 fHMaxDist.Draw( );278 fHMaxDist.Draw(same?"same":""); 266 279 267 280 delete pad->GetPad(4);
Note:
See TracChangeset
for help on using the changeset viewer.