Skip to content

Commit

Permalink
Additional update to the express GT for 9_2_8
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbesien committed Aug 8, 2017
1 parent 40b9477 commit 90753c8
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -7,7 +7,7 @@
# https://cmsweb.cern.ch/t0wmadatasvc/prod/express_config
# would tell you.
GlobalTag.connect = cms.string("frontier://(proxyurl=http://localhost:3128)(serverurl=http://localhost:8000/FrontierProd)(serverurl=http://localhost:8000/FrontierProd)(retrieve-ziplevel=0)(failovertoserver=no)/CMS_CONDITIONS")
GlobalTag.globaltag = "92X_dataRun2_Express_v6"
GlobalTag.globaltag = "92X_dataRun2_Express_v7"

# ===== auto -> Automatically get the GT string from current Tier0 configuration via a Tier0Das call.
# This needs a valid proxy to access the cern.ch network from the .cms one.
Expand Down Expand Up @@ -147,7 +147,7 @@ def getGlobalTag( self, config ):
if 'http_proxy' in os.environ:
proxyurl = os.environ[ 'http_proxy' ]
t0 = Tier0Handler( tier0Url, 5, 5, 5, proxyurl, False )

try:
# Get the express GT from Tie0 DataService API
GlobalTag.globaltag = cms.string( t0.getGlobalTag( 'express_config' ) )
Expand All @@ -157,3 +157,5 @@ def getGlobalTag( self, config ):
print "Error in querying the Tier0 DataService"
print error
print "Falling back to the default value of the express GT: \"%s\"" % ( GlobalTag.globaltag.value(), )
else:
print "Using hardcoded GT: \"%s\"" % GlobalTag.globaltag.value()

0 comments on commit 90753c8

Please sign in to comment.