OutputFilePath = '' OutputFileName = OutputFilePath+'MaterialValidation-' if doFatrasGeometry : OutputFileName = OutputFilePath+'FatrasMaterialValidation-' ServiceMgr.THistSvc.Output = [ "val DATAFILE='"+OutputFileName+DetVerName+".root' TYPE='ROOT' OPT='RECREATE'"] # The standard material effects updator from TrkExSlPropagator.TrkExSlPropagatorConf import Trk__StraightLinePropagator ValidationPropagator = Trk__StraightLinePropagator(name='ValidationPropagator') ToolSvc += ValidationPropagator # Extrapolator from TrkExTools.TrkExToolsConf import Trk__Extrapolator ValidationExtrapolator = Trk__Extrapolator(name='ValidationExtrapolator') ValidationExtrapolator.MaterialEffectsUpdators = [ ValidationMaterialUpdator ] ValidationExtrapolator.Navigator = ValidationNavigator ValidationExtrapolator.Propagators = [ ValidationPropagator ] ValidationExtrapolator.StopWithNavigationBreak = True ValidationExtrapolator.DetailedNavigationOutput = True ValidationExtrapolator.OutputLevel = INFO ToolSvc += ValidationExtrapolator ############################################################### from TrkDetDescrAlgs.TrkDetDescrAlgsConf import Trk__MaterialValidation MaterialValidation = Trk__MaterialValidation(name='MaterialValidation') MaterialValidation.Extrapolator = ValidationExtrapolator MaterialValidation.StartPerigeeSigmaD0 = 0. MaterialValidation.StartPerigeeSigmaZ0 = 0. MaterialValidation.StartPerigeeMinEta = -6.0 MaterialValidation.StartPerigeeMaxEta = 6.0
# energy loss FatrasMaterialUpdator.EnergyLoss = True FatrasMaterialUpdator.EnergyLossUpdator = FatrasEnergyLossUpdator # mutiple scattering FatrasMaterialUpdator.MultipleScattering = True FatrasMaterialUpdator.MultipleScatteringUpdator = FatrasMultipleScatteringUpdator # the validation output # the sim propagator FatrasPropagator = Propagator('FatrasPropagatorID') ToolSvc += FatrasPropagator FatrasSTEP_Propagator = STEP_Propagator('FatrasSTEP_PropagatorID') ToolSvc += FatrasSTEP_Propagator # Extrapolator for fatras FatrasExtrapolator = Extrapolator(name='FatrasExtrapolatorID') # assign the tools FatrasExtrapolator.Navigator = FatrasNavigator FatrasExtrapolator.MaterialEffectsUpdators = [FatrasMaterialUpdator] FatrasExtrapolator.Propagators = [FatrasPropagator] FatrasExtrapolator.STEP_Propagator = FatrasSTEP_Propagator ToolSvc += FatrasExtrapolator ################################################################ # load the AtlasExtrapolator from TrkExTools.AtlasExtrapolator import AtlasExtrapolator MyExtrapolator = AtlasExtrapolator(name='TestExtrapolator') MyExtrapolator.NavigationStatisticsOutput = True MyExtrapolator.OutputLevel = INFO MyExtrapolator.StopWithNavigationBreak = True MyExtrapolator.DoCaloDynamic = False MyExtrapolator.MaterialEffectsOnTrackValidation = True