Changeset 1791 for trunk


Ignore:
Timestamp:
02/25/03 16:22:02 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1790 r1791  
    11
    22                                                         -*-*- END -*-*-
     3 2003/02/25: Abelardo Moralejo
     4
     5    * mmontecarlo/MMcTriggerRateCalc.cc
     6      - Added axis labels in graphic output.
     7
    38 2003/02/24: Abelardo Moralejo
    49
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc

    r1790 r1791  
    384384      fHist[i]->SetMarkerStyle(20);
    385385      fHist[i]->SetMarkerSize(.5);
    386       fHist[i]->SetMaximum(1.2*GetRate(0)->GetTriggerRate());
    387       fHist[i]->SetMinimum(0.5*GetRate(fNum-1)->GetTriggerRate());
    388     }
     386    }
     387
     388  c->DrawFrame (xmin, 0.5*GetRate(fNum-1)->GetTriggerRate(), xmax, 1.2*GetRate(0)->GetTriggerRate(), "Trigger rate for multiplicity = 3, 4, 5");
     389
     390  c->SetLogy();
     391  c->SetGridy();
     392  c->SetGridx();
    389393
    390394  fHist[2]->SetLineColor(1);
    391395  fHist[2]->SetMarkerColor(1);
    392   fHist[2]->Draw();
     396  fHist[2]->SetMinimum(0.5*GetRate(fNum-1)->GetTriggerRate());
     397  fHist[2]->GetXaxis()->SetTitle("Discr. threshold (mV)");
     398  fHist[2]->GetYaxis()->SetTitle("Trigger rate (Hz)");
     399  fHist[2]->GetYaxis()->SetTitleOffset(1.2);
     400  fHist[2]->Draw("axis");
     401  fHist[2]->Draw("same");
    393402
    394403  fHist[3]->SetLineColor(3);
     
    400409  fHist[4]->SetMarkerColor(4);
    401410
    402   c->SetLogy();
    403   c->SetGridy();
    404   c->SetGridx();
    405 
    406411  return;
    407412}
Note: See TracChangeset for help on using the changeset viewer.