ServiceMgr += THistSvc() ServiceMgr.THistSvc.Output = ["HIST DATAFILE='" + "ntuple.root" + "' OPT='RECREATE'"] ## configure MuidStatistics for new unified chain from MuonCombinedRecExample.MuonCombinedKeys import MuonCombinedKeys as MuonCbKeys from MuidStatistics.MuidStatisticsConf import MuidStatistics MuidStatistics = MuidStatistics() MuidStatistics.HistSvc = ServiceMgr.THistSvc MuidStatistics.CombinedMuonLocation = MuonCbKeys.FinalMuons() ## "Muons" MuidStatistics.OutputLevel = DEBUG topSequence += MuidStatistics from MuonTrackPerformance.MuonTrackPerformanceConf import MuonTrackStatisticsTool MuonTrackStatisticsTool = MuonTrackStatisticsTool("MuonTrackStatisticsTool") MuonTrackStatisticsTool.OutputLevel = WARNING MuonTrackStatisticsTool.doTruth = False ToolSvc += MuonTrackStatisticsTool from MuonTrackPerformance.MuonTrackPerformanceConf import MuonTrackStatisticsAlg MuonTrackStatistics = MuonTrackStatisticsAlg("MuonTrackStatistics") MuonTrackStatistics.doTruth = False MuonTrackStatistics.writeToFile = True MuonTrackStatistics.FileName = "trkSummary.txt" MuonTrackStatistics.TrackLocationList = ["MuidCBTracksFromMuidStatistics", "MuGirlTracksFromMuidStatistics"] topSequence += MuonTrackStatistics from MuonTrackPerformance.MuonTrackPerformanceConf import MuonTrackPerformanceAlg topSequence += MuonTrackPerformanceAlg("MuidCombinedPerformanceAlg", TrackInputLocation = "MuidCBTracksFromMuidStatistics", DoTruth = True,
from RecExConfig.RecFlags import rec as recFlags from MuonTrackPerformance.MuonTrackPerformanceConf import MuonTrackStatisticsTool MuonTrackStatisticsTool = MuonTrackStatisticsTool("MuonTrackStatisticsTool") MuonTrackStatisticsTool.OutputLevel = WARNING MuonTrackStatisticsTool.doTruth = rec.doTruth() ToolSvc += MuonTrackStatisticsTool from MuonTrackPerformance.MuonTrackPerformanceConf import MuonTrackStatisticsAlg MuonTrackStatistics = MuonTrackStatisticsAlg("MuonTrackStatistics") MuonTrackStatistics.doTruth = True MuonTrackStatistics.writeToFile = True #False MuonTrackStatistics.FileName = "trkSummary.txt" #uncomment below to add a muon container to the summary from MuonRecExample.MuonRecFlags import muonRecFlags if muonRecFlags.doMoore(): MuonTrackStatistics.TrackLocationList += ["MooreTracks"] if muonRecFlags.doMuonboy(): MuonTrackStatistics.TrackLocationList += ["ConvertedMBoyTracks"] if muonRecFlags.doStandalone(): MuonTrackStatistics.TrackLocationList += ["MuonSpectrometerTracks"] #MuonTrackStatistics.TrackLocationList += ["ConvertedMuIdCBTracks"] #MuonTrackStatistics.TrackLocationList += ["ConvertedStacoTracks"] #MuonTrackStatistics.TrackLocationList += ["MuGirlRefittedTracks"] if rec.doTruth():