Simple Instructions to run D0TrigSim
These instructions are being followed currently in order to certify L3 jets for p16.00.00. Hence these use the local version of certain packages. This was done on the bayou clued0 node. Bayou means "lake" in French, due to its past influence in Louisiana.
Input to d0trigsim: sim files
setup D0RunII p16.00.00
setup d0tools
newrel p16.00.00 temp_p16_2 (dir name is temp_p16_2)
cd temp_p16_2/
mkdir trigsim
cd trigsim
cp /home/jesik/trigger/TrigSim/simfiles/L3p16_cert/* ./ (To copy sim files from Rick, prepared by him for certification, Not needed otherwise)
cd ../ (Go back to your created working dir)
setup d0cvs (You need this in roder to add packages)
d0setwa (NEVER forget to do this)
addpkg d0trigsim
addpkg trigsim_analyze (It is a good idea to add it here, so that when you run Trig Analyze you do not have to add it then and re-do a gmake)
addpkg ScriptRunner
addpkg l3fstatmanager
addpkg l3ftrigger_base p16-br-01 (these are local releases which you do not have to use when certification is complete)
addpkg tsim_l3 p16-br-01
addpkg l3fanalyze p16-br-01
gmake all
Command to run D0Trigsim
runD0TrigSim -format=mc -filelist=mc_50K_file.txt -localbuild
-l3toollist=auto -l3only -name=results_mc_50K -batch -mem=1000mb
What does each flag mean?
format: What kind of input file is it, data or MC: data,mc (as the case maybe)
filelist: Input file name on which you would like to run D0TrigSim. Click on
mc_50K_file.txt to see what should a typical data/mc file should look like. In principle, give the full dir path and one file per line for multiple files inside the input file.
A word of caution: These files should be typically copied by you (or if
others have already done it) on clued0 disks that are accessible to all. I
have not yet figured out how you would make an input file with files
linked in your working area.
localbuild: usually to use if testing/debugging stuff locally
batch: To submit the job in batch mode
mem: Increase the memory to maximum in batch mode, which is 1000mb
num: For test purposes add the flag num and give it some numbers, like -num=5. Also if your input file has , for eg, 50K events and you wish to process only 20K, just write -num=20000. No usage of this flag processes all the events in the input file.
l3toollist: Generates automatically toollist.txt file
l3only: used after a problem found with L2 STT code. Angela informed Norman about it.
name: Output result directory
Output of D0TrigSim
An output directory is made with the name defined on the command line with -name flag. If not defined the standard output dir contains the name of the input file as well and would look like
D0TrigSim_x-p16.00.00-Linux-mc_50K_file.txt-DEFLIST
This dir has an output file called output file_00.
Do check the size of this file.
View output file
To view this output file, do the following
setup d0tools
setup D0RunII p16.00.00
d0ev output file_00
The following sequence WILL NOT WORK.
setup D0RunII p16.00.00
setup d0tools
d0ev output file_00
Neeti Parashar
Last modified: Mon Feb 9 17:28:33 CST 2004