2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
6 CaloDataAccessSvcDependencies = [(
'TileEMScale' ,
'ConditionStore+TileEMScale'),
7 (
'TileHid2RESrcID' ,
'ConditionStore+TileHid2RESrcIDHLT'),
8 (
'TileBadChannels' ,
'ConditionStore+TileBadChannels'),
9 (
'IRegSelLUTCondData' ,
'ConditionStore+RegSelLUTCondData_TTEM'),
10 (
'IRegSelLUTCondData' ,
'ConditionStore+RegSelLUTCondData_TTHEC'),
11 (
'IRegSelLUTCondData' ,
'ConditionStore+RegSelLUTCondData_TILE'),
12 (
'IRegSelLUTCondData' ,
'ConditionStore+RegSelLUTCondData_FCALEM'),
13 (
'IRegSelLUTCondData' ,
'ConditionStore+RegSelLUTCondData_FCALHAD'),
14 (
'LArOnOffIdMapping' ,
'ConditionStore+LArOnOffIdMap' ),
15 (
'LArFebRodMapping' ,
'ConditionStore+LArFebRodMap' ),
16 (
'LArMCSym' ,
'ConditionStore+LArMCSym'),
17 (
'LArBadChannelCont' ,
'ConditionStore+LArBadChannel'),
18 (
'CaloDetDescrManager',
'ConditionStore+CaloDetDescrManager')]
24 if not flags.Input.isMC
and flags.Common.isOnline:
25 acc.addCondAlgo(CompFactory.getComp(
'LArFlatConditionsAlg<LArOFCFlat>')(ReadKey=
"/LAR/ElecCalibFlat/OFC", WriteKey=
'LArOFC'))
26 from LumiBlockComps.LuminosityCondAlgConfig
import LuminosityCondAlgCfg
29 from CaloRec.CaloBCIDAvgAlgConfig
import CaloBCIDAvgAlgCfg
31 from LArRecUtils.LArRecUtilsConfig
import LArMCSymCondAlgCfg
33 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
35 monTool.defineHistogram(
'TIME_exec', path=
'EXPERT', type=
'TH1F', title=
"CaloBCIDAvgAlg execution time; time [ us ] ; Nruns", xbins=80, xmin=0.0, xmax=4000)
36 acc.getEventAlgo(
"CaloBCIDAvgAlg").MonTool = monTool
43 svc = CompFactory.TrigCaloDataAccessSvc()
46 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
49 from TileGeoModel.TileGMConfig
import TileGMCfg
52 from LArRecUtils.LArRecUtilsConfig
import LArRoIMapCondAlgCfg
55 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg, LArFebRodMappingCfg
59 from TileByteStream.TileHid2RESrcIDConfig
import TileHid2RESrcIDCondAlgCfg
63 from RegionSelector.RegSelToolConfig
import (regSelTool_TTEM_Cfg,regSelTool_TTHEC_Cfg,
64 regSelTool_FCALEM_Cfg,regSelTool_FCALHAD_Cfg,regSelTool_TILE_Cfg)
74 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg, LArBadFebCfg
78 from TileConditions.TileEMScaleConfig
import TileEMScaleCondAlgCfg
81 from TileConditions.TileBadChannelsConfig
import TileBadChannelsCondAlgCfg
84 if flags.Trigger.Calo.doOffsetCorrection:
85 if flags.Trigger.doHLT:
86 from AthenaCommon.CFElements
import parOR
93 acc.addService( svc, primary=
True )
97 if __name__ ==
"__main__":
98 from AthenaConfiguration.TestDefaults
import defaultConditionsTags, defaultGeometryTags, defaultTestFiles
99 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
103 flags.Input.Files = defaultTestFiles.RAW_RUN2
104 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
105 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN2_DATA
106 flags.Input.isMC=
False
109 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
112 from AthenaCommon.CFElements
import parOR
113 acc.addSequence(
parOR(
"HLTBeginSeq"))
115 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
120 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
123 mon.defineHistogram(
"TIME_locking_LAr_RoI",
125 title=
"Time spent in unlocking the LAr collection",
126 xbins=100, xmin=0, xmax=100 )
127 mon.defineHistogram(
"roiROBs_LAr",
129 title=
"Number of ROBs unpacked in RoI requests",
130 xbins=20, xmin=0, xmax=20 )
131 mon.defineHistogram(
"TIME_locking_LAr_FullDet",
133 title=
"Time spent in unlocking the LAr collection",
134 xbins=100, xmin=0, xmax=100 )
135 mon.defineHistogram(
"roiEta_LAr,roiPhi_LAr",
138 title=
"Geometric usage",
139 xbins=50, xmin=-5, xmax=5,
140 ybins=64, ymin=-math.pi, ymax=math.pi )
142 acc.getService(
"TrigCaloDataAccessSvc").MonTool = mon
144 testAlg = CompFactory.TestCaloDataAccess()
145 acc.addEventAlgo(testAlg)
147 acc.printConfig(
True)
149 sys.exit(sc.isFailure())