Changeset 1966 for trunk/MagicSoft/Mars/mhist/MHMcIntRate.cc
- Timestamp:
- 04/20/03 12:51:47 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHMcIntRate.cc
r1606 r1966 81 81 } 82 82 83 //-------------------------------------------------------------------------84 //85 // Defualt Destructor86 //87 MHMcIntRate::~MHMcIntRate()88 {89 }90 91 83 // ------------------------------------------------------------------------ 92 84 // … … 95 87 void MHMcIntRate::Draw(Option_t *option) 96 88 { 97 if (!gPad)98 MH::MakeDefCanvas(&fHist);89 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 90 pad->SetBorderMode(0); 99 91 100 gPad->SetLogx(); 92 AppendPad(""); 93 94 pad->SetLogx(); 101 95 102 96 fHist.Draw(option); 103 97 104 gPad->Modified(); 105 gPad->Update(); 106 } 107 108 TObject *MHMcIntRate::DrawClone(Option_t *option) const 109 { 110 TCanvas *c = MH::MakeDefCanvas(&fHist); 111 112 c->SetLogx(); 113 114 // 115 // This is necessary to get the expected bahviour of DrawClone 116 // 117 gROOT->SetSelectedPad(NULL); 118 119 ((TH1D&)fHist).DrawCopy(option); 120 121 c->Modified(); 122 c->Update(); 123 124 return c; 98 pad->Modified(); 99 pad->Update(); 125 100 } 126 101
Note:
See TracChangeset
for help on using the changeset viewer.