conddb.addFolder(
        "", "/LAR/BadChannelsOfl/MissingFEBs<dbConnection>" +
        DBConnectionCOOL + "</dbConnection>")
    include("LArCalibProcessing/LArCalib_BadChanTool.py")

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

#
# Dump OFC folder to a ROOT ntuple
#
from LArCalibTools.LArCalibToolsConf import LArOFC2Ntuple
LArOFC2Ntuple = LArOFC2Ntuple("LArOFC2Ntuple")
LArOFC2Ntuple.OutputLevel = INFO
LArOFC2Ntuple.AddFEBTempInfo = False
topSequence += LArOFC2Ntuple

theApp.HistogramPersistency = "ROOT"
from GaudiSvc.GaudiSvcConf import NTupleSvc
svcMgr += NTupleSvc()
svcMgr.NTupleSvc.Output = ["FILE1 DATAFILE='" + RootFileName + "' OPT='NEW'"]

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

theApp.EvtMax = 1

###########################################################################
#svcMgr.MessageSvc.OutputLevel  = INFO
    LArPhysOFCAlgmu2.KeyOFC = OFCKey2 + "_mu"
    LArPhysOFCAlgmu2.DecoderTool = theLArPhysAutoCorrDecoderTool
    LArPhysOFCAlgmu2.isSC = SuperCells

    if Nsamples2 == 4:
        LArPhysOFCAlgmu2.ReadDSPConfig = ReadDSPConfig2
        LArPhysOFCAlgmu2.DSPConfigFolder = DSPConfigFolder2

    topSequence += LArPhysOFCAlgmu2
###########################################################################

if (WriteNtuple):

    from LArCalibTools.LArCalibToolsConf import LArOFC2Ntuple

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

    LArOFC2Ntuple2 = LArOFC2Ntuple("LArOFC2Ntuple2")
    LArOFC2Ntuple2.ContainerKey = OFCKey2
    LArOFC2Ntuple2.NtupleName = OFCTreeName2
    LArOFC2Ntuple2.AddFEBTempInfo = False
    LArOFC2Ntuple2.isSC = SuperCells
    topSequence += LArOFC2Ntuple2

    if NColl > 0:
        LArOFC2Ntuple1mu = LArOFC2Ntuple("LArOFC2Ntuple1mu")
Ejemplo n.º 3
0
    LArOFPhasePickermu.KeyPhase = "LArOFCPhase"
    LArOFPhasePickermu.KeyOFC_new = OFCKey + "_mu"
    LArOFPhasePickermu.KeyOFC = "LArOFCInmu"
    LArOFPhasePickermu.doShape = False
    LArOFPhasePickermu.GroupingType = GroupingType
    LArOFPhasePickermu.DefaultPhase = DefaultPhase
    LArOFPhasePickermu.TimeOffsetCorrection = TimeOffsetCorrection
    LArOFPhasePickermu.isSC = SuperCells
    topSequence += LArOFPhasePickermu

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

if (WriteNtuple):

    from LArCalibTools.LArCalibToolsConf import LArOFC2Ntuple
    LArOFC2Ntup = LArOFC2Ntuple("LArOFC2Ntuple")
    LArOFC2Ntup.ContainerKey = OFCKey
    LArOFC2Ntup.AddFEBTempInfo = False
    LArOFC2Ntup.isSC = SuperCells
    topSequence += LArOFC2Ntup

    if NColl > 0:
        LArOFC2Ntuplemu = LArOFC2Ntuple("LArOFC2Ntuplemu")
        LArOFC2Ntuplemu.ContainerKey = OFCKey + "_mu"
        LArOFC2Ntuplemu.NtupleName = "OFC_mu"
        LArOFC2Ntuplemu.AddFEBTempInfo = False
        LArOFC2Ntuplemu.isSC = SuperCells
        topSequence += LArOFC2Ntuplemu

    theApp.HistogramPersistency = "ROOT"
    from GaudiSvc.GaudiSvcConf import NTupleSvc
Ejemplo n.º 4
0
    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
            }
            LArOFC2NtupleVec[i].ContainerKey = OFCKeySplitted[i]
            LArOFC2NtupleVec[i].NtupleName = "OFC" + str(i + 1)
    else:
        LArOFC2Ntuple = LArOFC2Ntuple("LArOFC2Ntuple")
        LArOFC2Ntuple.ContainerKey = OFCKey
        topSequence += LArOFC2Ntuple

    if (FillShape):
        from LArCalibTools.LArCalibToolsConf import LArShape2Ntuple
        if (AllWavesPerCh):
            LArOFC2NtupleVec = []
            for i in range(0, MaxCalLinePerCh):
Ejemplo n.º 5
0
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")
    LArOFC2Ntuple2.ContainerKey = OFCKey2
    LArOFC2Ntuple2.NtupleName = OFCTreeName2
    LArOFC2Ntuple2.AddFEBTempInfo = False
    topSequence += LArOFC2Ntuple2

    if (FillShape):

        from LArCalibTools.LArCalibToolsConf import LArShape2Ntuple