def makeMyParticles(name, trackcont, particle): # set up particle maker #particleMaker = NoPIDsParticleMaker(name , Particle = particle) particleMaker = CombinedParticleMaker(name, Particle=particle) # particleMaker.OutputLevel = 0 particleMaker.Input = "Rec/ProtoP/" + trackcont + "ProtoPMaker" selector = trackSelector(particleMaker) # protoparticle filter: fltr = protoFilter(particleMaker, ProtoParticleCALOFilter, 'Pion') fltr.Selection = [""] DataOnDemandSvc().AlgMap.update({ "/Event/Phys/" + particleMaker.name() + '/Particles': particleMaker.getFullName(), "/Event/Phys/" + particleMaker.name() + '/Vertices': particleMaker.getFullName() })
def makeMyKaons(name, trackcont, particle): # set up particle maker #particleMaker = NoPIDsParticleMaker(name , Particle = particle) particleMaker = CombinedParticleMaker(name, Particle=particle) #particleMaker = BestPIDParticleMaker(name , Particle = particle) #particleMaker.addTool(ProtoParticleCALOFilter(Selection = ["RequiresDet='RICH' CombDLL(k-pi)>'-5.0'"],name="muon")) #particleMaker.Particles = [ "kaon" ] particleMaker.Input = "Rec/ProtoP/" + trackcont + "ProtoPMaker" #particleMaker.OutputLevel = 0 selector = trackSelector(particleMaker) # protoparticle filter: fltr = protoFilter(particleMaker, ProtoParticleCALOFilter, 'Kaon') fltr.Selection = ["RequiresDet='RICH' CombDLL(k-pi)>'-5.0'"] #fltr = protoFilter ( particleMaker , ProtoParticleCALOFilter, 'Kaon' ) #fltr.Selection = [ "RequiresDet='RICH' CombDLL(k-pi)>'-5.0'" ] DataOnDemandSvc().AlgMap.update({ "/Event/Phys/" + particleMaker.name() + '/Particles': particleMaker.getFullName(), "/Event/Phys/" + particleMaker.name() + '/Vertices': particleMaker.getFullName() })
assocpp.InputData = [ "Rec/ProtoP/"+output+"ProtoPMaker" ] assocpp.OutputTable = "Relations/Rec/ProtoP/"+output+"ProtoPMaker" TrackSmearingSeq.Members = [ TrackSmeared("TrackSmearing") , assoctr, assocpp ] from Configurables import CombinedParticleMaker from CommonParticles.Utils import * from Configurables import ProtoParticleCALOFilter ## create the algorithm algorithm = CombinedParticleMaker ( 'SmrdLoosePions' , Particle = 'pion' ) # configure the track selector selector = trackSelector ( algorithm ) ## add this line, ## this corresonds to the output of the smearing tool 'Rec/ProtoP/' is hard coded algorithm.Input = 'Rec/ProtoP/Smeared' ### protoparticle filter: fltr = protoFilter ( algorithm , ProtoParticleCALOFilter, 'Pion' ) fltr.Selection = [ "" ] ## configure Data-On-Demand service locations = updateDoD ( algorithm ) ## finally: define the symbol SmrdLoosePions = algorithm #Truth matching matchpion = "(mcMatch('[^pi-]CC'))" #matchpion = "ALL" ####################################### # pions
Hlt2NoCutsKaons.Output = 'Hlt2/Hlt2NoCutsKaons/Particles' Hlt2NoCutsKaons.Particle = "kaon" ########################################################################## # Make the protons # Hlt2NoCutsProtons = Hlt2NoCutsPions.clone("Hlt2NoCutsProtons") Hlt2NoCutsProtons.Output = 'Hlt2/Hlt2NoCutsProtons/Particles' Hlt2NoCutsProtons.Particle = "proton" ########################################################################## # Make the Muons # Hlt2Muons = CombinedParticleMaker("Hlt2Muons") Hlt2Muons.Particle = "muon" Hlt2Muons.addTool(ProtoParticleMUONFilter('Muon')) Hlt2Muons.Muon.Selection = ["RequiresDet='MUON' IsMuon=True"] Hlt2Muons.Input = muonProtos.outputSelection() Hlt2Muons.Output = 'Htl2/Hlt2Muons/Particles' Hlt2Muons.WriteP2PVRelations = False ########################################################################## # Make the electrons # Hlt2Electrons = CombinedParticleMaker("Hlt2Electrons") Hlt2Electrons.Particle = "electron" Hlt2Electrons.Input = caloProtos.outputSelection() Hlt2Electrons.Output = 'Hlt2/Hlt2Electrons/Particles' Hlt2Electrons.addTool(ProtoParticleCALOFilter('Electron')) Hlt2Electrons.Electron.Selection = ["RequiresDet='CALO' CombDLL(e-pi)>'-2.0'"] Hlt2Electrons.WriteP2PVRelations = False ########################################################################## # Make the photons #
########################################################################## # # Charged protoparticles -> pulls all the pid # caloProtos = Hlt2BiKalmanFittedForwardTracking.hlt2ChargedCaloProtos() muonWithCaloProtos = Hlt2BiKalmanFittedForwardTracking.hlt2ChargedMuonWithCaloProtos( ) muonTTProtos = Hlt2MuonTTTracking.hlt2ProbeMuonProtos() velomuonProtos = Hlt2VeloMuonTracking.hlt2ProbeMuonProtos() fulldownProtos = Hlt2FullDownstreamTracking.hlt2ProbeMuonProtos() ########################################################################## # Make the pions # Hlt2TagAndProbePions = CombinedParticleMaker("Hlt2TagAndProbePions") Hlt2TagAndProbePions.Input = caloProtos.outputSelection() Hlt2TagAndProbePions.Output = 'Hlt2/Hlt2TagAndProbePions/Particles' Hlt2TagAndProbePions.Particle = "pion" Hlt2TagAndProbePions.WriteP2PVRelations = False ########################################################################## # Make the Muons # Hlt2TagAndProbeMuons = CombinedParticleMaker("Hlt2TagAndProbeMuons") Hlt2TagAndProbeMuons.Particle = "muon" Hlt2TagAndProbeMuons.addTool(ProtoParticleMUONFilter('Muon')) Hlt2TagAndProbeMuons.Muon.Selection = ["RequiresDet='MUON' IsMuon=True"] Hlt2TagAndProbeMuons.Input = muonWithCaloProtos.outputSelection() Hlt2TagAndProbeMuons.Output = 'Hlt2/Hlt2TagAndProbeMuons/Particles' Hlt2TagAndProbeMuons.WriteP2PVRelations = False ########################################################################## #