Submit CMSSW Jobs Using Condor

  1. Setup your Environment

    You need to setup environment as explained in CMSSW Environment Setup .

  2. Create a new project area

     cd ~
     cmsrel CMSSW_6_0_0
     cd CMSSW_6_0_0/src/
     cmsenv
     

  3. Create an EDAnalyzer

    First, create a subsystem area. The actual name used for this directory is not important, we'll use Demo. From the src directory, make and change to the Demo area.

     mkdir Demo
     cd Demo
     
    Note that if you do not create the subsystem area and create the module directly under the src directory, your code will not compile. Create the "skeleton" of an EDAnalyzer module (see SWGuideSkeletonCodeGenerator for more information)
     mkedanlzr DemoAnalyzer
     
    The mkedanlzr script has generated the source and BuildFile 'DemoAnalyzer/src/DemoAnalyzer.cc' and 'DemoAnalyzer/BuildFile.xml' respectively. Copy the source and BuildFile so that it prints the number of tracks in an event.
     cd DemoAnalyzer
     cp /home/ba01/u145/jha2/CMSSW_6_0_0/\
    src/Demo/DemoAnalyzer/BuildFile.xml .
     cp /home/ba01/u145/jha2/CMSSW_6_0_0/\
    src/Demo/DemoAnalyzer/src/DemoAnalyzer.cc src/DemoAnalyzer.cc
     

  4. Compile the code

     scram b
     

  5. Copy the necessary scripts

     cp /grp/cms/www/job_template_condor.sh .
     cp /grp/cms/www/createcondorjobs.sh .
     cp /grp/cms/www/submit_job.sh .
     

  6. Change the CMSSW_RELEASE, initialdir, SRCDIR, OUTDIR, and job.py inside of job_template_condor.sh as necessary. Then submit jobs as follows.

     ./createcondorjobs.sh jobname numberofeventsperjob numberofjobs
     ./submit_job.sh jobname numberofjobs
     

  7. To know the running status of your submitted job(s)

     condor_q