hey every one,
my macro is
TFile f1("ROOT1.root");
TTree *TREE1 = (TTree*)f1->Get("TREE1");
TREE1.SetLineColor(kBlack);
f1->cd();
TREE1->Draw("LEAF1>>h1(30,0,30)");
TFile *f2 ("ROOT2.root");
TTree *TREE2 = (TTree*)f2->Get("TREE2");
f2->cd();
TREE2.SetLineColor(kRed);
gPad->Update();
TREE2->Draw("LEAF2>>h1(30,0,30)", "same" );
and it gives the error:
Error in TTreeFormula::Compile: Bad numerical expression : “same”
and it draws only LEAF1.
I need to draw both leaves in one canvas, in order to compare them.
I appreciate any help.