Purdue CMS Tier-2 Center
Home » User Information » CMSSW Job Tutorials » Submit CMSSW Jobs Using Condor

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_8_0_1
     cd CMSSW_8_0_1/src/
  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  /grp/cmw/www/Tutorial/Condor/BuildFile.xml  Demo/DemoAnalyzer/plugins/
        cp  /grp/cmw/www/Tutorial/Condor/DemoAnalyzer.cc Demo/DemoAnalyzer/plugins/
  4.   Compile the code
     scram b
  5. Copy the necessary scripts
     cp /grp/cms/www/Tutorial/Condor/job_template_condor.csh .
     cp /grp/cms/www/Tutorial/Condor/createcondorjobs.csh .
     cp /grp/cms/www/Tutorial/Condor/submit_job.csh .
  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.csh jobname numberofeventsperjob numberofjobs
     ./submit_job.csh jobname numberofjobs
  7. To know the running status of your submitted job(s)

CPU Utilization

Raw Storage Use