File indexing completed on 2024-04-06 11:57:23
0001 void PlotDiffs (){
0002
0003 TFile f1("test1.root");
0004 f1.cd();
0005 TTree * tree1 = (TTree *) gROOT->FindObject("theTree");
0006 TFile f2("test2.root");
0007 f2.cd();
0008 TTree * tree2 = (TTree *) gROOT->FindObject("theTree");
0009 TFile f3("test3.root");
0010 f3.cd();
0011 TTree * tree3 = (TTree *) gROOT->FindObject("theTree");
0012 TFile f4("test4.root");
0013 f4.cd();
0014 TTree * tree4 = (TTree *) gROOT->FindObject("theTree");
0015
0016 TCanvas c1("c1","c1",10,10,800,800);
0017 c1.Divide(3,3);
0018
0019 c1.cd(1);
0020 tree4->Draw("dtx");
0021 tree2->Draw("dtx","","pesame");
0022
0023
0024
0025 c1.cd(2);
0026 tree4->Draw("dty");
0027 tree2->Draw("dty","","pesame");
0028
0029
0030
0031 c1.cd(3);
0032 tree4->Draw("dtz");
0033 tree2->Draw("dtz","","pesame");
0034
0035
0036
0037 c1.cd(4);
0038 tree4->Draw("dkx");
0039 tree2->Draw("dkx","","pesame");
0040
0041
0042
0043 c1.cd(5);
0044 tree4->Draw("dky");
0045 tree2->Draw("dky","","pesame");
0046
0047
0048
0049 c1.cd(6);
0050 tree4->Draw("dkz");
0051 tree2->Draw("dkz","","pesame");
0052
0053
0054
0055 c1.cd(7);
0056 tree4->Draw("dnx");
0057 tree2->Draw("dnx","","pesame");
0058
0059
0060
0061 c1.cd(8);
0062 tree4->Draw("dny");
0063 tree2->Draw("dny","","pesame");
0064
0065
0066
0067 c1.cd(9);
0068 tree4->Draw("dnz");
0069 tree2->Draw("dnz","","pesame");
0070
0071
0072
0073 c1.SaveAs("prova.eps");
0074 }