This Twiki documents a sequence on how to make a large-scale ALPGEN event production at SPRACE upon request. It assumes the following conditions:
access
server at SPRACE.
mkdir ZbbGrids_7TeV wget http://cmsdoc.cern.ch/~mpierini/cms/alpgen_7TeV/PRODUCTION_zbb.tar.gz tar -xzf PRODUCTION_zbb.tar.gz mv PRODUCTION ZbbGrids_7TeV rm PRODUCTION_zbb.tar.gz
mkdir Zbb7TeV mkdir Zbb7TeV/zbb_0j mkdir Zbb7TeV/zbb_1j mkdir Zbb7TeV/zbb_2j mkdir Zbb7TeV/zbb_3j
cp scripts/*.py scripts/*.sh Zbb7TeV seq 0 3 | xargs -i bash -c "cp ZbbGrids_7TeV/PRODUCTION/input_zbb_{}j Zbb7TeV/zbb_{}j/input" ls -d Zbb7TeV/*j | xargs -i bash -c "cp Zbb7TeV/*.py {}"
emacs Zbb7TeV/zbb_0j/input emacs Zbb7TeV/zbb_1j/input emacs Zbb7TeV/zbb_2j/input emacs Zbb7TeV/zbb_3j/input
doProduction.sh
script, and the number of jobs asked in the doGrandProduction.sh
script. Try to not submit more than 200 jobs per batch.
emacs Zbb7TeV/doProduction.sh emacs Zbb7TeV/doGrandProduction.sh
cd Zbb7TeV ./doGrandProduction.sh condor_q
cd Zbb7TeV python sprace_ALPGEN_merge.py 0Check if the unw.par file is correctly created, and check if there are enough events. Create another batch of jobs if needed.
python sprace_ALPGEN_merge.py 1This will create the .unw file with the actual events, and will suggest a command line for packing (.tar.gz) the original .wgt and .par files.
cmsRun test_ALPGEN_source_cfg.pyThis will shift the unweighted events from .unw to .lhe files. Both .lhe and the .tar.gz created in the step above are suitable for uploading to MCDB.
imode 1
, with the same grids you were given, but asking for a small (~100K) number of events. Take note of the number of weighted events actually produced (the number of weighted events is the number of lines in the .wgt file). The efficiency is the number of events obtained over the number of events asked.
imode 2
over a weighted events input file (.wgt file) containing a known number of events. The _unw.par file produced will have at the very end a line like the following:
3548 1.0542532 ! unwtd events, lum (pb-1)The first number (3548 in this case) is the number of unweighted events produced. The efficiency is the number of unweighted events over the number of weighted events.
testAlpgenComplete_cfg.py
script, and check for the number given in the line:
********* Fraction of events that fail fragmentation cuts = 0.95000 *********This number is 1 minus the efficiency - so, in the above example, the matching efficiency is 0.05.
E_w
is 10%, the unweighting efficiency E_u
is 20%, and the matching efficiency E_m
is 3%. So the total efficiency is E = E_w*E_u*E_m
= 6E-04=. So the total number of events you have to produce is 1E06/6E-04 ~ 1.7E09, or roughly 1.7B events. Each job should ask for some 2.5M events, and you shouldn't be submitting more than ~ 200 jobs to the farm in a single batch. So, the number of batches needed is 1.7E09/(200*2.5E6) ~ 3.4. Rounding up, we come to the conclusion that 4 batches of 180 jobs, each job asking for 2.5M, is the ideal configuration for this request.
input
file, which usually resides in each working subdirectory.
input
file as well.
doProduction.sh
script - the last two parameters given when you execute the script define a numeric sequence that is used to label and submit the jobs. For instance, if the two parameters are 11 and 20, the script will submit 10 jobs labeled from 11 to 20.
doProduction.sh
script - the first two parameters control the executable name and the grid name. Also, there are some internal parameters in the script - look at it before you run it!
WARNING The scripts linked below are completely out-of-date. Updated versions are always found at /hdacs/shared/scripts
.
-- ThiagoTomei - 19 Jan 2010
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
![]() |
doGrandProduction.sh | r1 | manage | 0.9 K | 2009-11-11 - 11:18 | ThiagoTomei | |
![]() |
doProduction.sh | r1 | manage | 0.7 K | 2009-11-11 - 11:18 | ThiagoTomei | |
![]() |
fixFile.sh | r1 | manage | 0.3 K | 2009-11-11 - 11:19 | ThiagoTomei | |
![]() |
sprace_ALPGEN_merge.py.txt | r1 | manage | 3.1 K | 2009-11-11 - 11:19 | ThiagoTomei | |
![]() |
sprace_ALPGEN_submit.py.txt | r1 | manage | 3.3 K | 2009-11-11 - 11:19 | ThiagoTomei | |
![]() |
testAlpgenSource_cfg.py.txt | r1 | manage | 0.5 K | 2009-11-11 - 11:20 | ThiagoTomei | |
![]() |
theBigScript.sh | r1 | manage | 1.2 K | 2009-11-11 - 11:20 | ThiagoTomei |
antalya escort bursa escort eskisehir escort istanbul escort izmir escort