I wanted to generate events for a series of values of Higgs mass. Here are the files: This is my condor job file myjob.cmd. The last line of the job file Queue 10 creates 10 condor jobs. The variable $(Process) runs from 0..9.
initialdir = /a/home/karthur/apenson/testarea/13.0.40/AtlfastII/WprWZqqee_mass
Executable = myjob
Arguments = "$(Process)"
Requirements = (Machine == "karthur.nevis.columbia.edu")
#Output = myjob.out.$(Process)
Error = myjob.err
#Log = myjob.log.$(Process)
should_transfer_files = IF_NEEDED
when_to_transfer_output = ON_EXIT
Queue 10

This is my executable myjob. Its argument is the $(Process) variable. The expr function converts this into a mass (in GeV). The sed function then creates a temporary joboptions file from the master file CSC.00xxxx.WprWZqqee.py. The csc_* scripts generate events using AtlfastII

#!/bin/zsh
source ~/cmthome/setup.sh -tag=13.0.40
cd /a/home/karthur/apenson/testarea/13.0.40/AtlfastII/WprWZqqee_mass

higgs_mass=`expr 1000 + 100 \* $1`
events=1000

joboptions_file=CSC.00xxxx.WprWZqqee.${higgs_mass}.py.tmp
sed '/pmas 34/s/2000/'$higgs_mass'/' CSC.00xxxx.WprWZqqee.py > $joboptions_file

intermediate_rdo_file=CSC.00xxxx.WprWZqqee.${higgs_mass}.RDO.root
intermediate_hits_file=CSC.00xxxx.WprWZqqee.${higgs_mass}.HITS.root
intermediate_evgen_file=CSC.00xxxx.WprWZqqee.${higgs_mass}.evgen.pool.root

output_aant_file=CSC.00xxxx.WprWZqqee.${higgs_mass}.AANT.root
output_aod_file=CSC.00xxxx.WprWZqqee.${higgs_mass}.AOD.root

../csc_evgen_trf.py -t 8999 1 $events 54298752 $joboptions_file $intermediate_evgen_file NONE NONE |tee -a evgen.WprWZqqee.${higgs_mass}.log
../csc_simul_trf.py $intermediate_evgen_file $intermediate_hits_file $intermediate_rdo_file $events 0 12 "ATLAS-CSC-01-02-00" 1 2 'QGSP_EMV' 'CaloMuonOffSimulDigitConfig.py' |tee -a simul.WprWZqqee.${higgs_mass}.log
../csc_recoFastCaloSim_IDonly_trf.py $intermediate_rdo_file $output_aod_file $output_aant_file $events 0 "ATLAS-CSC-01-02-00" NONE |tee -a reco.WprWZqqee.${higgs_mass}.log
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-06-20 - AlexPenson
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback