ATLAS Offline Software
Loading...
Searching...
No Matches
python.CaloThinCellsBySamplingAlg_test.CheckThinningAlg Class Reference
Inheritance diagram for python.CaloThinCellsBySamplingAlg_test.CheckThinningAlg:
Collaboration diagram for python.CaloThinCellsBySamplingAlg_test.CheckThinningAlg:

Public Member Functions

 execute (self)

Detailed Description

Definition at line 38 of file CaloThinCellsBySamplingAlg_test.py.

Member Function Documentation

◆ execute()

python.CaloThinCellsBySamplingAlg_test.CheckThinningAlg.execute ( self)

Definition at line 39 of file CaloThinCellsBySamplingAlg_test.py.

39 def execute (self):
40 ctx = self.getContext()
41 mgr = self.condStore['CaloDetDescrManager'].find (ctx.eventID())
42 dec = self.evtStore['AllCalo_THINNED_StreamAOD.thinAlg']
43
44 for i in range (dec.size()):
45 elt = mgr.get_element (ROOT.IdentifierHash (i))
46 if elt.getSampling() == 3 or elt.getSampling() == 17:
47 assert not dec.thinned(i)
48 else:
49 assert dec.thinned(i)
50 return StatusCode.Success
51
52

The documentation for this class was generated from the following file: