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