from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
InDetAlignMonManager = AthenaMonManager(
    name="InDetAlignMonManager",
    FileKey=DQMonFlags.monManFileKey(),
    ManualDataTypeSetup=DQMonFlags.monManManualDataTypeSetup(),
    DataType=DQMonFlags.monManDataType(),
    Environment="user",
    ManualRunLBSetup=True,
    Run=1,
    LumiBlock=1)

from InDetAlignmentMonitoring.InDetAlignmentMonitoringConf import InDetAlignMon__TrackSelectionTool

# All tracks selection
allSelection = InDetAlignMon__TrackSelectionTool(
    name="InDetAlignMonTrackSelectionTool",
    PassAllTracks=True,  ## Uncomment this line to bypass track slection
)
ToolSvc += allSelection

# Align tracks selection

from InDetTrackSelectorTool.InDetTrackSelectorToolConf import InDet__InDetTrtDriftCircleCutTool
trtDCtool = InDet__InDetTrtDriftCircleCutTool(
    name="TrtHitsEtaCutTool",
    #OutputLevel = newInDetAlignAlg_Options["outputLevel"],
    UseNewParameterization=True,
    UseActiveFractionSvc=False)
ToolSvc += trtDCtool
print trtDCtool

#from TrkTrackSummaryTool.TrkTrackSummaryToolConf import Trk__TrackSummaryTool
Exemple #2
0
                                                                        maxD0 = 100000.0, #overriding default
                                                                        minPt = 0.0, #overriding default
                                                                        numberOfTRTHits = 0, #overriding default
                                                                        numberOfSiliconHits = 0, #overriding default
                                                                        numberOfSiliconHitsTop = -1, #default
                                                                        numberOfSiliconHitsBottom = -1, #default
                                                                        OutputLevel = ERROR,
                                                                        TrackSummaryTool = InDetTrackSummaryTool)
ToolSvc += InDetAlignCosmicTrackSelectorTool
if (InDetFlags.doPrintConfigurables()):
    print InDetAlignCosmicTrackSelectorTool

#all configuration of track selection cuts should be done using TrkSelectorTool above
from InDetAlignmentMonitoring.InDetAlignmentMonitoringConf import InDetAlignMon__TrackSelectionTool
InDetAlignMonTrackSelectionTool = InDetAlignMon__TrackSelectionTool(name = "InDetAlignMonTrackSelectionTool",
                                                                    PassAllTracks = True, ## Uncomment this line to bypass track slection
                                                                    OutputLevel = ERROR,
                                                                    TrackSelectorTool = InDetAlignCosmicTrackSelectorTool)


ToolSvc += InDetAlignMonTrackSelectionTool
if (InDetFlags.doPrintConfigurables()):
   print InDetAlignMonTrackSelectionTool
    
#================================
from InDetAlignmentMonitoring.InDetAlignmentMonitoringConf import IDAlignMonResiduals
InDetAlignMonResidualsList = []
m_resName = ["InDetAlignMonResidualsComb"
             ,"InDetAlignMonResidualsCombD0Cut"
             ,"InDetAlignMonResidualsTRT"
             ,"InDetAlignMonResidualsTRTD0Cut"
             ,"InDetAlignMonResidualsEndcap"]
Exemple #3
0
        m_alignMonTrackSelectorTool[0].minPt = 0.0
        m_alignMonTrackSelectorTool[0].maxZ0SinTheta = 100000.0
        m_alignMonTrackSelectorTool[1].minPt = 0.0
        m_alignMonTrackSelectorTool[1].maxZ0SinTheta = 100000.0

    #Adding the tools to the Tool Service

    ToolSvc += m_alignMonTrackSelectorTool[0]
    ToolSvc += m_alignMonTrackSelectorTool[1]

    #Here we start creating the custom Track Selection tools.

    m_alignMonTrackSelectionTool.append(
        InDetAlignMon__TrackSelectionTool(
            name="InDetAlignMonTrackSelectionTool_LoosePrimary",
            #PassAllTracks           = True, ## Uncomment this line to bypass track slection
            IDTrackSelectionTool=m_alignMonTrackSelectorTool[0],
            PrimVtxContainerName=InDetKeys.xAODVertexContainer(),
            UseIDTrackSelectionTool=True))

    m_alignMonTrackSelectionTool.append(
        InDetAlignMon__TrackSelectionTool(
            name="InDetAlignMonTrackSelectionTool_LoosePrimary_NoTRT",
            #PassAllTracks           = True, ## Uncomment this line to bypass track slection
            IDTrackSelectionTool=m_alignMonTrackSelectorTool[1],
            PrimVtxContainerName=InDetKeys.xAODVertexContainer(),
            UseIDTrackSelectionTool=True))

    #Adding the TrackSelectionTools to the Tool Service
    ToolSvc += m_alignMonTrackSelectionTool[0]
    ToolSvc += m_alignMonTrackSelectionTool[1]
Exemple #4
0
    Environment=DQMonFlags.monManEnvironment(),
    ManualRunLBSetup=DQMonFlags.monManManualRunLBSetup(),
    Run=DQMonFlags.monManRun(),
    LumiBlock=DQMonFlags.monManLumiBlock())

tracks = InDetKeys.xAODTrackParticleContainer()

from InDetAlignmentMonitoring.InDetAlignmentMonitoringConf import InDetAlignMon__TrackSelectionTool
from InDetTrackSelectionTool.InDetTrackSelectionToolConf import InDet__InDetTrackSelectionTool

# Tracks For LoosePrimary Selection

# All tracks selection
m_allSelection = InDetAlignMon__TrackSelectionTool(
    name="InDetAlignMonTrackSelectionTool",
    PrimVtxContainerName=InDetKeys.xAODVertexContainer(),
    PassAllTracks=True,  ## Uncomment this line to bypass track slection
)

m_TrackSelectorTool_LoosePrimary = InDet__InDetTrackSelectionTool(
    name="InDetTrackSelectorLoosePrimary",
    UseTrkTrackTools=True,
    minPt=5000,
    maxD0=100000,
    maxZ0SinTheta=150,
    minNTrtHits=0,
    CutLevel="LoosePrimary",
    TrackSummaryTool=InDetTrackSummaryTool,
    Extrapolator=InDetExtrapolator)
#ToolSvc += m_allSelection
#ToolSvc += m_TrackSelectorTool_LoosePrimary