from AthenaCommon.AppMgr import ServiceMgr from AthenaCommon.GlobalFlags import GlobalFlags from AthenaCommon.AthenaCommonFlags import jobproperties as jp jp.AthenaCommonFlags.FilesInput = jobConfig['inputfiles'] include('RecExCommon/aodtoaod.py') rec.doAOD.set_Value_and_Lock(True) # Number of events theApp.EvtMax = jobConfig['evtmax'] # Event filtering if 'bcidList' in jobConfig: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.BCIDFilter(jobConfig['bcidList']) if 'lbList' in jobConfig: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.LBFilter(jobConfig['lbList']) if 'lbData' in jobConfig: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.LumiBlockFilter(jobConfig['lbData']) if 'zRange' in jobConfig: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.ZFilter(jobConfig['zRange']) from AthenaCommon.AppMgr import theApp StreamAOD = theApp.getOutputStream("StreamAOD") StreamAOD.OutputFile = jobConfig['outputfile'] # Reduce verbosity
################################ # build AlignTrack collection splitter algorithm printfunc(" <NewInDetAlignAlgSetup> Setting up the AlignTrackCollSplitter ") from TrkAlignGenAlgs.TrkAlignGenAlgsConf import Trk__AlignTrackCollSplitter AlignTrackCollSplitter = Trk__AlignTrackCollSplitter( "AlignTrackCollSplitter", OutputLevel=newInDetAlignAlg_Options["outputLevel"]) topSequence += AlignTrackCollSplitter printfunc(AlignTrackCollSplitter) ################################ if newInDetAlignAlg_Options["doMonitoring"] and newInDetAlignAlg_Options[ "runAccumulate"]: include("InDetAlignExample/NewInDetAlignMonitoring.py") if newInDetAlignAlg_Options["LumiblockSelection"]: printfunc(" ************************** ") printfunc(" ** Selecting LumiBlocks ** ") printfunc(" ************************** ") printfunc(" ** List of LumiBlocks ** ") printfunc(str(newInDetAlignAlg_Options["LumiblockList"]).strip('[]')) printfunc(" ** ** ") import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.LBFilter( newInDetAlignAlg_Options["LumiblockList"]) else: printfunc(" ** Selecting LumiBlocks is deactivated ** ")
] #Fit Options for RooFit only if not 'RooFitMaxTransverseErr' in jobConfig: jobConfig['RooFitMaxTransverseErr'] = 0.05 if not 'FixWidth' in jobConfig: jobConfig['FixWidth'] = False # General job setup include("InDetBeamSpotExample/AutoConfFragment.py") include("InDetBeamSpotExample/ReadInDetRecFragment.py") include("InDetBeamSpotExample/JobSetupFragment.py") if 'UseBCID' in jobConfig and jobConfig['UseBCID'] != []: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.BCIDFilter(jobConfig['UseBCID']) if 'lbList' in jobConfig: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.LBFilter(jobConfig['lbList']) if 'lbData' in jobConfig: import InDetBeamSpotExample.FilterUtils as FilterUtils FilterUtils.filterSeq += FilterUtils.LumiBlockFilter(jobConfig['lbData']) # if 'zRange' in jobConfig: # import InDetBeamSpotExample.FilterUtils as FilterUtils # FilterUtils.filterSeq += FilterUtils.ZFilter(jobConfig['zRange']) ToolSvc += CfgMgr.InDet__InDetBeamSpotVertex( name='InDetBeamSpotVertex', MaxSigmaTr=jobConfig['MaxSigmaTr'], MaxVtxErrTr=100., OutlierChi2Tr=jobConfig['OutlierChi2Tr'],