Changeset 1966 for trunk/MagicSoft/Mars/mhist/MHThetabarTime.cc
- Timestamp:
- 04/20/03 12:51:47 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHThetabarTime.cc
r1412 r1966 63 63 64 64 fHist.SetXTitle("time [s]"); 65 fHist.SetYTitle(" Theta-bar[ \\circ]");65 fHist.SetYTitle("\\bar{\\Theta} [ \\circ]"); 66 66 } 67 67 … … 100 100 // -------------------------------------------------------------------------- 101 101 // 102 // Draw a copy of the histogram103 //104 TObject *MHThetabarTime::DrawClone(Option_t *opt) const105 {106 TCanvas &c = *MakeDefCanvas("ThetabarTime", "Thetabar vs. time");107 108 gROOT->SetSelectedPad(NULL);109 110 ((TProfile*)&fHist)->DrawCopy(opt);111 112 c.Modified();113 c.Update();114 115 return &c;116 }117 118 // --------------------------------------------------------------------------119 //120 102 // Draw the histogram 121 103 // 122 104 void MHThetabarTime::Draw(Option_t *opt) 123 105 { 124 if (!gPad)125 MakeDefCanvas("ThetabarTime", "Thetabar vs. time");106 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); 107 pad->SetBorderMode(0); 126 108 127 fHist.DrawCopy(opt);109 AppendPad(""); 128 110 129 gPad->Modified(); 130 gPad->Update(); 111 fHist.Draw(opt); 112 113 pad->Modified(); 114 pad->Update(); 131 115 } 132 116
Note:
See TracChangeset
for help on using the changeset viewer.