In order to run the script, you first need to create a new release area:
//Create release area
//----------------------------------
kinit
newrel -t p16.05.02 mydir
cd mydir
d0setwa
source Maked0root_p16.csh
Please read the comments in Maked0root_p16.csh script for different options.
from mydir directory: root d0root_btag/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, X state, and B->J/Psi K+ vertices, do:
b->Process_diMuons("myOutputFileName", muon_pt, PVbeamConstraint);
where
In order to open the ROOT-tuple and plot the 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.mass>2.8 && PSI.mass<3.3")
Please send questions/comments/improvements/ or report problems to the
d0root mailing listor Ariel Schwartzman and Gordon Watts
Back to Vertex fitting and finding in ROOT page