Skip to content

Commit

Permalink
fixed detection of RECO and HLT in steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pfeiffer committed Oct 30, 2009
1 parent 88c0b2d commit 568a7dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Configuration/PyReleaseValidation/python/cmsDriverOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import optparse
import sys
import os
import re
import Configuration.PyReleaseValidation
from Configuration.PyReleaseValidation.ConfigBuilder import ConfigBuilder, defaultOptions
import traceback
Expand Down Expand Up @@ -216,8 +217,10 @@
if len(sys.argv)==1:
raise "Event Type: ", "No event type specified!"

# check whether steps are compatible
if ("HLT" in options.step and "RECO" in options.step):
# check whether steps are compatible, but make sure we don't trigger on AlCaxyzHLT and L1Reco
hltRe = re.compile('.*[,\s]HLT[,\s].*')
recoRe = re.compile('.*[,\s]RECO[,\s].*')
if ( hltRe.match(str(options.step)) and recoRe.match(str(options.step))):
print "ERROR: HLT and RECO cannot be run in the same process"
sys.exit(1)

Expand Down

0 comments on commit 568a7dd

Please sign in to comment.