4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from LArByteStream.LArRawDataReadingConfig
import LArRawDataReadingCfg
7 from LArByteStream.LArRawSCDataReadingConfig
import LArRawSCDataReadingCfg
8 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
9 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg, LArOnOffIdMappingSCCfg
14 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg
22 from CaloRec.CaloBCIDAvgAlgConfig
import CaloBCIDAvgAlgCfg
25 if flags.Input.isMC
is False and not flags.Common.isOnline:
26 from LumiBlockComps.LuminosityCondAlgConfig
import LuminosityCondAlgCfg
28 from LumiBlockComps.LBDurationCondAlgConfig
import LBDurationCondAlgCfg
31 from AthenaMonitoring.AthMonitorCfgHelper
import AthMonitorCfgHelper
32 helper = AthMonitorCfgHelper(flags,
'LArSuperCellMonAlgCfg')
41 alg= helper.addAlgorithm(CompFactory.LArSCvsRawChannelMonAlg,algname)
44 GroupName=
"LArSCvsRawGroup"
45 alg.MonGroupName = GroupName
47 alg.ProblemsToMask=[
"deadReadout",
"deadPhys"]
48 cellMonGroup = helper.addGroup(alg,GroupName,
'/LAr/LArSuperCellMon_RC')
50 for pName
in alg.PartitionNames:
51 cellMonGroup.defineHistogram(f
"SCEne_{pName},eneSum_{pName};h_SCEne_vs_RawChannelEne_{pName}",
52 title=f
'Super Cell energy vs sum of RawChannel energies ({pName}) ;SC [MeV]; Sum [MeV]',
54 xbins = 100, xmin=0,xmax=50000,
55 ybins = 100, ymin=0,ymax=50000)
57 return helper.result()
59 if __name__==
"__main__":
61 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
63 from AthenaCommon.Logging
import log
66 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
68 flags.LAr.doAlign=
False
69 flags.Input.Files = [
"data24_13p6TeV.00481893.physics_Main.daq.RAW._lb1058._SFO-17._0002.data",]
70 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN3
71 flags.Output.HISTFileName =
'LArSuperCellvsRC.root'
80 acc.getService(
"AvalancheSchedulerSvc").ShowDataDependencies=
True
81 alg=acc.getEventAlgo(
"LArSCvsRawChannelMon")
83 alg.TrigDecisionTool=
""
84 alg.WarnOffenders=
True