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/test
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.Hppee.py
. The
csc_*
scripts generate events using AtlfastII
source ~/cmthome/setup.sh -tag=13.0.40
cd ~/testarea/13.0.40/AtlfastII/test
higgs_mass=`expr 1000 + 100 \* $1`
events=100
joboptions_file=CSC.00xxxx.Hppee.mass.py.tmp
output_file=CSC.00xxxx.Hppee.${higgs_mass}.AANT.root
sed '/pmas 9900042/s/2000/'$higgs_mass'/' CSC.00xxxx.Hppee.py > $joboptions_file
../csc_evgen_trf.py -t 8999 1 $events 54298752 $joboptions_file CSC.00xxxx.Hppee.evgen.pool.root.tmp NONE NONE |tee -a evgen.Hppee.${higgs_mass}.log
../csc_simul_trf.py CSC.00xxxx.Hppee.evgen.pool.root.tmp HITS.root.tmp RDO.root.tmp $events 0 12 "ATLAS-CSC-01-02-00" 1 2 'QGSP_EMV' 'CaloMuonOffSimulDigitConfig.py' |tee -a simul.Hppee.${higgs_mass}.log
../csc_recoFastCaloSim_IDonly_trf.py RDO.root.tmp AOD.root.tmp $output_file $events 0 "ATLAS-CSC-01-02-00" NONE |tee -a reco.Hppee.${higgs_mass}.log