3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 LArCellBuilderFromLArRawChannelTool, LArCellMerger, LArCellNoiseMaskingTool=CompFactory.getComps(
"LArCellBuilderFromLArRawChannelTool",
"LArCellMerger",
"LArCellNoiseMaskingTool",)
6 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
7 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg, LArBadFebCfg
8 from LArCalibUtils.LArHVScaleConfig
import LArHVScaleCfg
9 from LArConfiguration.LArConfigFlags
import RawChannelSource
16 theLArCellBuilder.LArCablingKey =
"ConditionStore+LArOnOffIdMap"
17 theLArCellBuilder.MissingFebKey =
"ConditionStore+LArBadFeb"
18 if configFlags.LAr.RawChannelSource
is RawChannelSource.Calculated:
19 theLArCellBuilder.RawChannelsName=
"LArRawChannels_FromDigits"
21 theLArCellBuilder.RawChannelsName =
"LArRawChannels"
22 theLArCellBuilder.addDeadOTX =
True
23 result.setPrivateTools(theLArCellBuilder)
32 if configFlags.LAr.RawChannelSource
in (RawChannelSource.Both, RawChannelSource.Input)
and not configFlags.Input.isMC
and not configFlags.Overlay.DataOverlay:
33 theMerger=
LArCellMerger(RawChannelsName=
"LArRawChannels_FromDigits")
34 correctionTools.append(theMerger)
36 if configFlags.LAr.doCellNoiseMasking
or configFlags.LAr.doCellSporadicNoiseMasking:
39 if configFlags.LAr.doCellNoiseMasking:
40 theNoiseMasker.ProblemsToMask=[
"highNoiseHG",
"highNoiseMG",
"highNoiseLG",
"deadReadout",
"deadPhys"]
42 if configFlags.LAr.doCellSporadicNoiseMasking:
43 theNoiseMasker.SporadicProblemsToMask=[
"sporadicBurstNoise",]
45 correctionTools.append(theNoiseMasker)
47 if configFlags.LAr.doBadFebMasking:
48 from LArROD.LArFebErrorSummaryMakerConfig
import LArFebErrorSummaryMakerCfg
50 badFebMask=CompFactory.LArBadFebMaskingTool()
52 correctionTools.append(badFebMask)
55 result.setPrivateTools(correctionTools)
62 LArCellContHVCorrTool=CompFactory.LArCellContHVCorrTool
64 acc.setPrivateTools(theLArCellHVCorrTool)
70 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg
72 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg
76 runinfo=
getLArDTInfoForRun(configFlags.Input.RunNumbers[0], connstring=
"COOLONL_LAR/CONDBR2")
78 for i
in range(0,len(runinfo.streamTypes())):
79 if runinfo.streamTypes()[i] ==
"SelectedEnergy":
82 deadOTXTool=CompFactory.LArCelldeadOTXTool(
"LArCelldeadOTXTool",keyMF=
"LArBadFeb",
83 keyCabling=
"LArOnOffIdMap", keySCCabling=
"LArOnOffIdMapSC",
85 acc.setPrivateTools(deadOTXTool)