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