//Create release area //---------------------------------- newrel -t pXX.XX.XX mydir cd mydir d0setwa //Install packages //---------------------------------- addpkg d0root_analysis v00-06-21 addpkg d0root_btag v00-06-20 addpkg jetcorr v04-00-01 addpkg em_util v00-02-69 //Generate TMBTreeClasses file //---------------------------------- ln -s /d0dist/dist/releases/p13.06.01/tmb_analyze/macros/ macros cp macros/MakeTMBTreeClasses_so.C . root -q MakeTMBTreeClasses_so.C //Compile jetcorr package //---------------------------------- cd jetcorr root -q MkRootLib.C cd ../ //Compile em_util package //---------------------------------- gmake em_util.all EMUTIL_SHARED=1 //Link em_util package //---------------------------------- cd d0root_btag ln -s ../em_util em_util cd ../ //Compile d0root packages //---------------------------------- gmake d0root_analysis.all gmake d0root_btag.all
cd d0root_btag root runBphysicsAnalysis_TMBtree.C
This command will create an instance of the class BphysicsAnalysis called "b". To see the list of available methods please look at d0root_btag/analysis/BphysicsAnalysis.h
To create a B-rtuple with information about J/Psi, Phi and B vertices, do:
b->Process_diMuons("myOutputFileName", all_muons, muon_pt, muon_quality);
where
The Muon quality definition is defined in d0root_analysis/objects/Muon.cpp:
To open the ROOT tuple and plot the invariant J/Psi invariant mass and lifetime do:
root myOutputFileName.root
tree->Draw("PSI.mass","PSI.mass>2 && PSI.mass<4")
tree->Draw("PSI.lifetime","PSI.lifetime!=0 && PSI.mass>2.8 && PSI.mass<3.3")
Back to Vertex fitting and finding in ROOT page



/rooms/study/sch/sashitest_4/d0root_btag/
dimu_set1.root dimu_set2.root dimu_set3.root dimu_set4.root dimu_set5.root dimu_set6.root dimu_set7.root dimu_set8.root
Back to Vertex fitting and finding in ROOT page