10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaPython.PyAthenaComps
import Alg, StatusCode
17 ccc = ROOT.CaloCellContainer()
18 for i
in range (mgr.element_size()):
19 elt = mgr.get_element (ROOT.IdentifierHash (i))
21 cc = ROOT.CaloCell (elt, 0, 0, 0, 0)
23 ROOT.SetOwnership (cc,
False)
25 ccc.updateCaloIterators()
31 ctx = self.getContext()
32 mgr = self.condStore[
'CaloDetDescrManager'].find (ctx.eventID())
33 ccc = make_calo_cells (mgr)
34 self.evtStore.record (ccc,
'AllCalo',
False)
35 return StatusCode.Success
40 ctx = self.getContext()
41 mgr = self.condStore[
'CaloDetDescrManager'].find (ctx.eventID())
42 dec = self.evtStore[
'AllCalo_THINNED_StreamAOD.thinAlg']
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)
50 return StatusCode.Success
56 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
57 from TileGeoModel.TileGMConfig
import TileGMCfg
61 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
64 result.addEventAlgo (CreateDataAlg (
'CreateDataAlg'))
66 CaloThinCellsBySamplingAlg=CompFactory.CaloThinCellsBySamplingAlg
67 result.addEventAlgo (CaloThinCellsBySamplingAlg (
'thinAlg',
68 StreamName =
'StreamAOD',
69 SamplingCellsName = [
'EMB3',
72 result.addEventAlgo (CheckThinningAlg (
'CheckThinningAlg'))
76 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
77 from AthenaConfiguration.TestDefaults
import defaultTestFiles
79 flags.Input.Files = defaultTestFiles.RDO_RUN2
80 flags.Input.TimeStamps = [1000]
81 flags.Detector.GeometryLAr =
True
82 flags.Detector.GeometryTile =
True
83 flags.needFlagsCategory(
'Tile')
84 flags.needFlagsCategory(
'LAr')
87 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
90 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
91 acc.merge (McEventSelectorCfg (flags))
93 acc.merge (testCfg (flags))