Ejemplo n.º 1
0
def makeMyMuons(name, protoParticlesMaker):
   """
     Make Particles out of the muon ProtoParticles
   """
   particleMaker =  BestPIDParticleMaker(name+"ParticleMaker" , Particle = "muon")
   particleMaker.addTool(ProtoParticleMUONFilter(Selection = ["RequiresDet='MUON' IsMuonLoose=True"]),name="muon")
   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)
Ejemplo n.º 2
0
#
##########################################################################
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
from Configurables import DelegatingTrackSelector
from HltTracking.HltSharedTracking import RevivedVelo, FittedVelo