2 gROOT->SetStyle("Plain");
6 //open files and get lists
8 TFile f0("QAsym.proof.root");
9 l = (TList *)f0.Get("QAsymHists");
15 fHpos= (TH1F*) l->FindObject("fRecQPtPosEta");
16 fHpos->SetLineWidth(2);
18 fHneg= (TH1F*) l->FindObject("fRecQPtNegEta");
19 fHneg->SetLineColor(kRed);
20 fHneg->SetLineWidth(2);
23 legp= new TLegend(0.9,0.65,0.65,0.9);
24 legp->SetFillColor(kWhite);
27 fun0= new TF1("fun0","gaus",-5.0,5.0);
28 fun1= new TF1("fun1","gaus",-5.0,5.0);
29 fun0->SetLineColor(kBlack);
30 fun1->SetLineColor(kRed);
32 legp->AddEntry(fun0,"positive #eta","l");
33 legp->AddEntry(fun1,"negative #eta","l");
35 TCanvas * dca = new TCanvas("pt", "pt", 100, 100, 1020, 480);
41 fHneg->DrawClone("same");
47 fHpos->SetLineColor(kBlue);
48 fHpos->SetTitle("Yield_{positive #eta}/Yield_{negative #eta}");