#del rs

#input PhysWaveShift (usually from oracle)
InputDBConnectionPhysWaveShift = "<db>%s</db>" % InputDBConnectionPhysWaveShift
conddb.addFolder("", PhysWaveShiftFolder + InputDBConnectionPhysWaveShift)

#InputDBConnectionOFCBin="<db>%s</db>" % InputDBConnectionOFCBin
#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
   svcMgr.IOVDbSvc.dbConnection  = OutputDB
   
   from RegistrationServices.RegistrationServicesConf import IOVRegistrationSvc
   svcMgr += IOVRegistrationSvc()
   svcMgr.IOVRegistrationSvc.RecreateFolders = False




###########################################################################
#                            OFC computation
###########################################################################
if doOFC:
  from LArCalibUtils.LArCalibUtilsConf import LArAutoCorrDecoderTool
  theLArAutoCorrDecoderTool = LArAutoCorrDecoderTool()
  theLArAutoCorrDecoderTool.isSC = SuperCells
  ToolSvc += theLArAutoCorrDecoderTool

  from LArCalibUtils.LArCalibUtilsConf import LArOFCAlg
  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
Example #3
0
if (len(PoolFileList) > 0):

    from AthenaCommon.ConfigurableDb import getConfigurable
    svcMgr += getConfigurable("ProxyProviderSvc")()
    svcMgr.ProxyProviderSvc.ProviderNames += ["CondProxyProvider"]

    svcMgr += getConfigurable("CondProxyProvider")()
    svcMgr.CondProxyProvider.InputCollections += PoolFileList

###########################################################################
#                            OFC computation
###########################################################################

from LArCalibUtils.LArCalibUtilsConf import LArAutoCorrDecoderTool
theLArAutoCorrDecoderTool = LArAutoCorrDecoderTool()
ToolSvc += theLArAutoCorrDecoderTool

from LArCalibUtils.LArCalibUtilsConf import LArOFCAlg
if (AllWavesPerCh):
    LArCaliOFCAlgVec = []
    for i in range(0, MaxCalLinePerCh):
        topSequence += LArOFCAlg("LArCaliOFCAlg" + str(i + 1))
        exec 'LArCaliOFCAlgVec.append( topSequence.LArCaliOFCAlg%(fn)s )' % {
            'fn': i + 1
        }

        LArCaliOFCAlgVec[i].ReadCaliWave = True
        LArCaliOFCAlgVec[i].KeyList = [ContainerKeySplitted[i]]
        LArCaliOFCAlgVec[i].Nphase = Nphases
        LArCaliOFCAlgVec[i].Dphase = Dphases
Example #4
0
LArPhysOFCAlg2.Ndelay = Ndelays2
LArPhysOFCAlg2.Nsample = Nsamples2
LArPhysOFCAlg2.FillShape = FillShape2
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