LArPhysOFCAlg = LArOFCAlg(ofcdef.Algoname) LArPhysOFCAlg.RunThreaded = RunThreaded 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.ReadCaliWave = False LArPhysOFCAlg.KeyList = [InputKey] LArPhysOFCAlg.Normalize = Normalize 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