StdLooseDiElectron.DecayDescriptor = "J/psi(1S) -> e+ e-" StdLooseDiElectron.Inputs = ["Phys/StdAllLooseElectrons/Particles"] StdLooseDiElectron.DaughtersCuts = {"e+": "(PT>500*MeV)"} StdLooseDiElectron.CombinationCut = "(AM>30*MeV) & (ADOCACHI2CUT(30,''))" StdLooseDiElectron.MotherCut = "(VFASPF(VCHI2)<25)" locations = updateDoD(StdLooseDiElectron) """ Using Olivier's Di-Electron Particle Maker """ ###--- From Olivier's ParticleMaker from Configurables import DiElectronMaker, ProtoParticleCALOFilter from GaudiKernel.SystemOfUnits import * dieLL = DiElectronMaker('StdDiElectronFromTracks') dieLL.Particle = "J/psi(1S)" selector = trackSelector(dieLL, trackTypes=["Long"]) dieLL.addTool(ProtoParticleCALOFilter('Electron')) dieLL.Electron.Selection = ["RequiresDet='CALO' CombDLL(e-pi)>'-2.0'"] dieLL.DiElectronMassMax = 5000. * MeV dieLL.DiElectronMassMin = 0. * MeV dieLL.DiElectronPtMin = 200. * MeV locations = updateDoD(dieLL) StdDiElectronFromTracks = dieLL ## ============================================================================ if '__main__' == __name__: print __doc__ print __author__ print __version__ print locationsDoD(locations)
Input=BiKalmanFittedMuonProtoMaker.outputSelection(), Output='Hlt2/Hlt2BiKalmanFittedKaonsWithMuonID/Particles', WriteP2PVRelations=False) Hlt2BiKalmanFittedKaonsWithMuonID.addTool(ProtoParticleMUONFilter('Muon')) Hlt2BiKalmanFittedKaonsWithMuonID.Muon.Selection = [""] ########################################################################## # # Make the kaons w/ e ID available # Hlt2BiKalmanFittedKaonsWithEID = NoPIDsParticleMaker( "Hlt2BiKalmanFittedKaonsWithEID", Particle="kaon", Input=BiKalmanFittedChargedCaloProtoMaker.outputSelection(), Output='Hlt2/Hlt2BiKalmanFittedKaonsWithEID/Particles', WriteP2PVRelations=False) Hlt2BiKalmanFittedKaonsWithEID.addTool(ProtoParticleCALOFilter('Electron')) Hlt2BiKalmanFittedKaonsWithEID.Electron.Selection = [""] ########################################################################## # # Make the protons # Hlt2BiKalmanFittedProtons = NoPIDsParticleMaker( "Hlt2BiKalmanFittedProtons", Particle="proton", Input=BiKalmanFittedChargedRichHadronProtoMaker.outputSelection(), Output='Hlt2/Hlt2BiKalmanFittedProtons/Particles', WriteP2PVRelations=False) ########################################################################## # # Make the downstream protons #
""" __author__ = "Olivier Deschamps : Olivier.Deschamps @cern.ch" __version__ = "CVS tag $Name: not supported by cvs2svn $, version $Revision: 1.1 $" # ============================================================================= __all__ = ('StdAllTightSymGammaLL', 'StdAllTightSymGammaDD', 'locations') # ============================================================================= from Gaudi.Configuration import * from CommonParticles.Utils import * from GaudiKernel.SystemOfUnits import * ###--- Long pair from Configurables import DiElectronMaker, ProtoParticleCALOFilter dieSymLL = DiElectronMaker('StdAllTightSymGammaLL') dieSymLL.DecayDescriptor = "gamma -> e+ e-" selector = trackSelector(dieSymLL, trackTypes=["Long"]) dieSymLL.addTool(ProtoParticleCALOFilter('Electron')) dieSymLL.Electron.Selection = ["RequiresDet='CALO' CombDLL(e-pi)>'0.0'"] dieSymLL.DeltaY = 3. dieSymLL.DeltaYmax = 200 * mm dieSymLL.DiElectronMassMax = 100. * MeV dieSymLL.DiElectronPtMin = 400. * MeV dieSymLL.SymetricPair = True locations = updateDoD(dieSymLL) StdAllTightSymGammaLL = dieSymLL ###--- Downstream pair dieSymDD = DiElectronMaker('StdAllTightSymGammaDD') dieSymDD.DecayDescriptor = "gamma -> e+ e-" selector = trackSelector(dieSymDD, trackTypes=["Downstream"]) dieSymDD.addTool(ProtoParticleCALOFilter('Electron'))
# 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 # Hlt2Photons = PhotonMakerAlg("Hlt2Photons") Hlt2Photons.addTool(PhotonMaker) Hlt2Photons.PhotonMaker.Input = neutralProtos.outputSelection() Hlt2Photons.Inputs = [ ] # set explicitly, otherwise it goes for the default /Rec/Proto/Charged! Hlt2Photons.Input = 'PleaseIgnore' # set explicitly, otherwise it goes for the default /Rec/Proto/Charged! Hlt2Photons.Output = 'Hlt2/Hlt2Photons/Particles' Hlt2Photons.PhotonMaker.ConvertedPhotons = True Hlt2Photons.PhotonMaker.UnconvertedPhotons = True Hlt2Photons.PhotonMaker.PtCut = 200. * MeV