1 / 8

Root analysis

Root analysis. yao. Code & file. Code:/usrX/shyao/mysql2root/r321/MySQLtoROOT2.cc line 25~207 File:/sp8data11/shyao/rootfile/r321test.root. run. Spill. event. dimuon. track. track. track. track. track. hit. hit. hit. hit. hit. Event packet. $ root

Download Presentation

Root analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Root analysis yao

  2. Code & file • Code:/usrX/shyao/mysql2root/r321/MySQLtoROOT2.cc line 25~207 • File:/sp8data11/shyao/rootfile/r321test.root

  3. run Spill event dimuon track track track track track hit hit hit hit hit

  4. Event packet $ root root [] Tfile f(“/sp8data11/shyao/rootfile/r321test.root”) root [] f->ls() TFile** r321test.root production_dimuonR321 Tree TFile* r321test.root production_dimuonR321 Tree KEY: TTree r321;2 A tree with data taken from SQL, 2010/11/22 KEY: TTree r321;1 A tree with data taken from SQL, 2010/11/22 KEY: TTree event;15 title KEY: TTree event;14 title Root [] event->Print()

  5. *tree :event : title Event *Br 0 :runID : runID/I *Br 1 :eventID : eventID/I *Br 2 :nDimuons : nDimuons/I *Br 3 :mWeight : mWeight/D *Br 4 :mProcessCode : mProcessCode[32]/C *Br 5 :ntracks : ntracks/I dimuon *Br 6 :dimuonID : dimuonID/I *Br 7 :trackID1 : trackID1/I *Br 8 :trackID2 : trackID2/I *Br 9 :mass : mass/D …xxx… track *Br 26 :trackID : trackID[ntracks]/I *Br 27 :x0 : x0[ntracks]/D …xxx… *Br 39 :ke0 : ke0[ntracks]/D

  6. Draw Root [] event->Draw(“event.ntracks”) Root [] event->Draw(“event.x0”) Root [] event->Draw(“event.x0[]”) Root [] event->Draw(“event.x0[0]”) Root [] event->Draw(“event.x0[0]: event.eventID”) Root [] event->Draw(“event.x0[0]:event.eventID”, ”event.eventID<1000”) Root [] event->Draw(“event.x0[0]:event.eventID”, ”event.eventID<1000&& event.eventID>100”) Root [] event->Draw(“event.x0”,””,”E”)//error bar Root [] event->Draw(“event.x0”,””,”same”)//painting on the same canvas Root [] event->Draw(“event.x0”,””,””,1000)//entries

  7. Scan Root [] event->Scan()//first 8 varables Root [] event->Scan(“*”)//all the varables Root [] event->Scan(“var1:var2:var3”) Root [] event->Scan(“var1:var2:var3”,”var1==0”) Root [] event->SetScanField(0) Root [] event->Scan(“*”); >temp Root [] event->Scan(“ntracks:x0”); *********************************************** * Row * Instance * ntracks * x0 * *********************************************** * 0 * 0 * 24 * -0.129800 * * 0 * 1 * 24 * -0.129800 * * 0 * 2 * 24 * 19.029987 *

  8. Show Root [] event->Show(1234)

More Related