#conddb.addFolder("",OFCBinFolder+InputDBConnectionOFCBin)

InputDBConnectionShapeResidual = "<db>%s</db>" % InputDBConnectionShapeResidual
conddb.addFolder("", ShapeResidualsFolder + InputDBConnectionShapeResidual)

#Decoder Tool for electronic-noise only autocorrelation
from LArCalibUtils.LArCalibUtilsConf import LArAutoCorrDecoderTool

theLArAutoCorrDecoderTool = LArAutoCorrDecoderTool()
theLArAutoCorrDecoderTool.UseAlwaysHighGain = True
ToolSvc += theLArAutoCorrDecoderTool

#Decoder Tool for pile-up autocorrelation
theLArPhysAutoCorrDecoderTool = LArAutoCorrDecoderTool(
    "LArPhysAutoCorrDecoderTool")
theLArPhysAutoCorrDecoderTool.DecodeMode = 1
theLArPhysAutoCorrDecoderTool.UseAlwaysHighGain = True
theLArPhysAutoCorrDecoderTool.KeyAutoCorr = "LArPhysAutoCorr"
ToolSvc += theLArPhysAutoCorrDecoderTool

#Instantiate LArOFCAlgos

from LArCalibUtils.LArCalibUtilsConf import LArOFCAlg
from LArCalibUtils.LArCalibUtilsConf import LArOFPhasePicker

for ofcdef in OFCDefs:
    if ofcdef == 0: continue
    LArPhysOFCAlg = LArOFCAlg(ofcdef.Algoname)
    LArPhysOFCAlg.RunThreaded = RunThreaded
    LArPhysOFCAlg.ReadCaliWave = False
    LArPhysOFCAlg.KeyList = [InputKey]
Beispiel #2
0
LArPhysOFCAlg2.TimeShift = TimeShift2
LArPhysOFCAlg2.TimeShiftByIndex = TimeShiftByIndex2
LArPhysOFCAlg2.AddTimeOffset = -1.0 * TimeShiftGuardRegion
LArPhysOFCAlg2.LArPhysWaveBinKey = ShiftKey
LArPhysOFCAlg2.UseDelta = UseDelta

LArPhysOFCAlg2.KeyOFC = OFCKey2
LArPhysOFCAlg2.KeyShape = ShapeKey2

topSequence += LArPhysOFCAlg2

from LArCalibUtils.LArCalibUtilsConf import LArAutoCorrDecoderTool
theLArAutoCorrDecoderTool = LArAutoCorrDecoderTool()
theLArAutoCorrDecoderTool.UseAlwaysHighGain = True
if NColl > 0:
    theLArAutoCorrDecoderTool.DecodeMode = 1
ToolSvc += theLArAutoCorrDecoderTool

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

if (WriteNtuple):

    from LArCalibTools.LArCalibToolsConf import LArOFC2Ntuple

    LArOFC2Ntuple1 = LArOFC2Ntuple("LArOFC2Ntuple1")
    LArOFC2Ntuple1.ContainerKey = OFCKey
    LArOFC2Ntuple1.NtupleName = OFCTreeName
    LArOFC2Ntuple1.AddFEBTempInfo = False
    topSequence += LArOFC2Ntuple1

    LArOFC2Ntuple2 = LArOFC2Ntuple("LArOFC2Ntuple2")