Skip to content

Commit

Permalink
Merge pull request #20075 from vanbesien/Updating_GT_t0_92X_dataRun2_…
Browse files Browse the repository at this point in the history
…HLT_v7_(9_2_8)

Updating GT for online (v7) and express (v6)
  • Loading branch information
cmsbuild committed Aug 9, 2017
2 parents 6fed1f6 + 708def6 commit 18205ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
@@ -1,15 +1,17 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *

# Default Express GT: it is the GT that will be used in case we are not able
# to retrieve the one used at Tier0.
# It should be kept in synch with Express processing at Tier0.
# It should be kept in synch with Express processing at Tier0: what the url
# 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_v2"
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.
#
#
auto=False

# The implementation of the class is reused from the condition upload service.
Expand Down Expand Up @@ -145,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 @@ -155,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()
4 changes: 2 additions & 2 deletions DQM/Integration/python/config/FrontierCondition_GT_cfi.py
@@ -1,3 +1,3 @@
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
GlobalTag.globaltag = "92X_dataRun2_HLT_v4"
from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
GlobalTag.globaltag = "92X_dataRun2_HLT_v7"

0 comments on commit 18205ff

Please sign in to comment.