LArPhysOFCAlg.Verify = True LArPhysOFCAlg.GroupingType = GroupingType LArPhysOFCAlg.Nphase = Nphases LArPhysOFCAlg.Dphase = Dphases LArPhysOFCAlg.Ndelay = Ndelays LArPhysOFCAlg.Nsample = Nsamples LArPhysOFCAlg.FillShape = FillShape LArPhysOFCAlg.TimeShift = TimeShift LArPhysOFCAlg.TimeShiftByIndex = TimeShiftByIndex LArPhysOFCAlg.AddTimeOffset = -1.0 * TimeShiftGuardRegion LArPhysOFCAlg.LArPhysWaveBinKey = ShiftKey LArPhysOFCAlg.UseDelta = 0 #Only for high-mu OFCs LArPhysOFCAlg.KeyOFC = OFCKey LArPhysOFCAlg.KeyShape = ShapeKey LArPhysOFCAlg.DecoderTool = theLArAutoCorrDecoderTool LArPhysOFCAlg.isSC = SuperCells if Nsamples == 4: LArPhysOFCAlg.ReadDSPConfig = ReadDSPConfig LArPhysOFCAlg.DSPConfigFolder = DSPConfigFolder topSequence += LArPhysOFCAlg LArPhysOFCAlg2 = LArOFCAlg("LArPhysOFCAlg2") LArPhysOFCAlg2.ReadCaliWave = False LArPhysOFCAlg2.KeyList = [InputKey] LArPhysOFCAlg2.Normalize = Normalize LArPhysOFCAlg2.Verify = True LArPhysOFCAlg2.GroupingType = GroupingType
LArPhysOFCAlg.ReadCaliWave = False LArPhysOFCAlg.KeyList = [InputKey] LArPhysOFCAlg.Normalize = True LArPhysOFCAlg.Verify = True LArPhysOFCAlg.FillShape = True LArPhysOFCAlg.GroupingType = GroupingType LArPhysOFCAlg.Nphase = ofcdef.Nphase LArPhysOFCAlg.Dphase = ofcdef.Dphase LArPhysOFCAlg.Ndelay = 24 LArPhysOFCAlg.Nsample = ofcdef.Nsamples LArPhysOFCAlg.AddTimeOffset = -1.0 * TimeShiftGuardRegion LArPhysOFCAlg.LArPhysWaveBinKey = "LArPhysWaveShift" LArPhysOFCAlg.KeyShape = ofcdef.KeyShape LArPhysOFCAlg.UseDelta = ofcdef.useDelta[0] LArPhysOFCAlg.KeyOFC = ofcdef.KeyOFC[0] if ofcdef.PhysAutoCorr[0]: LArPhysOFCAlg.DecoderTool = theLArPhysAutoCorrDecoderTool else: LArPhysOFCAlg.DecoderTool = theLArAutoCorrDecoderTool if len(ofcdef.PhysAutoCorr) == 2: #Second OFC flavor defined LArPhysOFCAlg.ComputeOFCV2 = True LArPhysOFCAlg.UseDeltaV2 = ofcdef.useDelta[1] LArPhysOFCAlg.KeyOFCV2 = ofcdef.KeyOFC[1] if ofcdef.PhysAutoCorr[1]: LArPhysOFCAlg.DecoderToolV2 = theLArPhysAutoCorrDecoderTool else:
LArPhysOFCAlg = LArOFCAlg("LArPhysOFCAlg") LArPhysOFCAlg.ReadCaliWave = False LArPhysOFCAlg.KeyList = [ContainerKey] LArPhysOFCAlg.Nphase = Nphases LArPhysOFCAlg.Dphase = Dphases LArPhysOFCAlg.Ndelay = Ndelays LArPhysOFCAlg.Nsample = Nsamples LArPhysOFCAlg.Normalize = Normalize LArPhysOFCAlg.TimeShift = TimeShift LArPhysOFCAlg.TimeShiftByIndex = TimeShiftByIndex LArPhysOFCAlg.Verify = True LArPhysOFCAlg.FillShape = FillShape if (doOFCPicker): LArPhysOFCAlg.KeyOFC = "tempOFC" LArPhysOFCAlg.KeyShape = "tempShape" else: LArPhysOFCAlg.KeyOFC = OFCKey LArPhysOFCAlg.KeyShape = ShapeKey if (DumpOFC): LArPhysOFCAlg.DumpOFCfile = "LArOFCPhys.dat" LArPhysOFCAlg.GroupingType = GroupingType topSequence += LArPhysOFCAlg from LArCalibUtils.LArCalibUtilsConf import LArAutoCorrDecoderTool theLArAutoCorrDecoderTool = LArAutoCorrDecoderTool() ToolSvc += theLArAutoCorrDecoderTool if (doOFCPicker):