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)
    • cd ~/CMSSW_3_9_4/src

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

  • ./submit.sh 1 3

and check the status of your jobs

  • condor_q YourUserName
and to kill your jobs do
  • condor_rm YourUserName
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

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt cfg.py.txt r1 manage 31.8 K 2010-11-25 - 14:34 JorgeRobles  
Unix shell scriptsh run.sh r1 manage 0.6 K 2010-11-25 - 14:33 JorgeRobles  
Unix shell scriptsh submit.sh r1 manage 2.3 K 2010-11-25 - 14:33 JorgeRobles  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2011-01-08 - JorgeRobles
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback