How to analyse a Stntuple with XFT information

How to analyse a Stntuple?


Ok, so you have the Stntuple, with a XFT branch with lists of XFT hits, segments and tracks. Want to know how well XFT does compared to the full CDF tracking? The code in step 1 will analyse the Stntuple and produce a hbk file with many useful histograms, including the phi and pt resolution, the efficiency with which XFT finds tracks with transverse momenta above 1.5 GeV/c and how many fake tracks XFT reports. The macros in step 2 will plot some of these histograms for you or you can use the ROOT browser.

1. Analyse the stntuple.
Go to the top of your release directory
cp Stntuple/ana/TXftAnaModule.cc .
cp Stntuple/ana/TXftAnaModule.hh .
Edit Stntuple/ana/xft_ana.C to point to your Stntuple and to rename the output hbk file.

root
.x Stntuple/ana/xft_ana.C
This produces a hbook file with many histograms.

2. Look at the histograms from step 1

3. Edit TXftAnaModule.* if necessary.
Rerun over Stntuple with .x Stntuple/ana/xft_ana.C