37 |
|
my $nJobs = $ARGV[3]; |
38 |
|
my $realNJobs = ceil ($nFiles / ceil ($nFiles / $nJobs)); |
39 |
|
outputPset ($ARGV[2]); |
40 |
< |
outputCondor ($ARGV[2], $realNJobs); |
40 |
> |
outputCondor ($ARGV[2], $realNJobs, $ARGV[0]); |
41 |
|
copy ($ARGV[1], "$ARGV[2]/userConfig_cfg.py"); |
42 |
|
chdir $ARGV[2]; |
43 |
|
print "Submitting $realNJobs jobs to run on $nFiles files.\n"; |
164 |
|
{ |
165 |
|
my $workingDir = shift; |
166 |
|
my $nJobs = shift; |
167 |
+ |
my $dataset = shift; |
168 |
|
|
169 |
|
my $cmsRun = `which cmsRun`; |
170 |
|
open (SUB, ">$workingDir/condor.sub"); |
172 |
|
print SUB "Executable = $cmsRun\n"; |
173 |
|
print SUB "Universe = vanilla\n"; |
174 |
|
print SUB "Getenv = True\n"; |
175 |
< |
print SUB "Arguments = config_cfg.py $nJobs \$(Process)\n"; |
175 |
> |
print SUB "Arguments = config_cfg.py $nJobs \$(Process) $dataset\n"; |
176 |
|
print SUB "\n"; |
177 |
|
print SUB "Output = condor_\$(Process).out\n"; |
178 |
|
print SUB "Error = condor_\$(Process).err\n"; |