◆ execute()
def python.CaloThinCellsByClusterAlg_test.CheckThinningAlg.execute |
( |
|
self | ) |
|
Definition at line 89 of file CaloThinCellsByClusterAlg_test.py.
90 ctx = self.getContext()
91 mgr = self.condStore[
'CaloDetDescrManager'].find (ctx.eventID())
92 dec = self.evtStore[
'AllCalo_THINNED_StreamAOD.thinAlg']
95 for i
in range (dec.size()):
96 elt = mgr.get_element (ROOT.IdentifierHash (i))
97 if elt.getSampling() == 3:
98 close = (self.isCloseTo (elt, 0.5, 1)
or
99 self.isCloseTo (elt, -0.5, 1))
100 if not dec.thinned(i):
105 if not dec.thinned(i):
106 assert i
in cell_hashes
108 assert i
not in cell_hashes
109 return StatusCode.Success
◆ isCloseTo()
def python.CaloThinCellsByClusterAlg_test.CheckThinningAlg.isCloseTo |
( |
|
self, |
|
|
|
elt, |
|
|
|
eta, |
|
|
|
phi |
|
) |
| |
Definition at line 84 of file CaloThinCellsByClusterAlg_test.py.
84 def isCloseTo (self, elt, eta, phi):
86 return (abs (elt.eta() - eta) < 3*0.025
and
87 abs (elt.phi() - phi) < 7*2*pi/256)
The documentation for this class was generated from the following file: