Пример #1
0
    for cmd in runArgs.preExec:
        merRDOLog.info(cmd)
        exec(cmd)

## Pre-include
if hasattr(runArgs,"preInclude"):
    for fragment in runArgs.preInclude:
        include(fragment)

## Configure specific sub-detectors
if hasattr(runArgs,"LucidOn") or hasattr(runArgs,"ALFAOn") or hasattr(runArgs,"ZDCOn") or hasattr(runArgs,"AFPOn") or hasattr(runArgs,"FwdRegionOn"):
    if not 'DetFlags' in dir():
        # If you configure one detflag, you're responsible for configuring them all!
        from AthenaCommon.DetFlags import DetFlags
        DetFlags.all_setOn()
        DetFlags.ALFA_setOff() #Default for now
        DetFlags.ZDC_setOff() #Default for now
        checkAFPOff = getattr(DetFlags, 'AFP_setOff', None)
        if checkAFPOff is not None:
            checkAFPOff() #Default for now
        checkFwdRegionOff = getattr(DetFlags, 'FwdRegion_setOff', None)
        if checkFwdRegionOff is not None:
            checkFwdRegionOff() #Default for now

    if hasattr(runArgs,"LucidOn"):
        if not runArgs.LucidOn:
            DetFlags.Lucid_setOff()
    if hasattr(runArgs,"ALFAOn"):
        if runArgs.ALFAOn:
            DetFlags.ALFA_setOn()
    if hasattr(runArgs,"ZDCOn"):
Пример #2
0
elif hasattr(runArgs, 'outputNTUP_FTKTMPFile'):
    FTKMerger.FTKMergedOutput = runArgs.outputNTUP_FTKTMPFile

elif hasattr(runArgs, 'outputRDO_FTKFile'):
    if hasattr(runArgs, 'inputRDOFile'):
        # Merge an existing RDO with the FTK tracks
        from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
        # this initialize the input service
        athenaCommonFlags.FilesInput.set_Value_and_Lock(runArgs.inputRDOFile)
        from RecJobTransforms.RDOFilePeeker import RDOFilePeeker
        RDOFilePeeker(runArgs, ftkLog)  # not sure what it does
        # enable the detector flag
        from AthenaCommon.DetFlags import DetFlags
        DetFlags.all_setOn()
        DetFlags.ALFA_setOff()
        DetFlags.ZDC_setOff()
        # other services
        from AthenaCommon.AppMgr import ServiceMgr
        from AthenaPoolCnvSvc.AthenaPoolCnvSvcConf import AthenaPoolCnvSvc
        ServiceMgr += AthenaPoolCnvSvc()
        import AthenaPoolCnvSvc.ReadAthenaPool
        ServiceMgr.EventSelector.InputCollections = athenaCommonFlags.FilesInput(
        )
        # Add the FTK collections to the RDO
        from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
        StreamRDO = AthenaPoolOutputStream("StreamRDO",
                                           runArgs.outputRDO_FTKFile)
        #StreamRDO.TakeItemsFromInput=True
        StreamRDO.ForceRead = TRUE
        StreamRDO.ItemList += ["FTK_RawTrackContainer#*"]