Functions | |
def | bestMatch (object, matchCollection) |
def | cleanObjectCollection (objects, masks, deltaRMin) |
def | cleanObjectCollection2 (objects, masks, deltaRMin) |
def | deltaPhi (p1, p2) |
def | deltaR (*args) |
def | deltaR2 (e1, p1, e2=None, p2=None) |
def | inConeCollection (pivot, particles, deltaRMax, deltaRMin=1e-5) |
def | matchObjectCollection (objects, matchCollection, deltaR2Max, filter=lambda x, True y) |
def | matchObjectCollection2 (objects, matchCollection, deltaRMax=0.3) |
def | matchObjectCollection3 (objects, matchCollection, deltaRMax=0.3, filter=lambda x, True y) |
def deltar.bestMatch | ( | object, | |
matchCollection | |||
) |
Return the best match to object in matchCollection, which is the closest object in delta R
Definition at line 138 of file deltar.py.
References deltaR2(), and dqmMemoryStats.float.
Referenced by PrimaryVertexAnalyzer4PUSlimmed.fillResolutionAndPullHistograms(), HLTMuonPlotter.findMatches(), CSCMake2DRecHit.findWireBx(), objects.LeptonAnalyzer.LeptonAnalyzer.makeLeptons(), GlobalCosmicMuonTrajectoryBuilder.match(), matchObjectCollection(), and MuonIdTruthInfo.truthMatchMuon().
def deltar.cleanObjectCollection | ( | objects, | |
masks, | |||
deltaRMin | |||
) |
Masks objects using a deltaR cut.
Definition at line 118 of file deltar.py.
References deltaR2().
Referenced by JetAnalyzer.JetAnalyzer.process().
def deltar.cleanObjectCollection2 | ( | objects, | |
masks, | |||
deltaRMin | |||
) |
def deltar.deltaPhi | ( | p1, | |
p2 | |||
) |
def deltar.deltaR | ( | * | args | ) |
Take either 4 arguments (eta,phi, eta,phi) or two objects that have 'eta', 'phi' methods)
Definition at line 7 of file deltar.py.
References deltaPhi().
Referenced by bestMatch(), cleanObjectCollection(), cleanObjectCollection2(), deltaR(), and inConeCollection().
def deltar.inConeCollection | ( | pivot, | |
particles, | |||
deltaRMax, | |||
deltaRMin = 1e-5 |
|||
) |
def deltar.matchObjectCollection | ( | objects, | |
matchCollection, | |||
deltaR2Max, | |||
filter = lambda x , |
|||
True | y | ||
) |
Definition at line 151 of file deltar.py.
References bestMatch(), ALCARECOTkAlBeamHalo_cff.filter, and ComparisonHelper.zip().
Referenced by SimpleJetAnalyzer.SimpleJetAnalyzer.process(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process(), Matcher.Matcher.process(), and JetAnalyzer.JetAnalyzer.process().
def deltar.matchObjectCollection2 | ( | objects, | |
matchCollection, | |||
deltaRMax = 0.3 |
|||
) |
Univoque association of an element from matchCollection to an element of objects. Reco and Gen objects get the "matched" attribute, true is they are re part of a matched tulpe. By default, the matching is true only if delta R is smaller than 0.3.
Definition at line 166 of file deltar.py.
References ComparisonHelper.zip().
Referenced by objects.JetAnalyzer.JetAnalyzer.matchJets().
def deltar.matchObjectCollection3 | ( | objects, | |
matchCollection, | |||
deltaRMax = 0.3 , |
|||
filter = lambda x , |
|||
True | y | ||
) |
Univoque association of an element from matchCollection to an element of objects. Reco and Gen objects get the "matched" attribute, true is they are re part of a matched tulpe. By default, the matching is true only if delta R is smaller than 0.3.
Definition at line 41 of file deltar.py.
References funct.abs(), ALCARECOTkAlBeamHalo_cff.filter, and ComparisonHelper.zip().
Referenced by objects.LeptonAnalyzer.LeptonAnalyzer.matchAnyLeptons(), objects.IsoTrackAnalyzer.matchIsoTrack(), objects.LeptonAnalyzer.LeptonAnalyzer.matchLeptons(), objects.PhotonAnalyzer.PhotonAnalyzer.matchPhotons(), objects.TauAnalyzer.TauAnalyzer.matchTaus(), objects.LeptonAnalyzer.LeptonAnalyzer.matchToPhotons(), and core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.process().