Submit CMSSW Jobs Using Condor
- Setup your Environment
You need to setup environment as explained in CMSSW Environment Setup .
- Create a new project area
cd ~ cmsrel CMSSW_6_0_0 cd CMSSW_6_0_0/src/ cmsenv
- 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
- Compile the code
scram b
- 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 .
- 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
- To know the running status of your submitted job(s)
condor_q





