#if use time and file filter together, there's no point of warning about missing LS,switch off noWarning=True ############################################################## # check working environment ############################################################## workingversion='UNKNOWN' updateversion='NONE' thiscmmd=sys.argv[0] if not options.withoutCheckforupdate: from RecoLuminosity.LumiDB import checkforupdate cmsswWorkingBase=os.environ['CMSSW_BASE'] if not cmsswWorkingBase: print 'Please check out RecoLuminosity/LumiDB from CVS,scram b,cmsenv' sys.exit(11) c=checkforupdate.checkforupdate('pixeltagstatus.txt') workingversion=c.runningVersion(cmsswWorkingBase,'pixelLumiCalc.py',isverbose=False) if workingversion: updateversionList=c.checkforupdate(workingversion,isverbose=False) if updateversionList: updateversion=updateversionList[-1][0] # # check DB environment # if options.authpath: os.environ['CORAL_AUTH_PATH'] = options.authpath ############################################################# #pre-check option compatibility ############################################################# if options.action=='recorded': if not options.hltpath:
customfm='%m/%d/%y %H:%M:%S') timeFilter[1] = reqtimemaxT ############################################################## # check working environment ############################################################## workingversion = 'UNKNOWN' updateversion = 'NONE' thiscmmd = sys.argv[0] if not options.withoutCheckforupdate: from RecoLuminosity.LumiDB import checkforupdate cmsswWorkingBase = os.environ['CMSSW_BASE'] if not cmsswWorkingBase: print 'Please check out RecoLuminosity/LumiDB from CVS,scram b,cmsenv' sys.exit(11) c = checkforupdate.checkforupdate() workingversion = c.runningVersion(cmsswWorkingBase, 'lumiCalc2.py', isverbose=False) if workingversion: updateversionList = c.checkforupdate(workingversion, isverbose=False) if updateversionList: updateversion = updateversionList[-1][0] # # check DB environment # if options.authpath: os.environ['CORAL_AUTH_PATH'] = options.authpath #############################################################
noWarning = True ############################################################## # check working environment ############################################################## workingversion = "UNKNOWN" updateversion = "NONE" thiscmmd = sys.argv[0] if not options.withoutCheckforupdate: from RecoLuminosity.LumiDB import checkforupdate cmsswWorkingBase = os.environ["CMSSW_BASE"] if not cmsswWorkingBase: print "Please check out RecoLuminosity/LumiDB from CVS,scram b,cmsenv" sys.exit(11) c = checkforupdate.checkforupdate("pixeltagstatus.txt") workingversion = c.runningVersion(cmsswWorkingBase, "pixelLumiCalc.py", isverbose=False) if workingversion: updateversionList = c.checkforupdate(workingversion, isverbose=False) if updateversionList: updateversion = updateversionList[-1][0] # # check DB environment # if options.authpath: os.environ["CORAL_AUTH_PATH"] = options.authpath ############################################################# # pre-check option compatibility ############################################################# if options.action == "recorded": if not options.hltpath:
#if use time and file filter together, there's no point of warning about missing LS,switch off noWarning=True ############################################################## # check working environment ############################################################## workingversion='UNKNOWN' updateversion='NONE' thiscmmd=sys.argv[0] if not options.withoutCheckforupdate: from RecoLuminosity.LumiDB import checkforupdate cmsswWorkingBase=os.environ['CMSSW_BASE'] if not cmsswWorkingBase: print('Please check out RecoLuminosity/LumiDB from CVS,scram b,cmsenv') sys.exit(11) c=checkforupdate.checkforupdate('pixeltagstatus.txt') workingversion=c.runningVersion(cmsswWorkingBase,'pixelLumiCalc.py',isverbose=False) if workingversion: updateversionList=c.checkforupdate(workingversion,isverbose=False) if updateversionList: updateversion=updateversionList[-1][0] # # check DB environment # if options.authpath: os.environ['CORAL_AUTH_PATH'] = options.authpath ############################################################# #pre-check option compatibility ############################################################# if options.action=='recorded': if not options.hltpath:
#if use time and file filter together, there's no point of warning about missing LS,switch off noWarning=True ############################################################## # check working environment ############################################################## workingversion='UNKNOWN' updateversion='NONE' thiscmmd=sys.argv[0] if not options.withoutCheckforupdate: from RecoLuminosity.LumiDB import checkforupdate cmsswWorkingBase=os.environ['CMSSW_BASE'] if not cmsswWorkingBase: print('Please check out RecoLuminosity/LumiDB from CVS,scram b,cmsenv') sys.exit(11) c=checkforupdate.checkforupdate() workingversion=c.runningVersion(cmsswWorkingBase,'lumiCalc2.py',isverbose=False) if workingversion: updateversionList=c.checkforupdate(workingversion,isverbose=False) if updateversionList: updateversion=updateversionList[-1][0] # # check DB environment # if options.authpath: os.environ['CORAL_AUTH_PATH'] = options.authpath ############################################################# #pre-check option compatibility #############################################################