# Load Global Flags and set defaults #-------------------------------------------------------------- from AthenaCommon.GlobalFlags import globalflags #--- default is atlas geometry globalflags.DetGeo = 'atlas' #--- set defaults globalflags.DataSource = DataSource globalflags.ConditionsTag = ConditionsTag if ReadBS : globalflags.InputFormat = 'bytestream' else : globalflags.InputFormat = 'pool' #--- set geometry version globalflags.DetDescrVersion = GeometryTag #--- printout globalflags.print_JobProperties() #--- beam flag : default is zero luminosity from AthenaCommon.BeamFlags import jobproperties jobproperties.Beam.numberOfCollisions = 0.0 jobproperties.Beam.beamType = beamType #-------------------------------------------------------------- # Set Detector setup #-------------------------------------------------------------- from AthenaCommon.DetFlags import DetFlags #--- switch on SCT only DetFlags.all_setOff() DetFlags.SCT_setOn() #--- for the conditions access DetFlags.haveRIO.SCT_on()
#ToolSvc.InDetDetailedTrackSelectorTool.nHitTrt = 10 #ToolSvc.InDetDetailedTrackSelectorTool.nHitTrt = 0 ###ToolSvc.InDetDetailedTrackSelectorTool.pTMin = 0.* Units.MeV #ToolSvc.InDetDetailedTrackSelectorTool.useTrackQualityInfo = False #ToolSvc.InDetDetailedTrackSelectorTool.IPd0Max = 5 #ToolSvc.InDetDetailedTrackSelectorTool.sigIPd0Max = 5.0 #ToolSvc.InDetDetailedTrackSelectorTool.d0significanceMax = -1 #ToolSvc.InDetDetailedTrackSelectorTool.sigIPz0Max = 10.0 from IOVDbSvc.CondDB import conddb if hasattr(runArgs, "indetAlignTag"): if len(runArgs.indetAlignTag) > 0: conddb.addOverride("/Indet/Align", runArgs.indetAlignTag) #InDet_Collision_2009_02 if hasattr(runArgs, "trtAlignTag"): if len(runArgs.trtAlignTag) > 0: conddb.addOverride("/TRT/Align", runArgs.trtAlignTag) #TRT_Collision_2009_01 if hasattr(runArgs, "indetTrkErrScTag"): if len(runArgs.indetTrkErrScTag) > 0: conddb.addOverride("/Indet/TrkErrorScaling", runArgs.indetTrkErrScTag) if hasattr(runArgs, "beamposTag"): if len(runArgs.beamposTag) > 0: conddb.addOverride("Indet/Beampos", runArgs.beamposTag) # globalflags.print_JobProperties() #include the fragment that makes the dpd files include("InDetBeamSpotFinder/DPD_BeamSpotFragment.py")
#!/bin/env python from AthenaCommon.AthenaCommonFlags import athenaCommonFlags from AthenaCommon.GlobalFlags import globalflags athenaCommonFlags.print_JobProperties('tree&value') from TriggerMenu.menu.GenerateMenu import GenerateMenu g = GenerateMenu() g.generate() athenaCommonFlags.EvtMax=0 globalflags.print_JobProperties('tree&value')