10from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11from AthenaConfiguration.ComponentFactory
import CompFactory
12from 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
54 result = ComponentAccumulator()
56 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
57 from TileGeoModel.TileGMConfig
import TileGMCfg
58 result.merge(LArGMCfg(flags))
59 result.merge(TileGMCfg(flags))
61 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
62 result.merge(LArOnOffIdMappingCfg(flags))
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'))
76from AthenaConfiguration.AllConfigFlags
import initConfigFlags
77from AthenaConfiguration.TestDefaults
import defaultTestFiles
78flags = initConfigFlags()
79flags.Input.Files = defaultTestFiles.RDO_RUN2
80flags.Input.TimeStamps = [1000]
81flags.Detector.GeometryLAr =
True
82flags.Detector.GeometryTile =
True
83flags.needFlagsCategory(
'Tile')
84flags.needFlagsCategory(
'LAr')
87from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
88acc=MainServicesCfg(flags)
90from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
91acc.merge (McEventSelectorCfg (flags))
93acc.merge (testCfg (flags))