Beamlines using vertices are produced from fitting profile histograms of the vertex position in x or y versus z. Beamlines made using the d-phi algorithm use histograms were the impact parameter of a track with respect to the origin (d) is plotted versus the track angle phi.
These histograms are produced by FitBeamModule. We are running FitBeamModule as part of the standard CDF reconstructionn (Production) or we run a separate job (makeBeamHists) just producing the histograms on already reconstructed data.
fcdflnx3:/cdf/scratch/cdfprod0/'Production version'/'Stream'/hist
In the standard mode of operation the beamline histograms filling by Production can be used to derive beamlines. However, in case the production version is buggy the histograms might not be usable. An example for this case is Production 4.8.4a which is being used in CDF since October 2002. In the particular version the final track refit (after pattern recognition) is buggy causing the beamline to be shifted by 20 to 25 micrometer. Therefore, we have to refit the tracks with a corrected offline version and fill new beamline histograms. This can be conveniently done using the makeBeamHists executable. Here we explain how that can be done.
source ~cdfsoft/cdf2.cshrc
setup cdfsoft2 4.9.1hpt1
newrel -t 4.9.1hpt1 4.9.1hpt1_beam
addpkg TrackingUserMods v4_9_1_beam
addpkg VertexMods v4_9_1_beam
addpkg VertexAlg v4_9_1_beam
gmake VertexAlg.nobin; gmake VertexMods.nobin
TBINS line.
The line should now look like:
TBINS = makeBeamHists
gmake TrackingUserMods.tbin
~cdfopr/ticket
./VertexMods/scripts/goBeam.csh
This script will do the following steps for you:
cd /cdf/opr/cdfopr/beamlines/4.9.1hpt1_beam/
mkdir caf/input (if does not exist yet)
mkdir caf/output (if does not exist yet)
cp ../../VertexMods/scripts/createRunList.sh .
./createRunList.sh
mv procruns.txt run_list.tcl
setenv CAF_CURRENT caf2
cafdataset gjet08 > files.tcl
source ~cdfsoft/cdf2.cshrc
setup cdfsoft2 development
CafGui
script: ./pvtxrun.sh $ 200000
Fill in the number of jobs in the upper right corner.
Specify the output directory and file name "beamHists_$.tgz"
Specify the queue to be "cdfpr" by default.
cp 4.9.1hpt1_beam/VertexMods/scripts/untarbeam.sh
./untarbeam.sh 'runnum begin' 'runnum end'
scp \*.root cdfprod0:/cdf/scratch/cdfprod0/trackRefit4.9.1_b/