Compare LUTs Walkthrough


Introduction


The purpose of this tutorial is to provide an walkthrough showing how to compare SR and Pt LUTs that are used in describing the detector geometry in the CSC Track Finder. These comparisons are used to track changes in the LUTs from release to release of CMSSW.

Set Up Your Environment


First, set up your CMSSW_2_1_0_pre4 directory and your path to the CVS repository by typing the following commands into your home directory:

export SCRAM_ARCH=slc4_ia32_gcc345
. /raid/raid4/pg/app/cmssoft/cms/cmsset_default.sh
export CVSROOT=:pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW
scramv1 project CMSSW CMSSW_2_1_0_pre4
cd CMSSW_2_1_0_pre4/src

Now, you will need to set up your runtime environment. This command is different if you are working in C-shell or bash. Type the correct command from below while in your src directory:

eval `scramv1 runtime -sh` (if you are using bash)
eval `scramv1 runtime -csh` (if you are using C-shell)

Log into the CVS repository and check out the necessary packages by typing the following commands:

cvs login (use the password "98passwd")
cvs co -r CMSSW_2_1_0_pre4 L1Trigger/CSCTrackFinder

You now have all the files necessary to generate LUTs for the CMSSW_2_1_0_pre4 release, so now you should compile and build the code using:

scramv1 b

Now, if you would like to compare the LUTs from CMSSW_2_1_0_pre4 with those from a previous release by reading them from a file, you will need to obtain the LUTs from that version. If you do not have them on hand, you will need to generate them using the makeLUT utility described here

You are prepared to begin comparing LUTs!

Comparing LUTs


In this section of the tutorial, you will actually compare the LUTs from CMSSW_2_1_0_pre4 with another set of your choosing

To do this, you need to move to the proper directory by typing:

cd L1Trigger/CSCTrackFinder/test

The config file that is used to run the compareLUT job is in this directory and is called "compareLUTs.cfg". This file has several options that are used to select the LUTs being compared and any specific properties of those LUTs. These options are the following:

The default settings in the config file are somewhat outdated due to recent changes in the code used to generate LUTs. It is strongly suggested that you briefly look though the parameters to ensure that you are satisfied before running the job.

Once you have selected your desired options, you can finally run the LUT comparison routine using the following command into the command prompt prompt:

cmsRun compareLUTs.cfg

If this ran successfully, you will how have a file called LUT_compare.root in your test directory. This files contains all the plots generated by this comparison program. There is a script that can be run in order to print these plots to files that can be viewed more easily. The script is run using the following commands.

mkdir compare
mkdir compare/Mismatch
mkdir compare/Data_Field_Vs_Address
root LUT_compare.root plotCompareLUT.C printPlots.C

You are now have now run the compare LUTs program in CMSSW_2_1_0_pre4!