Functions | |
def | bestMatch |
def | cleanObjectCollection |
def | cleanObjectCollection2 |
def | deltaPhi |
def | deltaR |
def | deltaR2 |
def | inConeCollection |
def | matchObjectCollection |
def | matchObjectCollection2 |
Variables | |
list | args = sys.argv[1:] |
tuple | fargs = map( float, args ) |
def deltar.bestMatch | ( | object, | |
matchCollection | |||
) |
Return the best match to object in matchCollection, which is the closest object in delta R
Definition at line 85 of file deltar.py.
References deltaR2().
Referenced by RecoTauDifferenceAnalyzer.filter(), findGenParticleForMCEmbedding(), HLTMuonPlotter.findMatches(), CSCMake2DRecHit.findWireBx(), LeptonAnalyzer.LeptonAnalyzer.makeLeptons(), GlobalCosmicMuonTrajectoryBuilder.match(), matchObjectCollection(), and MuonIdTruthInfo.truthMatchMuon().
def deltar.cleanObjectCollection | ( | objects, | |
masks, | |||
deltaRMin | |||
) |
Masks objects using a deltaR cut.
Definition at line 65 of file deltar.py.
References deltaR2().
Referenced by JetAnalyzer.JetAnalyzer.process().
def deltar.cleanObjectCollection2 | ( | objects, | |
masks, | |||
deltaRMin | |||
) |
def deltar.deltaPhi | ( | p1, | |
p2 | |||
) |
def deltar.deltaR2 | ( | e1, | |
p1, | |||
e2, | |||
p2 | |||
) |
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 | |||
) |
Definition at line 98 of file deltar.py.
References bestMatch(), python.multivaluedict.dict, and archive.zip.
Referenced by SimpleJetAnalyzer.SimpleJetAnalyzer.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 113 of file deltar.py.
References python.multivaluedict.dict, and archive.zip.