if (WriteNtuple):

    if (WritePhysWave2NTuple):
        from LArCalibTools.LArCalibToolsConf import LArPhysWaves2Ntuple
        LArPhysWaves2Ntuple = LArPhysWaves2Ntuple("LArPhysWaves2Ntuple")
        LArPhysWaves2Ntuple.NtupleName = "PHYSWAVE"
        LArPhysWaves2Ntuple.AddFEBTempInfo = False
        LArPhysWaves2Ntuple.KeyList = [OutputKey]
        LArPhysWaves2Ntuple.isSC = SuperCells

        topSequence += LArPhysWaves2Ntuple

    if (WriteCaliWave2NTuple):
        from LArCalibTools.LArCalibToolsConf import LArCaliWaves2Ntuple
        LArCaliWaves2Ntuple = LArCaliWaves2Ntuple("LArCaliWaves2Ntuple")
        LArCaliWaves2Ntuple.NtupleName = "CALIWAVE"
        LArCaliWaves2Ntuple.AddFEBTempInfo = False
        LArCaliWaves2Ntuple.KeyList = KeyCaliList
        LArCaliWaves2Ntuple.isSC = SuperCells

        topSequence += LArCaliWaves2Ntuple

    if (WriteMphyMcal2NTuple):
        from LArCalibTools.LArCalibToolsConf import LArMphysOverMcal2Ntuple
        LArMphysOverMcal2Ntuple = LArMphysOverMcal2Ntuple(
            "LArMphysOverMcal2Ntuple")
        LArMphysOverMcal2Ntuple.ContainerKey = "LArMphysOverMcal"
        LArMphysOverMcal2Ntuple.AddFEBTempInfo = False
        LArMphysOverMcal2Ntuple.isSC = SuperCells
Exemplo n.º 2
0
        os.remove(OutputCaliWaveRootFileDir + "/" + RootHistOutputFileName)
    svcMgr += THistSvc()
    #svcMgr.THistSvc.Output = ["AllMon DATAFILE='"+OutputCaliWaveRootFileDir+ "/" +RootHistOutputFileName+"' OPT='New'"]

    svcMgr.THistSvc.Output = [
        "GLOBAL DATAFILE='" + OutputCaliWaveRootFileDir + "/" +
        RootHistOutputFileName + "' OPT='New'"
    ]

if (WriteNtuple):
    from LArCalibTools.LArCalibToolsConf import LArCaliWaves2Ntuple
    if (AllWavesPerCh):
        LArCaliWaves2NtupleVec = []
        for i in range(0, MaxCalLinePerCh):
            thisAlgo = "LArCaliWaves2Ntuple" + str(i + 1)
            topSequence += LArCaliWaves2Ntuple(thisAlgo)
            exec 'LArCaliWaves2NtupleVec.append( topSequence.LArCaliWaves2Ntuple%(fn)s )' % {
                'fn': i + 1
            }
            LArCaliWaves2NtupleVec[i].NtupleName = "CALIWAVE" + str(i + 1)
            if (doCaliWaveSelector):
                LArCaliWaves2NtupleVec[i].KeyList = [
                    KeyOutputSplitted[i] + "Sel"
                ]
            else:
                LArCaliWaves2NtupleVec[i].KeyList = [KeyOutputSplitted[i]]
            LArCaliWaves2NtupleVec[i].SaveJitter = SaveJitter
            LArCaliWaves2NtupleVec[i].SaveDerivedInfo = SaveDerivedInfo

        #LArCaliWaves2NtupleVec[3].OutputLevel=DEBUG