ok you will need a config (.py file) and two scripts run.sh and submit.sh
my scripts are these
Things to be careful with:
- in cfg.py
- there are all the way at the top these lines (not sure what they do, or if you will need them for your job)
import FWCore.ParameterSet.VarParsing as VarParsing
ivars = VarParsing.VarParsing('standard')
ivars.files = 'file:../predigi/predigi_test3_numEvent1.root'
ivars.output = 'ZmumuMixed_reco02.root'
ivars.maxEvents = -5
#ivars.maxEvents = 3
ivars.register ('randomNumber',mult=ivars.multiplicity.singleton,info="for testing")
ivars.randomNumber=5
ivars.parseArguments()
-
- all the way to the bottom (again same warning, these are specific to my job)
process.mixData.input.fileNames = process.source.fileNames
process.RandomNumberGeneratorService.hiSignal.initialSeed = ivars.randomNumber
process.RandomNumberGeneratorService.generator.initialSeed = ivars.randomNumber
-
- the important thisngs to notice are these lines,
-
input = cms.untracked.int32(ivars.maxEvents)
-
fileName = cms.untracked.string(ivars.output)
for output
-
fileNames = cms.untracked.vstring(ivars.files)
for input
- in submit.sh look for these lines and adjust them properly
-
dataset=/pnfs/cmsaf.mit.edu/t2bat/cms/store/user/troxlo/mixing/MinBias0to100_Core_RECOBKG_test03
-
destination=/pnfs/cmsaf.mit.edu/t2bat/cms/store/user/jrobles/test/mix/MinBias_singleZmumu_offset10
-
+AccountingGroup = "group_cmshi.jrobles"
-
ransfer_input_files = cfg.py
make sure this is the config you are running
- in run.sh look also for these and adjust (since I am running in 394)
before submitting make sure that the folder (in this case)
/pnfs/cmsaf.mit.edu/t2bat/cms/store/user/jrobles/test/mix/
exists.
Once you are fairly confident that all this black box is properly set up, submit a few jobs, let say 3, by doing
and check the status of your jobs
and to kill your jobs do
make sure that you are running on hibat0001, hibat0002, hibat0007 or hidsk0001, and NOT in the gateway machine, you won't be able to submit anything
--
JorgeRobles - 25-Nov-2010