示例#1
0
else:
    usePrdAssociationTool = False

InDetPrdAssociationTool = None
if usePrdAssociationTool:
    # Taken from InDetRecExample/share/InDetRecLoadTools.py
    from InDetAssociationTools.InDetAssociationToolsConf import InDet__InDetPRD_AssociationToolGangedPixels
    InDetPrdAssociationTool = InDet__InDetPRD_AssociationToolGangedPixels(name                           = "InDetPrdAssociationTool",
                                                                          PixelClusterAmbiguitiesMapName = InDetKeys.GangedPixelMap(),
                                                                          addTRToutliers                 = False) ###
    ToolSvc += InDetPrdAssociationTool

# Set up InDet__SiSpacePointsSeedMaker_ATLxk (private)
# Taken from InDetRecExample/share/ConfiguredNewTrackingSiPattern.py
from SiSpacePointsSeedTool_xk.SiSpacePointsSeedTool_xkConf import InDet__SiSpacePointsSeedMaker_ATLxk as SiSpacePointsSeedMaker
InDetSiSpacePointsSeedMaker = SiSpacePointsSeedMaker(name                   = "InDetSpSeedsMaker"+NewTrackingCuts.extension(),
                                                     pTmin                  = NewTrackingCuts.minPT(),
                                                     maxdImpact             = NewTrackingCuts.maxPrimaryImpact(),
                                                     maxZ                   = NewTrackingCuts.maxZImpact(),
                                                     minZ                   = -NewTrackingCuts.maxZImpact(),
                                                     usePixel               = NewTrackingCuts.usePixel(),
                                                     SpacePointsPixelName   = InDetKeys.PixelSpacePoints(),
                                                     useSCT                 = (NewTrackingCuts.useSCT() and NewTrackingCuts.useSCTSeeding()),
                                                     SpacePointsSCTName     = InDetKeys.SCT_SpacePoints(),
                                                     useOverlapSpCollection = NewTrackingCuts.usePixel() and (NewTrackingCuts.useSCT() and NewTrackingCuts.useSCTSeeding()), ###
                                                     SpacePointsOverlapName = InDetKeys.OverlapSpacePoints(),
                                                     radMax                 = NewTrackingCuts.radMax(),
                                                     RapidityCut            = NewTrackingCuts.maxEta(),
                                                     PRDtoTrackMap          = "", # @TODO
                                                     maxdImpactPPS = NewTrackingCuts.maxdImpactPPSSeeds(),
                                                     maxdImpactSSS = NewTrackingCuts.maxdImpactSSSSeeds())
示例#2
0
InDetPrdAssociationTool = None
if usePrdAssociationTool:
    # Taken from InDetRecExample/share/InDetRecLoadTools.py
    from InDetAssociationTools.InDetAssociationToolsConf import InDet__InDetPRD_AssociationToolGangedPixels
    InDetPrdAssociationTool = InDet__InDetPRD_AssociationToolGangedPixels(
        name="InDetPrdAssociationTool",
        PixelClusterAmbiguitiesMapName=InDetKeys.GangedPixelMap(),
        addTRToutliers=False)  ###
    ToolSvc += InDetPrdAssociationTool

# Set up InDet__SiSpacePointsSeedMaker_ATLxk (private)
# Taken from InDetRecExample/share/ConfiguredNewTrackingSiPattern.py
from SiSpacePointsSeedTool_xk.SiSpacePointsSeedTool_xkConf import InDet__SiSpacePointsSeedMaker_ATLxk as SiSpacePointsSeedMaker

InDetSiSpacePointsSeedMaker = SiSpacePointsSeedMaker(
    name="InDetSpSeedsMaker" + NewTrackingCuts.extension(),
    pTmin=NewTrackingCuts.minPT(),
    maxdImpact=NewTrackingCuts.maxPrimaryImpact(),
    maxZ=NewTrackingCuts.maxZImpact(),
    minZ=-NewTrackingCuts.maxZImpact(),
    usePixel=NewTrackingCuts.usePixel(),
    SpacePointsPixelName=InDetKeys.PixelSpacePoints(),
    useSCT=(NewTrackingCuts.useSCT() and NewTrackingCuts.useSCTSeeding()),
    SpacePointsSCTName=InDetKeys.SCT_SpacePoints(),
    useOverlapSpCollection=NewTrackingCuts.usePixel()
    and (NewTrackingCuts.useSCT() and NewTrackingCuts.useSCTSeeding()),  ###
    SpacePointsOverlapName=InDetKeys.OverlapSpacePoints(),
    radMax=NewTrackingCuts.radMax(),
    RapidityCut=NewTrackingCuts.maxEta(),
    PRDtoTrackMap="",
    maxdImpactPPS=NewTrackingCuts.maxdImpactPPSSeeds(),
示例#3
0
    from InDetRecExample.TrackingCommon import getInDetTRT_LocalOccupancy
    TRT_dEdx_Tool.TRT_LocalOccupancyTool = getInDetTRT_LocalOccupancy()
    ToolSvc += TRT_dEdx_Tool

    TrackCollectionKeys = []

    from InDetRecExample.ConfiguredNewTrackingCuts import ConfiguredNewTrackingCuts
    InDetNewTrackingCutsPixel = ConfiguredNewTrackingCuts("Pixel")
    print(InDetNewTrackingCutsPixel)

    if not hasattr(topSequence, 'InDetTrackCollectionMerger'):
        from InDetRecExample import TrackingCommon
        from InDetTrackPRD_Association.InDetTrackPRD_AssociationConf import InDet__InDetTrackPRD_Association
        InDetPRD_Association = InDet__InDetTrackPRD_Association(
            name='InDetPRD_Association' +
            InDetNewTrackingCutsPixel.extension(),
            AssociationTool=TrackingCommon.
            getInDetPRDtoTrackMapToolGangedPixels(),
            TracksName=['Tracks'],
            AssociationMapName="PRDtoTrackMap" + InDetKeys.UnslimmedTracks(),
            OutputLevel=INFO)
        topSequence += InDetPRD_Association
        print(InDetPRD_Association)

if dumpSctInfo:
    from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import SCT_PrepDataToxAOD
    xAOD_SCT_PrepDataToxAOD = SCT_PrepDataToxAOD(
        name="xAOD_SCT_PrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_SCT_PrepDataToxAOD.OutputLevel = INFO
    xAOD_SCT_PrepDataToxAOD.UseTruthInfo = dumpTruthInfo