Changeset 2017 for trunk/MagicSoft/Mars/mhistmc
- Timestamp:
- 04/28/03 10:11:47 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mhistmc
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhistmc/MHMcDifRate.cc
r2015 r2017 88 88 void MHMcDifRate::Draw(Option_t *option) 89 89 { 90 TVirtualPad *pad = gPad ? gPad : M akeDefCanvas(fHist);90 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 91 91 pad->SetBorderMode(0); 92 92 -
trunk/MagicSoft/Mars/mhistmc/MHMcEfficiency.cc
r2015 r2017 97 97 void MHMcEfficiency::Draw(Option_t *option) 98 98 { 99 TVirtualPad *pad = gPad ? gPad : M akeDefCanvas(fHist);99 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 100 100 pad->SetBorderMode(0); 101 101 -
trunk/MagicSoft/Mars/mhistmc/MHMcEfficiencyEnergy.cc
r2015 r2017 92 92 void MHMcEfficiencyEnergy::Draw(Option_t *option) 93 93 { 94 TVirtualPad *pad = gPad ? gPad : M akeDefCanvas(fHist);94 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 95 95 pad->SetBorderMode(0); 96 96 -
trunk/MagicSoft/Mars/mhistmc/MHMcEfficiencyImpact.cc
r2015 r2017 92 92 void MHMcEfficiencyImpact::Draw(Option_t *option) 93 93 { 94 TVirtualPad *pad = gPad ? gPad : M akeDefCanvas(fHist);94 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 95 95 pad->SetBorderMode(0); 96 96 … … 103 103 pad->Modified(); 104 104 pad->Update(); 105 }106 107 TObject *MHMcEfficiencyImpact::DrawClone(Option_t *option) const108 {109 TCanvas *c = MH::MakeDefCanvas(&fHist);110 111 c->SetLogx();112 113 //114 // This is necessary to get the expected bahviour of DrawClone115 //116 gROOT->SetSelectedPad(NULL);117 118 ((TH1D&)fHist).DrawCopy(option);119 120 c->Modified();121 c->Update();122 123 return c;124 105 } 125 106 -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergy.cc
r2015 r2017 170 170 void MHMcEnergy::Draw(Option_t *option) 171 171 { 172 TVirtualPad *pad = gPad ? gPad : M akeDefCanvas(fHist);172 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 173 173 pad->SetBorderMode(0); 174 174 -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyImpact.cc
r2015 r2017 128 128 void MHMcEnergyImpact::Draw(Option_t *option) 129 129 { 130 TVirtualPad *pad = gPad ? gPad : M akeDefCanvas(fHist);130 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 131 131 pad->SetBorderMode(0); 132 132 -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyMigration.cc
r2015 r2017 111 111 void MHMcEnergyMigration::Draw(Option_t *opt) 112 112 { 113 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas( fHist);113 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); 114 114 pad->SetBorderMode(0); 115 115 … … 126 126 h->SetTitle("Distribution of E_{true}"); 127 127 h->SetXTitle("E_{true} [GeV]"); 128 h->SetBit(kCanDelete); 128 129 h->Draw(opt); 129 h->SetBit(kCanDelete);130 130 131 131 pad->cd(2); … … 135 135 h->SetTitle("Distribution of E_{est}"); 136 136 h->SetXTitle("E_{est} [GeV]"); 137 h->SetBit(kCanDelete); 137 138 h->Draw(opt); 138 h->SetBit(kCanDelete);139 139 140 140 pad->cd(3); … … 143 143 h->SetTitle("Distribution of \\Theta"); 144 144 h->SetXTitle("\\Theta [\\circ]"); 145 h->SetBit(kCanDelete); 145 146 h->Draw(opt); 146 h->SetBit(kCanDelete);147 147 148 148 pad->cd(4); -
trunk/MagicSoft/Mars/mhistmc/MHMcRate.cc
r2015 r2017 255 255 } 256 256 257 q
Note:
See TracChangeset
for help on using the changeset viewer.