flush is an alternative to endl that doesn't create a new line when you finish a COUT statement

In root, after doing TFile* file = TFile::Open(path), do TH1F h = (TH1F) file->Get("name"); Then can do h->Draw(options)

To draw multiple histograms on the same page, open them as above, initialise a canvas, then do canvas->Divide(4, 3) to get a 4 x 3 grid of histograms. Then canvas->cd(n) for the nth histogram in the list of (12). And just call h->SetTitle("title") and h->Draw() as one would before.

-- HamishGordon - 20 Aug 2008

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2020-08-18 - TWikiAdminUser
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox/SandboxArchive All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback