I have example code like the following (don’t worry about efficiency, just for a short simple example).
c = ROOT.TCanvas("test", "test", 200, 10, 700, 500)
c.Print("file.pdf[")
c = ROOT.TCanvas("test", "test", 200, 10, 700, 500)
t.Draw("AntiKt10LCTopoJetsAux.m")
c.Print("file.pdf", "Title:m")
c = ROOT.TCanvas("test", "test", 200, 10, 700, 500)
t.Draw("AntiKt10LCTopoJetsAux.pt")
c.Print("file.pdf", "Title:pt")
c = ROOT.TCanvas("test", "test", 200, 10, 700, 500)
t.Draw("AntiKt10LCTopoJetsAux.eta")
c.Print("file.pdf", "Title:eta")
c = ROOT.TCanvas("test", "test", 200, 10, 700, 500)
t.Draw("AntiKt10LCTopoJetsAux.phi")
c.Print("file.pdf", "Title:phi")
c.Print("file.pdf]")
I followed the documentation here: root.cern.ch/root/html/TPDF.html
It seems to work great, but I would like to be able to group a bunch of properties of a given collection of objects under a section, with subsections such as pt, mass, eta, phi, etc. EG: what I have above is:
M
Pt
Eta
Phi
and I would like something like
AntiKt10LCTopoJets
|* M
|* Pt
|* Eta
|* Phi
AntiKt4LCTopoJets
|* ...
|* ...
...
Is this supported at all? (NB: if you omit the title for even just one of them, such as for the Pt plot, when making the PDF – it doesn’t correctly set the titles of the later ones).