예제 #1
0
from AthenaCommon.CfgGetter import getPublicTool
getPublicTool("MuonCombinedInDetDetailedTrackSelectorTool")

from MuonPhysValMonitoring.MuonPhysValMonitoringConf import MuonPhysValMonitoring__MuonPhysValMonitoringTool
from RecExConfig.RecFlags import rec as recFlags

tool1 = MuonPhysValMonitoring__MuonPhysValMonitoringTool(name='muphysval')
tool1.IsData = not recFlags.doTruth()

#
tool1.MuonContainerName = 'Muons'
tool1.SlowMuonContainerName = ''
tool1.MuonTruthParticleContainerName = 'MuonTruthParticles'
tool1.DoBinnedResolutionPlots = True

#comment out if you don't need any of the following containers
tool1.TrackContainerName = 'InDetTrackParticles'
# #tool1.FwdTrackContainerName='InDetForwardTrackParticles'
tool1.MuonTrackContainerName = 'MuonSpectrometerTrackParticles'
tool1.MuonExtrapolatedTrackContainerName = 'ExtrapolatedMuonTrackParticles'
tool1.MuonOnlyExtrapolatedTrackContainerName = 'MSOnlyExtrapolatedMuonTrackParticles'
tool1.MuonSegmentContainerName = 'MuonSegments'

#tool1.MuonTruthParticleContainerName = 'MuonTruthParticle' # uncomment for release 19
# tool1.DoTrigMuonValidation =True
# tool1.DoTrigMuonEFValidation = True
# tool1.DoTrigMuonL2Validation = True
# tool1.DoTrigMuonL1Validation = True
tool1.SelectHLTMuonItems = [["HLT_mu20", "L1_MU20"],
                            ["HLT_mu20_iloose_L1MU15", "L1_MU15"],
                            ["HLT_mu24", "L1_MU20"],
예제 #2
0
topSequence += MuonTruthAssociationAlg(
    "EFMuonTruthAssociation",
    MuonContainerName="HLT_xAOD__MuonContainer_MuonEFInfo",
    MuonTruthParticleContainerName="HLT_EFMuonTruthParticle",
    OutputLevel=INFO)

doMon = True
if (doMon):
    from MuonPhysValMonitoring.MuonPhysValMonitoringConf import MuonPhysValMonitoring__MuonPhysValMonitoringTool
    tool1 = MuonPhysValMonitoring__MuonPhysValMonitoringTool(
        "EFMuonPhysValMonitoringTool")
    tool1.EnableLumi = False
    tool1.DetailLevel = 1
    tool1.OutputLevel = INFO
    tool1.MuonContainerName = "HLT_xAOD__MuonContainer_MuonEFInfo"
    tool1.MuonTruthParticleContainerName = "HLT_EFMuonTruthParticle"

    ToolSvc += tool1

    from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
    topSequence += AthenaMonManager("PhysValMonManager", OutputLevel=DEBUG)

    from AthenaCommon.AppMgr import ServiceMgr
    from GaudiSvc.GaudiSvcConf import THistSvc
    ServiceMgr += THistSvc()
    svcMgr.THistSvc.Output += [
        "EFMuonMonExample DATAFILE='EFMuonMonExample.root' OPT='RECREATE'"
    ]

    monMan = topSequence.PhysValMonManager
    monMan.ManualDataTypeSetup = True