def makeMyMuons(name, protoParticlesMaker): """ Make Particles out of the muon ProtoParticles """ particleMaker = BestPIDParticleMaker(name + "ParticleMaker", Particle="muon") particleMaker.addTool(ProtoParticleMUONFilter, name="muon") particleMaker.muon.Selection = ["RequiresDet='MUON' IsMuonLoose=True"] particleMaker.Particles = ["muon"] particleMaker.Input = "Rec/ProtoP/" + name + "_ProtoPMaker/ProtoParticles" #particleMaker.OutputLevel = 0 DataOnDemandSvc().AlgMap.update({ "/Event/Phys/" + particleMaker.name() + '/Particles': particleMaker.getFullName(), "/Event/Phys/" + particleMaker.name() + '/Vertices': particleMaker.getFullName() }) return Selection(name + "SelDownMuonParts", Algorithm=particleMaker, RequiredSelections=[protoParticlesMaker], InputDataSetter=None)
########################################################################## # # VeloMuon particles # ########################################################################## Hlt2VeloMuonParts = NoPIDsParticleMaker("Hlt2VeloMuonParts") Hlt2VeloMuonParts.Particle = 'Muon' Hlt2VeloMuonParts.Input = velomuonProtos.outputSelection() Hlt2VeloMuonParts.Output = "Hlt2/Hlt2VeloMuons/Particles" ########################################################################## # # FullDownstream particles # ########################################################################## Hlt2FullDownParts = BestPIDParticleMaker("DownParts", Particle="muon") Hlt2FullDownParts.addTool(ProtoParticleMUONFilter, name="muon") Hlt2FullDownParts.muon.Selection = ["RequiresDet='MUON' IsMuonLoose=True"] Hlt2FullDownParts.Particles = ["muon"] Hlt2FullDownParts.Input = fulldownProtos.outputSelection() Hlt2FullDownParts.Output = "Hlt2/Hlt2DownstreamMuons/Particles" ########################################################################## # # Velo particles # ########################################################################## from HltTracking.HltTrackNames import HltSharedTrackLoc, HltDefaultFitSuffix, _baseProtoPLocation, TrackName, Hlt2TrackEffRoot from HltLine.HltLine import bindMembers from Configurables import CombinedParticleMaker, ChargedProtoParticleMaker, BestPIDParticleMaker, NoPIDsParticleMaker