Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:23

0001 void PlotDiffsOk (){
0002 
0003   TFile f1("test.root");
0004   
0005   TCanvas c1("c1","c1",10,10,800,1200);
0006   c1.Divide(3,4);
0007   TCanvas c2("c2","c2",10,10,800,1200);
0008   c2.Divide(3,4);
0009 
0010   c1.cd(1);
0011   theTree->Draw("dx");
0012  
0013   c1.cd(2);
0014   theTree->Draw("dy");
0015   
0016   c1.cd(3);
0017   theTree->Draw("dz");
0018   
0019   c1.cd(4);
0020   theTree->Draw("dtx","fabs(dtx)<0.04");
0021  
0022   c1.cd(5);
0023   theTree->Draw("dty","fabs(dty)<0.04");
0024 
0025   c1.cd(6);
0026   theTree->Draw("dtz","fabs(dtz)<0.006");
0027 
0028   c1.cd(7);
0029   theTree->Draw("dkx","fabs(dkx)<0.04");
0030 
0031   c1.cd(8);
0032   theTree->Draw("dky","fabs(dky)<0.04");
0033 
0034   c1.cd(9);
0035   theTree->Draw("dkz","fabs(dkz)<0.02");
0036 
0037   c1.cd(10);
0038   theTree->Draw("dnx","fabs(dnx)<0.04");
0039 
0040   c1.cd(11);
0041   theTree->Draw("dny","fabs(dny)<0.04");
0042  
0043   c1.cd(12);
0044   theTree->Draw("dnz","fabs(dnz)<0.04");
0045 
0046   c1.SaveAs("provaOk.eps");
0047 
0048   ////
0049   
0050   c2.cd(1);
0051   theTree->Draw("dx:Id");
0052 
0053   c2.cd(2);
0054   theTree->Draw("dy:Id");
0055   
0056   c2.cd(3);
0057   theTree->Draw("dz:Id");
0058   
0059   c2.cd(4);
0060   theTree->Draw("dtx:Id","fabs(dtx)<0.04");
0061  
0062   c2.cd(5);
0063   theTree->Draw("dty:Id","fabs(dty)<0.04");
0064 
0065   c2.cd(6);
0066   theTree->Draw("dtz:Id","fabs(dtz)<0.006");
0067 
0068   c2.cd(7);
0069   theTree->Draw("dkx:Id","fabs(dkx)<0.04");
0070 
0071   c2.cd(8);
0072   theTree->Draw("dky:Id","fabs(dky)<0.04");
0073 
0074   c2.cd(9);
0075   theTree->Draw("dkz:Id","fabs(dkz)<0.02");
0076 
0077   c2.cd(10);
0078   theTree->Draw("dnx:Id","fabs(dnx)<0.04");
0079 
0080   c2.cd(11);
0081   theTree->Draw("dny:Id","fabs(dny)<0.04");
0082  
0083   c2.cd(12);
0084   theTree->Draw("dnz:Id","fabs(dnz)<0.04");
0085 
0086   c2.SaveAs("provaOkScatt.eps");
0087 
0088   TCanvas c3("c3","c3",10,10,900,300);
0089   c3.Divide(3,1);
0090   c3.cd(1);
0091   theTree->Draw("errx");
0092  
0093   c3.cd(2);
0094   theTree->Draw("erry");
0095   
0096   c3.cd(3);
0097   theTree->Draw("errz");
0098   c3.SaveAs("provaErr.eps");
0099  
0100   TCanvas c4("c4","c4",10,10,900,300);
0101   c4.Divide(3,1);
0102   c4.cd(1);
0103   theTree->Draw("errx:Id");
0104  
0105   c4.cd(2);
0106   theTree->Draw("erry:Id");
0107   
0108   c4.cd(3);
0109   theTree->Draw("errz:Id");
0110   c4.SaveAs("provaErrScatt.eps");
0111 }