Changeset 1504 for trunk/MagicSoft/Mars/mhist/MHHillasExt.cc
- Timestamp:
- 08/16/02 11:47:30 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHHillasExt.cc
r1502 r1504 80 80 fHM3Trans.SetDirectory(NULL); 81 81 82 fHConc.SetName("Conc2"); 83 fHConc1.SetName("Conc1"); 84 fHAsym.SetName("Asymmetry"); 85 fHM3Long.SetName("3rd Mom Long"); 86 fHM3Trans.SetName("3rd Mom Trans"); 87 82 88 fHConc.SetTitle("Ratio: Conc"); 83 89 fHConc1.SetTitle("Ratio: Conc1"); … … 261 267 262 268 c.cd(1); 263 TObject *obj; 264 TLegend *l = new TLegend(0.75, 0.8, 0.9, 0.9); 265 obj = ((TH1F)fHConc1).DrawCopy(); 266 ((TH1*)obj)->SetTitle(" Concentrations "); 267 l->AddEntry(obj, "Conc1"); 268 obj = ((TH1F)fHConc).DrawCopy("same"); 269 l->AddEntry(obj, "Conc2"); 270 l->SetBit(kCanDelete); 271 l->Draw(); 269 DrawCopy(fHConc1, fHConc, "Concentrations"); 272 270 273 271 c.cd(2); 274 ((TH1 F)fHAsym).DrawCopy();272 ((TH1&)fHAsym).DrawCopy(); 275 273 276 274 c.cd(3); 277 ((TH1 F)fHM3Long).DrawCopy();275 ((TH1&)fHM3Long).DrawCopy(); 278 276 279 277 c.cd(4); 280 ((TH1 F)fHM3Trans).DrawCopy();278 ((TH1&)fHM3Trans).DrawCopy(); 281 279 282 280 c.Modified(); … … 300 298 301 299 gPad->cd(1); 302 fHConc1.Draw(); 303 fHConc.Draw("same"); 304 305 TLegend *l = new TLegend(0.75, 0.8, 0.9, 0.9); 306 l->AddEntry((TH1*)&fHConc1, "Conc 1"); 307 l->AddEntry((TH1*)&fHConc, "Conc"); 308 l->SetBit(kCanDelete); 309 l->Draw(); 300 MH::Draw(fHConc1, fHConc, "Concentrations"); 310 301 311 302 gPad->cd(2);
Note:
See TracChangeset
for help on using the changeset viewer.