Ignore:
Timestamp:
04/28/03 10:11:47 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhistmc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhistmc/MHMcDifRate.cc

    r2015 r2017  
    8888void MHMcDifRate::Draw(Option_t *option)
    8989{
    90     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     90    TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this);
    9191    pad->SetBorderMode(0);
    9292
  • trunk/MagicSoft/Mars/mhistmc/MHMcEfficiency.cc

    r2015 r2017  
    9797void MHMcEfficiency::Draw(Option_t *option)
    9898{
    99     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     99    TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this);
    100100    pad->SetBorderMode(0);
    101101
  • trunk/MagicSoft/Mars/mhistmc/MHMcEfficiencyEnergy.cc

    r2015 r2017  
    9292void MHMcEfficiencyEnergy::Draw(Option_t *option)
    9393{
    94     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     94    TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this);
    9595    pad->SetBorderMode(0);
    9696
  • trunk/MagicSoft/Mars/mhistmc/MHMcEfficiencyImpact.cc

    r2015 r2017  
    9292void MHMcEfficiencyImpact::Draw(Option_t *option)
    9393{
    94     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     94    TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this);
    9595    pad->SetBorderMode(0);
    9696
     
    103103    pad->Modified();
    104104    pad->Update();
    105 }
    106 
    107 TObject *MHMcEfficiencyImpact::DrawClone(Option_t *option) const
    108 {
    109     TCanvas *c = MH::MakeDefCanvas(&fHist);
    110 
    111     c->SetLogx();
    112 
    113     //
    114     // This is necessary to get the expected bahviour of DrawClone
    115     //
    116     gROOT->SetSelectedPad(NULL);
    117 
    118     ((TH1D&)fHist).DrawCopy(option);
    119 
    120     c->Modified();
    121     c->Update();
    122 
    123     return c;
    124105}
    125106
  • trunk/MagicSoft/Mars/mhistmc/MHMcEnergy.cc

    r2015 r2017  
    170170void MHMcEnergy::Draw(Option_t *option)
    171171{
    172     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     172    TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this);
    173173    pad->SetBorderMode(0);
    174174
  • trunk/MagicSoft/Mars/mhistmc/MHMcEnergyImpact.cc

    r2015 r2017  
    128128void MHMcEnergyImpact::Draw(Option_t *option)
    129129{
    130     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     130    TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this);
    131131    pad->SetBorderMode(0);
    132132
  • trunk/MagicSoft/Mars/mhistmc/MHMcEnergyMigration.cc

    r2015 r2017  
    111111void MHMcEnergyMigration::Draw(Option_t *opt)
    112112{
    113     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fHist);
     113    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this);
    114114    pad->SetBorderMode(0);
    115115
     
    126126    h->SetTitle("Distribution of E_{true}");
    127127    h->SetXTitle("E_{true} [GeV]");
     128    h->SetBit(kCanDelete);
    128129    h->Draw(opt);
    129     h->SetBit(kCanDelete);
    130130
    131131    pad->cd(2);
     
    135135    h->SetTitle("Distribution of E_{est}");
    136136    h->SetXTitle("E_{est} [GeV]");
     137    h->SetBit(kCanDelete);
    137138    h->Draw(opt);
    138     h->SetBit(kCanDelete);
    139139
    140140    pad->cd(3);
     
    143143    h->SetTitle("Distribution of \\Theta");
    144144    h->SetXTitle("\\Theta [\\circ]");
     145    h->SetBit(kCanDelete);
    145146    h->Draw(opt);
    146     h->SetBit(kCanDelete);
    147147
    148148    pad->cd(4);
  • trunk/MagicSoft/Mars/mhistmc/MHMcRate.cc

    r2015 r2017  
    255255}
    256256
    257 q
Note: See TracChangeset for help on using the changeset viewer.