Definition at line 78 of file DiObject.py.
◆ __init__()
def DiObject.DiTau.__init__ |
( |
|
self, |
|
|
|
diobject |
|
) |
| |
◆ match()
def DiObject.DiTau.match |
( |
|
self, |
|
|
|
genParticles |
|
) |
| |
Definition at line 82 of file DiObject.py.
82 def match(self, genParticles):
87 ZorPhotonorHiggs = [22, 23, 25, 35, 36, 37]
88 for gen
in genParticles:
90 if abs(gen.pdgId())==15
and gen.mother().
pdgId()
in ZorPhotonorHiggs:
98 dR2leg1Min, self.leg1Gen = (
float(
'inf'),
None)
99 dR2leg2Min, self.leg2Gen = (
float(
'inf'),
None)
100 for genTau
in genTaus:
101 dR2leg1 =
deltaR2(self.leg1().
eta(), self.leg1().phi(),
102 genTau.eta(), genTau.phi() )
103 dR2leg2 =
deltaR2(self.leg2().
eta(), self.leg2().phi(),
104 genTau.eta(), genTau.phi() )
105 if dR2leg1 < dR2leg1Min:
106 dR2leg1Min, self.leg1Gen = (dR2leg1, genTau)
107 if dR2leg2 < dR2leg2Min:
108 dR2leg2Min, self.leg2Gen = (dR2leg2, genTau)
112 self.leg1DeltaR = math.sqrt( dR2leg1Min )
113 self.leg2DeltaR = math.sqrt( dR2leg2Min )
114 return (self.leg1DeltaR, self.leg2DeltaR)
References funct.abs(), and EgammaValidation_cff.pdgId.
◆ leg1DeltaR
DiObject.DiTau.leg1DeltaR |
◆ leg1Gen
◆ leg2DeltaR
DiObject.DiTau.leg2DeltaR |
◆ leg2Gen
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.