Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:36

0001 gSystem->Load("libFWCoreFWLite");
0002 
0003 FWLiteEnabler::enable();
0004 
0005 // reco file with vertices
0006 TFile f("pv_reco.root");
0007 TBrowser a;
0008 
0009 Events->SetAlias("pv", "recoVertexs_offlinePrimaryVerticesFromCTFTracks__Demo.obj");
0010 
0011 // position distributions
0012 Events->Draw("pv.x()");
0013 Events->Draw("pv.z()");
0014 
0015 // error on x
0016 Events->Draw("sqrt(pv.covariance(0, 0))");
0017 
0018 // pull on x
0019 Events->Draw("pv.x()/sqrt(pv.covariance(0, 0))");