SCTHitEffMonTool.OutputLevel = 4 SCTHitEffMonTool.IsCosmic = False SCTHitEffMonTool.UseMasks = False SCTHitEffMonTool.LookAtDatabase = True ## Load flagged condition tool from SCT_ConditionsTools.SCT_FlaggedConditionToolSetup import SCT_FlaggedConditionToolSetup sct_FlaggedConditionToolSetup = SCT_FlaggedConditionToolSetup() sct_FlaggedConditionToolSetup.setup() InDetSCT_FlaggedConditionTool = sct_FlaggedConditionToolSetup.getTool() SCTHitEffMonTool.FlaggedConditionTool = InDetSCT_FlaggedConditionTool SCTHitEffMonTool.ChronoTime = False from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool SCT_MonBoundaryCheckTool = InDet__InDetBoundaryCheckTool( name="SCT_MonBoundaryCheckTool", SctSummaryTool=SCT_MonConditionsSummaryTool) ToolSvc += SCT_MonBoundaryCheckTool from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool SCT_MonHoleSearch = InDet__InDetTrackHoleSearchTool( name="SCT_MonHoleSearch", Extrapolator=InDetExtrapolator, ExtendedListOfHoles=True, Cosmics=InDetFlags.doCosmics(), BoundaryCheckTool=SCT_MonBoundaryCheckTool) ToolSvc += SCT_MonHoleSearch if (InDetFlags.doPrintConfigurables()): print SCT_MonHoleSearch
def __init__(self,name = 'AtlasTrackSummaryTool'): from AthenaCommon.AppMgr import ToolSvc # # Setup Atlas Extrapolator # from TrkExTools.AtlasExtrapolator import AtlasExtrapolator AtlasExtrapolator = AtlasExtrapolator() ToolSvc += AtlasExtrapolator # # Setup Association Tool # from InDetAssociationTools.InDetAssociationToolsConf import InDet__InDetPRD_AssociationToolGangedPixels AtlasPrdAssociationTool = InDet__InDetPRD_AssociationToolGangedPixels( name = "AtlasPrdAssociationTool", PixelClusterAmbiguitiesMapName = "PixelClusterAmbiguitiesMap" ) ToolSvc += AtlasPrdAssociationTool #print AtlasPrdAssociationTool # # Setup Boundary Check Tool # from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool AtlasBoundaryCheckTool = InDet__InDetBoundaryCheckTool( name="AtlasBoundaryCheckTool", UsePixel = DetFlags.haveRIO.pixel_on(), UseSCT = DetFlags.haveRIO.SCT_on() ) ToolSvc += AtlasBoundaryCheckTool # # Loading Configurable HoleSearchTool # from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool AtlasHoleSearchTool = InDet__InDetTrackHoleSearchTool(name = "AtlasHoleSearchTool", Extrapolator = AtlasExtrapolator, BoundaryCheckTool=AtlasBoundaryCheckTool ) ToolSvc += AtlasHoleSearchTool #print AtlasHoleSearchTool # # Configrable version of loading the AtlasTrackSummaryHelperTool # from InDetTrackSummaryHelperTool.InDetTrackSummaryHelperToolConf import InDet__InDetTrackSummaryHelperTool if DetFlags.haveRIO.TRT_on(): AtlasTrackSummaryHelperTool = InDet__InDetTrackSummaryHelperTool( name = "AtlasTrackSummaryHelperTool", HoleSearch = AtlasHoleSearchTool, AssoTool = AtlasPrdAssociationTool, DoSharedHits = False ) else: AtlasTrackSummaryHelperTool = InDet__InDetTrackSummaryHelperTool( name = "AtlasTrackSummaryHelperTool", HoleSearch = AtlasHoleSearchTool, AssoTool = AtlasPrdAssociationTool, DoSharedHits = False, TRTStrawSummarySvc = "" ) ToolSvc += AtlasTrackSummaryHelperTool #print AtlasTrackSummaryHelperTool # # Configurable version of TrkTrackSummaryTool # from TrkTrackSummaryTool.TrkTrackSummaryToolConf import Trk__TrackSummaryTool AtlasTrackSummaryTool = Trk__TrackSummaryTool( ) # call the base class constructor Trk__TrackSummaryTool.__init__(self, name = name, InDetSummaryHelperTool = AtlasTrackSummaryHelperTool, doHolesOnTrack = True, doSharedHits = AtlasTrackSummaryHelperTool.DoSharedHits )
ToolSvc += InDetExtrapolator if InDetFlags.doPrintConfigurables: print InDetExtrapolator # LEVEL 4 from InDetAssociationTools.InDetAssociationToolsConf import InDet__InDetPRD_AssociationToolGangedPixels InDetPrdAssociationTool = InDet__InDetPRD_AssociationToolGangedPixels( name="InDetPrdAssociationTool", PixelClusterAmbiguitiesMapName=InDetKeys.GangedPixelMap()) ToolSvc += InDetPrdAssociationTool if InDetFlags.doPrintConfigurables: print InDetPrdAssociationTool from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool InDetBoundaryCheckTool = InDet__InDetBoundaryCheckTool( name="InDetBoundaryCheckTool", UsePixel=DetFlags.haveRIO.pixel_on(), UseSCT=DetFlags.haveRIO.SCT_on(), SctSummaryTool=None) ToolSvc += InDetBoundaryCheckTool from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool InDetHoleSearchTool = InDet__InDetTrackHoleSearchTool( name="InDetHoleSearchTool", Extrapolator=InDetExtrapolator, BoundaryCheckTool=InDetBoundaryCheckTool) ToolSvc += InDetHoleSearchTool if InDetFlags.doPrintConfigurables: print InDetHoleSearchTool from InDetTrackSummaryHelperTool.InDetTrackSummaryHelperToolConf import InDet__InDetTrackSummaryHelperTool InDetTrackSummaryHelperTool = InDet__InDetTrackSummaryHelperTool(
print AthTruthSelectionTool #ToolSvc += AthTruthSelectionTool from InDetPhysValMonitoring.InDetPhysValMonitoringConf import InDetPhysValMonitoringTool tool1 = InDetPhysValMonitoringTool() tool1.TruthSelectionTool = AthTruthSelectionTool tool1.useTrackSelection = usingTrackSelection tool1.TrackSelectionTool = InDetTrackSelectorTool tool1.FillTrackInJetPlots = True print tool1 #ToolSvc += tool1 monMan.AthenaMonTools += [tool1] from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool InDetBoundaryCheckTool = InDet__InDetBoundaryCheckTool( name="InDetBoundaryCheckTool") ToolSvc += InDetBoundaryCheckTool from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool InDetHoleSearchTool = InDet__InDetTrackHoleSearchTool( name="InDetHoleSearchTool", Extrapolator=InDetExtrapolator, BoundaryCheckTool=InDetBoundaryCheckTool, CountDeadModulesAfterLastHit=True) ToolSvc += InDetHoleSearchTool print InDetHoleSearchTool from GaudiSvc.GaudiSvcConf import THistSvc ServiceMgr += THistSvc() svcMgr.THistSvc.Output += ["M_output DATAFILE='M_output.root' OPT='RECREATE'"]
from InDetRecExample.InDetKeys import InDetKeys from InDetAssociationTools.InDetAssociationToolsConf import InDet__InDetPRD_AssociationToolGangedPixels InDetPrdAssociationTool = InDet__InDetPRD_AssociationToolGangedPixels(name = "TrigBphysInDetPrdAssociationTool", PixelClusterAmbiguitiesMapName = InDetKeys.GangedPixelMap()) ToolSvc += InDetPrdAssociationTool from RecExConfig.RecFlags import rec CountDeadModulesAfterLastHit=False #rec.Commissioning=False from AthenaCommon.DetFlags import DetFlags from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool InDetBoundaryCheck = InDet__InDetBoundaryCheckTool( name="TrigBphysInDetBoundaryCheckTool", UsePixel=DetFlags.haveRIO.pixel_on(), UseSCT=DetFlags.haveRIO.SCT_on() ) ToolSvc += InDetBoundaryCheck from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool InDetHoleSearchTool = InDet__InDetTrackHoleSearchTool(name = "TrigBphysInDetHoleSearchTool", Extrapolator = InDetExtrapolator, BoundaryCheckTool=InDetBoundaryCheck, #Commissioning = rec.Commissioning()) CountDeadModulesAfterLastHit = CountDeadModulesAfterLastHit) ToolSvc += InDetHoleSearchTool from InDetTrackSummaryHelperTool.InDetTrackSummaryHelperToolConf import InDet__InDetTrackSummaryHelperTool InDetTrackSummaryHelperTool = InDet__InDetTrackSummaryHelperTool(name = "TrigBphysInDetSummaryHelper", AssoTool = InDetPrdAssociationTool,
from InDetAssociationTools.InDetAssociationToolsConf import InDet__InDetPRD_AssociationToolGangedPixels InDetPrdAssociationTool = InDet__InDetPRD_AssociationToolGangedPixels(name = "InDetPrdAssociationTool", PixelClusterAmbiguitiesMapName = InDetKeys.GangedPixelMap()) ToolSvc += InDetPrdAssociationTool from RecExConfig.RecFlags import rec CountDeadModulesAfterLastHit=False #rec.Commissioning=False from InDetRecExample.InDetJobProperties import InDetFlags from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool BoundaryCheckTool = InDet__InDetBoundaryCheckTool( name="InDetBoundaryCheckTool", UsePixel=DetFlags.haveRIO.pixel_on(), UseSCT=DetFlags.haveRIO.SCT_on(), CheckBadSCT = InDetFlags.checkDeadElementsOnTrack() ) ToolSvc += BoundaryCheckTool from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool InDetHoleSearchTool = InDet__InDetTrackHoleSearchTool(name = "InDetHoleSearchTool", Extrapolator = InDetExtrapolator, BoundaryCheckTool=BoundaryCheckTool, #Commissioning = rec.Commissioning()) CountDeadModulesAfterLastHit = CountDeadModulesAfterLastHit) ToolSvc += InDetHoleSearchTool from InDetTrackSummaryHelperTool.InDetTrackSummaryHelperToolConf import InDet__InDetTrackSummaryHelperTool InDetTrackSummaryHelperTool = InDet__InDetTrackSummaryHelperTool(name = "InDetSummaryHelper", AssoTool = InDetPrdAssociationTool,
from AthenaCommon.DetFlags import DetFlags from AthenaCommon.AppMgr import ServiceMgr from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.BeamFlags import jobproperties from MuonCombinedRecExample.MuonCombinedRecFlags import muonCombinedRecFlags from AthenaCommon.CfgGetter import getPublicTool from AthenaCommon.GlobalFlags import globalflags beamFlags = jobproperties.Beam atlasExtrapolator = getPublicTool('AtlasExtrapolator') muonTrackSummaryHelper = getPublicTool('MuonTrackSummaryHelperTool') from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool CombinedMuonIDBoundaryCheckTool = InDet__InDetBoundaryCheckTool( name="CombinedMuonIDBoundaryCheckTool", UsePixel=DetFlags.haveRIO.pixel_on(), UseSCT=DetFlags.haveRIO.SCT_on()) ToolSvc += CombinedMuonIDBoundaryCheckTool # load InDetHoleSearchTool from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool ToolSvc += InDet__InDetTrackHoleSearchTool( \ name = "CombinedMuonIDHoleSearch", Extrapolator = atlasExtrapolator, BoundaryCheckTool = CombinedMuonIDBoundaryCheckTool, CountDeadModulesAfterLastHit = True) import InDetRecExample.TrackingCommon as TrackingCommon InDetPixelConditionsSummaryTool = TrackingCommon.getInDetPixelConditionsSummaryTool( )