Changeset 1966 for trunk/MagicSoft/Mars/mhist/MHSigmaPixel.cc
- Timestamp:
- 04/20/03 12:51:47 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHSigmaPixel.cc
r1951 r1966 124 124 void MHSigmaPixel::Draw(Option_t *opt) 125 125 { 126 //gStyle->SetOptStat(1000); 127 if (!gPad) 128 MakeDefCanvas("SigmaPixel", fTitle); 129 130 fHist.Draw(opt); 131 132 gPad->Modified(); 133 gPad->Update(); 126 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); 127 pad->SetBorderMode(0); 128 129 AppendPad(""); 130 131 fHist.Draw(opt); 132 133 gPad->Modified(); 134 gPad->Update(); 134 135 } 135 136 136 // --------------------------------------------------------------------------137 //138 // Draw copies of the histogram139 //140 TObject *MHSigmaPixel::DrawClone(Option_t *opt) const141 {142 //gStyle->SetOptStat(1000);143 TCanvas &c = *MakeDefCanvas("SigmaPixel", fTitle);144 145 ((TH2&)fHist).DrawCopy(opt);146 147 c.Modified();148 c.Update();149 150 return &c;151 }152
Note:
See TracChangeset
for help on using the changeset viewer.