11void ReverseXAxis(
TH1 *
h)
14 h->GetXaxis()->SetLabelOffset(999);
15 h->GetXaxis()->SetTickLength(0);
22 h->GetXaxis()->GetXmin(),
23 h->GetXaxis()->GetXmax(),
25 newxaxis->SetLabelOffset(-0.03);
29void ReverseYAxis(
TH1 *
h)
32 h->GetYaxis()->SetLabelOffset(999);
33 h->GetYaxis()->SetTickLength(0);
40 h->GetYaxis()->GetXmin(),
41 h->GetYaxis()->GetXmax(),
43 newyaxis->SetLabelOffset(0.01);
49 TH2F *hpxpy =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
52 for (
Int_t i = 0; i < 25000; i++) {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
2-D histogram with a float per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.
This is the base class for the ROOT Random number generators.