Example #1
0
else:
    LArCaliOFCAlg = LArOFCAlg("LArCaliOFCAlg")
    LArCaliOFCAlg.ReadCaliWave = True
    LArCaliOFCAlg.KeyList = [ContainerKey]
    LArCaliOFCAlg.Nphase = Nphases
    LArCaliOFCAlg.Dphase = Dphases
    LArCaliOFCAlg.Ndelay = Ndelays
    LArCaliOFCAlg.Nsample = Nsamples
    LArCaliOFCAlg.Normalize = Normalize
    LArCaliOFCAlg.TimeShift = TimeShift
    LArCaliOFCAlg.TimeShiftByIndex = TimeShiftByIndex
    LArCaliOFCAlg.Verify = True
    LArCaliOFCAlg.FillShape = FillShape
    if (DumpOFC):
        LArCaliOFCAlg.DumpOFCfile = "LArOFCCali.dat"
    LArCaliOFCAlg.GroupingType = GroupingType
    LArCaliOFCAlg.DecoderTool = theLArAutoCorrDecoderTool
    topSequence += LArCaliOFCAlg

###########################################################################

if (WriteNtuple):

    from LArCalibTools.LArCalibToolsConf import LArOFC2Ntuple
    if (AllWavesPerCh):
        LArOFC2NtupleVec = []
        for i in range(0, MaxCalLinePerCh):
            topSequence += LArOFC2Ntuple("LArOFC2Ntuple" + str(i + 1))
            exec 'LArOFC2NtupleVec.append( topSequence.LArOFC2Ntuple%(fn)s )' % {
                'fn': i + 1
Example #2
0
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):
    conddb.addFolder(
        "", "/LAR/ElecCalibOfl/OFCBin/Dummy<dbConnection>" + DBConnectionCOOL +
        "</dbConnection>" + ChannelSelection)
    from LArCalibUtils.LArCalibUtilsConf import LArOFPhasePicker
    LArOFPhasePicker = LArOFPhasePicker("LArOFPhasePicker")
    LArOFPhasePicker.KeyPhase = "LArOFCPhase"