My Root Cheat Sheet

run a script in the background & pass a parameter ,3, then redirect the output into a file.

root -b -q 'myMacro.C(3)' > myMacro.log
root -b -q myMacro.C > myMacro.log
root -b -q 'myMacro.C(\"text\")' > myMacro.log
root -b -q myMacro.so > myMacro.log

compile instead of CINT:

.L make_dilution_punzi_templates_bs.C++

TF1 f1("func1","sin(x)/x",0,10)
f1.Draw()

TF1 *fa2 = new TF1("fa2","TMath::DiLog(x)",0,10);
fa2->Draw();
 

About

Search

PISIKA Copyright © 2009