diff --git a/Reconstruction/RecExample/RecExOnline/share/GlobalMonitoring.py b/Reconstruction/RecExample/RecExOnline/share/GlobalMonitoring.py index d1ae0e100bbc674e1848ce41f93bb7153e38e476..cf1be02b84d6c12980f2b487b4f77f527e1e79c3 100644 --- a/Reconstruction/RecExample/RecExOnline/share/GlobalMonitoring.py +++ b/Reconstruction/RecExample/RecExOnline/share/GlobalMonitoring.py @@ -39,7 +39,7 @@ streamLogic = 'Or' # When using ATLAS partition # Use different streams for "atlas standby" and "atlas ready" # -if (partitionName == 'ATLAS'): +if (partitionName == 'ATLAS' or partitionName == 'ATLAS_MP1'): streamLogic = 'Or' import RecExOnline.OnlineISConfiguration @@ -51,7 +51,7 @@ if (partitionName == 'ATLAS'): obj = ispy.ISObject(ispy.IPCPartition(partitionName), 'RunParams.RunParams', 'RunParams') obj.checkout() ### if ( obj.T0_project_tag == 'data15_comm' or obj.T0_project_tag == 'data15_13TeV'): - if ( obj.T0_project_tag == 'data15_comm' or obj.T0_project_tag == 'data15_13TeV' or obj.T0_project_tag == 'data15_5TeV' or obj.T0_project_tag == 'data16_comm' or obj.T0_project_tag == 'data16_13TeV' or obj.T0_project_tag == 'data16_5TeV' or obj.T0_project_tag == 'data16_1beam' or obj.T0_project_tag == 'data16_hip' or obj.T0_project_tag == 'data16_hip5TeV' or obj.T0_project_tag == 'data16_hip8TeV'): + if ( obj.T0_project_tag == 'data17_comm' or obj.T0_project_tag == 'data17_13TeV' or obj.T0_project_tag == 'data17_1beam' or obj.T0_project_tag == 'data16_comm' or obj.T0_project_tag == 'data16_13TeV' or obj.T0_project_tag == 'data16_5TeV' or obj.T0_project_tag == 'data16_1beam' or obj.T0_project_tag == 'data16_hip' or obj.T0_project_tag == 'data16_hip5TeV' or obj.T0_project_tag == 'data16_hip8TeV'): #streamName = 'MinBias' #streamName = 'Main' # Switching due to missingg Minbias stream -= 13/06/2015 AK try: @@ -76,11 +76,11 @@ else: # # When NOT using ATLAS partition # -if (partitionName != 'ATLAS'): +if (partitionName != 'ATLAS' and partitionName != 'ATLAS_MP1'): if isHI_2016: - publishName = 'lshi_hiconf_pp_20_11_2_2_1' + publishName = 'GMTest_hiconf' else: - publishName = 'lshi_ppconf_pp_20_11_2_2_1' + publishName = 'GMTest_ppconf' isserverName = 'Histogramming' @@ -117,10 +117,10 @@ useAtlantisEmon = False ### evtMax = -1 ### evtMax = 50 -if (partitionName == 'ATLAS'): +if (partitionName == 'ATLAS' or partitionName == 'ATLAS_MP1'): evtMax = -1 -if (partitionName != 'ATLAS'): +if (partitionName != 'ATLAS' and partitionName != 'ATLAS_MP1'): # evtMax = 200 evtMax = -1 # lshi: for Gatherer test diff --git a/Reconstruction/RecExample/RecExOnline/share/RecExOnline_globalconfig.py b/Reconstruction/RecExample/RecExOnline/share/RecExOnline_globalconfig.py index 8440ab44e296e3999f339a6e439e7a9295ac6d6c..67f042407d1d03f827dda5926ffd6c04b4d85153 100644 --- a/Reconstruction/RecExample/RecExOnline/share/RecExOnline_globalconfig.py +++ b/Reconstruction/RecExample/RecExOnline/share/RecExOnline_globalconfig.py @@ -112,8 +112,13 @@ from AthenaCommon.BFieldFlags import jobproperties FirstSample = 3 NSamples = 5 -#if (useEmon and (partitionName == 'ATLAS' or partitionName == 'GMTestPartitionM7')): -if (useEmon and (partitionName == 'ATLAS')): +### initialize flags before SetupField to choose correct condition tag database. 5 May 2017 +from AthenaCommon.GlobalFlags import globalflags +from AthenaCommon.AthenaCommonFlags import jobproperties,athenaCommonFlags +globalflags.DataSource.set_Value_and_Lock(DataSource) +athenaCommonFlags.isOnline = isOnline + +if (useEmon and (partitionName == 'ATLAS' or partitionName == 'ATLAS_MP1')): import ispy from ispy import * from ipc import IPCPartition @@ -128,9 +133,6 @@ if (useEmon and (partitionName == 'ATLAS')): logRecExOnline_globalconfig.info("is_run_number = %s" % is_run_number) logRecExOnline_globalconfig.info("is_beam_type = %s" % is_beam_type) logRecExOnline_globalconfig.info("is_T0_project_tag = %s" % is_T0_project_tag) -## print 'is_run_number', is_run_number -## print 'is_beam_type', is_beam_type -## print 'is_T0_project_tag', is_T0_project_tag part_name = 'initial' p = IPCPartition(part_name) @@ -163,27 +165,31 @@ if (useEmon and (partitionName == 'ATLAS')): logRecExOnline_globalconfig.info("solenoidCurrent = %f", solenoidCurrent.value) logRecExOnline_globalconfig.info("solenoidInvalid = %f", solenoidInvalid.value) - from BFieldAth.BFieldAthConf import MagFieldAthenaSvc - svcMgr += MagFieldAthenaSvc(SetupCOOL=True, NameOfTheSource='COOL_HLT', onlineSolCur=solenoidCurrent.value, onlineTorCur=toroidCurrent.value) + #from BFieldAth.BFieldAthConf import MagFieldAthenaSvc + #svcMgr += MagFieldAthenaSvc(SetupCOOL=True, NameOfTheSource='COOL_HLT', onlineSolCur=solenoidCurrent.value, onlineTorCur=toroidCurrent.value) + import MagFieldServices.SetupField # New magnetic field service. 5 May 2017 try: - p3 = IPCPartition("ATLAS") - x = ISObject(p3, 'LargParams.LArg.RunLogger.GlobalParams', 'GlobalParamsInfo') + p3 = IPCPartition(partitionName) + x = ISObject(p3, 'LArParams.LAr.RunLogger.GlobalParams', 'GlobalParamsInfo') x.checkout() FirstSample = x.firstSample NSamples = x.nbOfSamples + Format = x.format except: - logRecExOnline_globalconfig.info("Could not find IS Parameters for LargParams.LArg.RunLogger.GlobalParams - Set default flags (FirstSample=3, NSamples=5") + logRecExOnline_globalconfig.info("Could not find IS Parameters for LArParams.LAr.RunLogger.GlobalParams - Set default flags (FirstSample=3, NSamples=5") + + # for beam splash when LAr in "transparent" ROD mode (5 May 2017) + if 'Format' in dir() and Format == 0: + from LArROD.LArRODFlags import larRODFlags + larRODFlags.keepDSPRaw.set_Value_and_Lock(False) + # ----------------------------------------------- Set Run configuration ## Second, fall back to manual configuration or default values -from AthenaCommon.GlobalFlags import globalflags -from AthenaCommon.AthenaCommonFlags import jobproperties,athenaCommonFlags - -globalflags.DataSource.set_Value_and_Lock(DataSource) globalflags.InputFormat.set_Value_and_Lock(InputFormat) if not useEmon: @@ -200,8 +206,6 @@ from InDetRecExample.InDetJobProperties import InDetFlags InDetFlags.doPixelClusterSplitting.set_Value(False) # does not work online # ----------------------------------------------- Online flag - -athenaCommonFlags.isOnline = isOnline athenaCommonFlags.EvtMax.set_Value_and_Lock(evtMax) athenaCommonFlags.isOnlineStateless = isOnlineStateless # ----------------------------------------------- Remove DCS problems @@ -237,7 +241,7 @@ if doPixelOnlyMon: # ----------------------------------------------- Output flags from RecExConfig.RecFlags import rec -if (isOnline and useEmon and (partitionName == 'ATLAS' or partitionName == 'TDAQ')): +if (isOnline and useEmon and (partitionName == 'ATLAS' or partitionName == 'ATLAS_MP1' or partitionName == 'TDAQ')): rec.projectName.set_Value_and_Lock(is_T0_project_tag) from AthenaCommon.BeamFlags import jobproperties jobproperties.Beam.beamType.set_Value_and_Lock(beamType) @@ -260,7 +264,7 @@ if (isOnline and useEmon and (partitionName == 'ATLAS' or partitionName == 'TDAQ #logRecExOnline_globalconfig.info("RecExOnline: BeamEnergy = %s" %BeamEnergy) #logRecExOnline_globalconfig.info("RecExOnline: LumiFlags = %s" %LumiFlags) -if (isOnline and useEmon and (partitionName != 'ATLAS' and partitionName != 'TDAQ')): +if (isOnline and useEmon and (partitionName != 'ATLAS' and partitionName != 'ATLAS_MP1' and partitionName != 'TDAQ')): from AthenaCommon.BeamFlags import jobproperties jobproperties.Beam.beamType.set_Value_and_Lock(beamType) globalflags.ConditionsTag.set_Value_and_Lock(ConditionsTag)