GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Nice plots.
Nice plots. [message #7119] Fri, 25 July 2008 13:32 Go to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Hi all,

I know everyone likes his/her own style of plots. But anyway I'll share my stuff: In pandaroot/macro/mvd/Tools.C you will find a few helpful functions. Especially I'd like to point out that we had two frameworks ago a common root styleset for panda which the collaboration agreed on. I reanimated this one but could not resist to make some few changes to suit my taste.

To use it in a macro do:
  gROOT->LoadMacro(" ... mvd/Tools.C");
  LoadPandaStyle();

To have nice 2d histograms with a smooth palette use
  DrawNice2DHisto(hisxy);

index.php?t=getfile&id=4643&private=0

And finally for multiple Histograms in one plot (picture below)
  hisClustSize->Draw();
  hisClustSizeBot->SetLineColor(kRed);
  hisClustSizeTop->SetLineColor(kBlue);
  hisClustSizeBot->Draw("sames");
  hisClustSizeTop->Draw("sames");
  can7->Update();
  TPad* mypad=(TPad*)gPad;
  BetterStatBox(mypad);

index.php?t=getfile&id=4642&private=0



Feel free to contribute.

Greetings from Dresden, Ralf.

[Updated on: Fri, 25 July 2008 13:33]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: New classes for event display
Next Topic: Detector ID.
Goto Forum:
  


Current Time: Fri Apr 19 05:50:11 CEST 2024

Total time taken to generate the page: 0.00741 seconds