Changeset 19826 for trunk/Mars/hawc


Ignore:
Timestamp:
10/30/19 08:47:13 (5 years ago)
Author:
tbretz
Message:
Fixed a few minor problems which avoided to run the macro with root 6
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/hawc/plot_ranger.C

    r19797 r19826  
    8686    zero.SetLineColor(kBlue);
    8787
    88     TGraph *g[4];
    89 
    9088    TCanvas &c1 = d->AddTab("Bias");
    9189    c1.Divide(2,2);
     
    113111    // ------------------------------------------------------------------
    114112
    115     TF1 zero("zero", "0", -1e100, 1e100);
    116     zero.SetLineStyle(kDashed);
    117     zero.SetLineWidth(1);
    118     zero.SetLineColor(kBlue);
     113    TCanvas &c2 = d->AddTab("Resolution");
     114    c2.Divide(2,2);
    119115
    120     TCanvas &c1 = d->AddTab("Resolution");
    121     c1.Divide(2,2);
    122 
    123     c1.cd(1);
     116    c2.cd(1);
    124117    c.Draw("Predictions-True:True", "", "prof");
    125118    plot_resolution();
    126119
    127     c1.cd(2);
     120    c2.cd(2);
    128121    c.Draw("Predictions-True:Predictions", "", "prof");
    129122    plot_resolution();
    130123
    131     c1.cd(3);
     124    c2.cd(3);
    132125    c.Draw("(Predictions-True)/True:True", "", "prof");
    133126    plot_resolution();
    134127
    135     c1.cd(4);
     128    c2.cd(4);
    136129    c.Draw("(Predictions-True)/Predictions:Predictions", "", "prof");
    137130    plot_resolution();
     
    143136    TIter Next(leaves);
    144137    TObject *o=0;
    145     while (o=Next())
     138    while ((o=Next()))
    146139    {
    147140        TString name = o->GetName();
Note: See TracChangeset for help on using the changeset viewer.