Changeset 2416 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 10/20/03 21:32:30 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r2414 r2416 278 278 gStyle->SetPalette(50, c); 279 279 } 280 /* 280 281 281 // -------------------------------------------------------------------------- 282 282 // … … 296 296 pad->cd(1); 297 297 gPad->SetBorderMode(0); 298 MH::Draw (*fWidth, *fLength, "Width'n'Length");298 MH::DrawSame(*fWidth, *fLength, "Width'n'Length"); 299 299 300 300 pad->cd(2); … … 323 323 pad->Update(); 324 324 } 325 */326 327 // --------------------------------------------------------------------------328 //329 // Creates a new canvas and draws the four histograms into it.330 // Be careful: The histograms belongs to this object and won't get deleted331 // together with the canvas.332 //333 void MHHillas::DrawTS(TVirtualPad *p, Option_t *)334 {335 TVirtualPad *pad = p ? p : MakeDefCanvas(this);336 pad->SetBorderMode(0);337 338 MParContainer::DrawTS(pad);339 340 pad->Divide(2,3);341 342 p = pad->GetPad(1);343 p->SetBorderMode(0);344 MH::DrawSame(*fWidth, *fLength, "Width'n'Length", p);345 346 p = pad->GetPad(2);347 p->SetBorderMode(0);348 MParContainer::DrawTS(fDistC, p);349 350 p = pad->GetPad(3);351 p->SetBorderMode(0);352 p->SetLogx();353 MParContainer::DrawTS(fSize, p);354 355 p = pad->GetPad(4);356 p->SetBorderMode(0);357 p->SetPad(0.51, 0.01, 0.99, 0.65);358 SetColors();359 MParContainer::DrawTS(fCenter, p, "colz");360 361 p = pad->GetPad(5);362 p->SetBorderMode(0);363 MParContainer::DrawTS(fDelta, p);364 365 delete pad->GetPad(6);366 367 pad->Modified();368 pad->Update();369 }370 371 325 372 326 TH1 *MHHillas::GetHistByName(const TString name) -
trunk/MagicSoft/Mars/mimage/MHHillas.h
r2414 r2416 51 51 TH2F *GetHistCenter() { return fCenter; } 52 52 53 //void Draw(Option_t *opt=NULL); 54 void DrawTS(TVirtualPad *pad=NULL, Option_t *opt=NULL); 53 void Draw(Option_t *opt=NULL); 55 54 56 55 //Int_t DistancetoPrimitive(Int_t px, Int_t py) { return 0; } -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r2414 r2416 198 198 // together with the canvas. 199 199 // 200 void MHHillasSrc::Draw TS(TVirtualPad *p,Option_t *)201 { 202 TVirtualPad *pad = p ? p: MakeDefCanvas(this);200 void MHHillasSrc::Draw(Option_t *) 201 { 202 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); 203 203 pad->SetBorderMode(0); 204 204 205 // 206 // Add this object to the given pad 207 // 208 MParContainer::DrawTS(pad); 205 AppendPad(""); 209 206 210 207 // FIXME: Display Source position 211 208 212 //213 // Fill the pad with histograms214 //215 209 pad->Divide(2, 2); 216 210 217 p = pad->GetPad(1); 218 p->SetBorderMode(0); 219 MParContainer::DrawTS(fAlpha, p); 220 221 p = pad->GetPad(2); 222 p->SetBorderMode(0); 223 MParContainer::DrawTS(fDist, p); 224 225 delete pad->GetPad(3); 226 227 p = pad->GetPad(4); 228 p->SetBorderMode(0); 229 MParContainer::DrawTS(fCosDA, p); 211 pad->cd(1); 212 gPad->SetBorderMode(0); 213 fAlpha->Draw(); 214 215 pad->cd(2); 216 gPad->SetBorderMode(0); 217 fDist->Draw(); 218 219 pad->cd(4); 220 gPad->SetBorderMode(0); 221 //gPad->SetLogy(); 222 fCosDA->Draw(); 230 223 231 224 pad->Modified(); -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.h
r2414 r2416 35 35 TH1F *GetHistCosDeltaAlpha() { return fCosDA; } 36 36 37 //void Draw(Option_t *opt=NULL); 38 void DrawTS(TVirtualPad *pad=NULL, Option_t *opt=NULL); 37 void Draw(Option_t *opt=NULL); 39 38 void Paint(Option_t *opt); 40 39
Note:
See TracChangeset
for help on using the changeset viewer.