9 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
10 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
11 from AthenaConfiguration.TestDefaults
import defaultTestFiles
12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
13 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
14 from AthenaPython.PyAthenaComps
import Alg, StatusCode
20 ctx = self.getContext()
21 mgr = self.condStore[
'CaloDetDescrManager'].
find(ctx.eventID())
23 for sampl
in [ROOT.CaloSampling.PreSamplerB,
24 ROOT.CaloSampling.EMB1,
25 ROOT.CaloSampling.EMB2,
26 ROOT.CaloSampling.EMB3,
27 ROOT.CaloSampling.PreSamplerE,
28 ROOT.CaloSampling.EME1,
29 ROOT.CaloSampling.EME2,
30 ROOT.CaloSampling.EME3,
31 ROOT.CaloSampling.HEC0,
32 ROOT.CaloSampling.HEC1,
33 ROOT.CaloSampling.HEC2,
34 ROOT.CaloSampling.HEC3,
35 ROOT.CaloSampling.TileBar0,
36 ROOT.CaloSampling.TileBar1,
37 ROOT.CaloSampling.TileBar2,
38 ROOT.CaloSampling.TileGap1,
39 ROOT.CaloSampling.TileGap2,
40 ROOT.CaloSampling.TileGap3,
41 ROOT.CaloSampling.TileExt0,
42 ROOT.CaloSampling.TileExt1,
43 ROOT.CaloSampling.TileExt2,
44 ROOT.CaloSampling.FCAL0,
45 ROOT.CaloSampling.FCAL1,
46 ROOT.CaloSampling.FCAL2,
51 dd = mgr.get_element(sampl, eta, phi)
53 print(
"----: eta:{:.2f}, phi:{:.2f}".
55 print(
"CaloDD: r_raw:{:.2f}, r:{:.2f}, dr:{:.2f}".
56 format(dd.r_raw(), dd.r(), dd.dr()))
57 print(
"CaloDD: z_raw:{:.2f}, z:{:.2f}, dz:{:.2f}".
58 format(dd.z_raw(), dd.z(), dd.dz()))
63 return StatusCode.Success
69 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
70 from TileGeoModel.TileGMConfig
import TileGMCfg
78 flags.Input.Files = defaultTestFiles.RDO_RUN2
79 flags.Input.TimeStamps = [1000]
80 flags.Detector.GeometryLAr =
True
81 flags.Detector.GeometryTile =
True
82 flags.needFlagsCategory(
'Tile')
83 flags.needFlagsCategory(
'LAr')