21 ccc = ROOT.CaloCellContainer()
22 for i
in range (mgr.element_size()):
23 elt = mgr.get_element (ROOT.IdentifierHash (i))
25 cc = ROOT.CaloCell (elt, 0, 0, 0, 0)
27 ROOT.SetOwnership (cc,
False)
29 ccc.updateCaloIterators()
34 clc = ROOT.xAOD.CaloClusterContainer()
35 clc_store = ROOT.xAOD.CaloClusterAuxContainer()
36 clc.setStore (clc_store)
37 cellLinks = ROOT.CaloClusterCellLinkContainer()
38 ids = ROOT.vector(ROOT.IdentifierHash)()
41 cl = ROOT.xAOD.CaloCluster()
43 ROOT.SetOwnership (cl,
False)
48 cl.setClusterSize (ROOT.xAOD.CaloCluster.SW_37ele)
49 links = ROOT.CaloClusterCellLink (ccc)
50 cl.addCellLink (links)
51 ROOT.SetOwnership (links,
False)
53 mgr.cellsInZone (eta - 0.05, eta + 0.05, phi - 0.05, phi + 0.05, ids)
55 elt = mgr.get_element (hash)
58 idx = ccc.findIndex (hash)
60 print (
"??? Can't find cell with hash ", hash)
62 hashes.add (hash.value())
64 cl.setLink(cellLinks, ctx)
66 return (clc, clc_store, cellLinks)
114 result = ComponentAccumulator()
116 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
117 from TileGeoModel.TileGMConfig
import TileGMCfg
118 result.merge(LArGMCfg(flags))
119 result.merge(TileGMCfg(flags))
121 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
122 result.merge(LArOnOffIdMappingCfg(flags))
124 result.addEventAlgo (CreateDataAlg (
'CreateDataAlg'))
126 CaloThinCellsByClusterAlg=CompFactory.CaloThinCellsByClusterAlg
127 result.addEventAlgo (CaloThinCellsByClusterAlg (
'thinAlg',
128 StreamName =
'StreamAOD',
129 Clusters =
'Clusters',
130 SamplingCellsName = [
'EMB3']))
132 result.addEventAlgo (CheckThinningAlg (
'CheckThinningAlg'))