32def LArCellCorrectorCfg(configFlags):
33 result=ComponentAccumulator()
34
35 correctionTools=[]
36
37 if configFlags.LAr.RawChannelSource in (RawChannelSource.Both, RawChannelSource.Input) and not configFlags.Input.isMC and not configFlags.Overlay.DataOverlay:
38 theMerger=
LArCellMerger(RawChannelsName=
"LArRawChannels_FromDigits")
39 correctionTools.append(theMerger)
40
41 if configFlags.LAr.doCellNoiseMasking or configFlags.LAr.doCellSporadicNoiseMasking:
42 result.merge(LArBadChannelCfg(configFlags))
44 if configFlags.LAr.doCellNoiseMasking:
45 theNoiseMasker.ProblemsToMask=["highNoiseHG","highNoiseMG","highNoiseLG","deadReadout","deadPhys"]
46 pass
47 if configFlags.LAr.doCellSporadicNoiseMasking:
48 theNoiseMasker.SporadicProblemsToMask=["sporadicBurstNoise",]
49 pass
50 correctionTools.append(theNoiseMasker)
51
52 if configFlags.LAr.doBadFebMasking:
53 if not configFlags.Input.isMC:
54 from LArROD.LArFebErrorSummaryMakerConfig import LArFebErrorSummaryMakerCfg
55 result.merge(LArFebErrorSummaryMakerCfg(configFlags))
56 badFebMask=CompFactory.LArBadFebMaskingTool(noFebErrors=configFlags.Input.isMC)
57
58 correctionTools.append(badFebMask)
59
60
61 result.setPrivateTools(correctionTools)
62 return result
63
64
Replace cells in calo cell container with cells from alternate raw channel container.