27def LArCellCorrectorCfg(configFlags):
28 result=ComponentAccumulator()
29
30 correctionTools=[]
31
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)
35
36 if configFlags.LAr.doCellNoiseMasking or configFlags.LAr.doCellSporadicNoiseMasking:
37 result.merge(LArBadChannelCfg(configFlags))
39 if configFlags.LAr.doCellNoiseMasking:
40 theNoiseMasker.ProblemsToMask=["highNoiseHG","highNoiseMG","highNoiseLG","deadReadout","deadPhys"]
41 pass
42 if configFlags.LAr.doCellSporadicNoiseMasking:
43 theNoiseMasker.SporadicProblemsToMask=["sporadicBurstNoise",]
44 pass
45 correctionTools.append(theNoiseMasker)
46
47 if configFlags.LAr.doBadFebMasking:
48 if not configFlags.Input.isMC:
49 from LArROD.LArFebErrorSummaryMakerConfig import LArFebErrorSummaryMakerCfg
50 result.merge(LArFebErrorSummaryMakerCfg(configFlags))
51 badFebMask=CompFactory.LArBadFebMaskingTool(noFebErrors=configFlags.Input.isMC)
52
53 correctionTools.append(badFebMask)
54
55
56 result.setPrivateTools(correctionTools)
57 return result
58
59
Replace cells in calo cell container with cells from alternate raw channel container.