]> git.uio.no Git - u/mrichter/AliRoot.git/blame - prod/acrcaf/qa_pp/plot_macros/plotQPt_Eta.C
adding LED Ref FEE channels to PED DA and execute LED DA for calibration events only
[u/mrichter/AliRoot.git] / prod / acrcaf / qa_pp / plot_macros / plotQPt_Eta.C
CommitLineData
08cff48a 1{
2gROOT->SetStyle("Plain");
3gStyle->SetOptStat(0);
4gStyle->SetPalette(1);
5
6//open files and get lists
7TList *l;
8TFile f0("QAsym.proof.root");
9l = (TList *)f0.Get("QAsymHists");
10
11
12TH1F* fHpos;
13TH1F* fHpneg;
14
15fHpos= (TH1F*) l->FindObject("fRecQPtPosEta");
16fHpos->SetLineWidth(2);
17
18fHneg= (TH1F*) l->FindObject("fRecQPtNegEta");
19fHneg->SetLineColor(kRed);
20fHneg->SetLineWidth(2);
21
22TLegend *legp;
23legp= new TLegend(0.9,0.65,0.65,0.9);
24legp->SetFillColor(kWhite);
25
26TF1 *fun0, *fun1;
27fun0= new TF1("fun0","gaus",-5.0,5.0);
28fun1= new TF1("fun1","gaus",-5.0,5.0);
29fun0->SetLineColor(kBlack);
30fun1->SetLineColor(kRed);
31
32legp->AddEntry(fun0,"positive #eta","l");
33legp->AddEntry(fun1,"negative #eta","l");
34
35TCanvas * dca = new TCanvas("pt", "pt", 100, 100, 1020, 480);
36dca->Divide(2,1);
37dca->cd(1);
38fHpos->DrawClone("");
39fHpos->SetTitle("");
40fHpos->SetYTitle("");
41fHneg->DrawClone("same");
42gPad->SetLogy();
43legp->Draw();
44dca->cd(2);
45fHpos->Divide(fHneg);
46fHpos->Draw("");
47fHpos->SetLineColor(kBlue);
48fHpos->SetTitle("Yield_{positive #eta}/Yield_{negative #eta}");
49fHpos->SetYTitle("");
50
51
52}
53
54
55
56}