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): topSequence += LArShape2Ntuple("LArOFC2Ntuple" + str(i + 1)) exec 'LArShape2NtupleVec.append( topSequence.LArShape2Ntuple%(fn)s )' % { 'fn': i + 1 } LArShape2NtupleVec[i].ContainerKey = ShapeKeySplitted[i] LArShape2NtupleVec[i].NtupleName = "SHAPE" + str(i + 1) else: LArShape2Ntuple = LArShape2Ntuple("LArShape2Ntuple") LArShape2Ntuple.ContainerKey = ShapeKey topSequence += LArShape2Ntuple theApp.HistogramPersistency = "ROOT" from GaudiSvc.GaudiSvcConf import NTupleSvc if os.path.exists(OutputOFCRootFileDir + "/" + OutputOFCRootFileName): os.remove(OutputOFCRootFileDir + "/" + OutputOFCRootFileName) svcMgr += NTupleSvc()
LArOFC2Ntuple1mu.AddFEBTempInfo = False LArOFC2Ntuple1mu.isSC = SuperCells topSequence += LArOFC2Ntuple1mu LArOFC2Ntuple2mu = LArOFC2Ntuple("LArOFC2Ntuple2mu") LArOFC2Ntuple2mu.ContainerKey = OFCKey2 + "_mu" LArOFC2Ntuple2mu.NtupleName = OFCTreeName2 + "_mu" LArOFC2Ntuple2mu.AddFEBTempInfo = False LArOFC2Ntuple2mu.isSC = SuperCells topSequence += LArOFC2Ntuple2mu if (FillShape): from LArCalibTools.LArCalibToolsConf import LArShape2Ntuple LArShape2Ntuple1 = LArShape2Ntuple("LArShape2Ntuple1") LArShape2Ntuple1.ContainerKey = ShapeKey LArShape2Ntuple1.NtupleName = ShapeTreeName LArShape2Ntuple1.AddFEBTempInfo = False LArShape2Ntuple1.isSC = SuperCells topSequence += LArShape2Ntuple1 LArShape2Ntuple2 = LArShape2Ntuple("LArShape2Ntuple2") LArShape2Ntuple2.ContainerKey = ShapeKey2 LArShape2Ntuple2.NtupleName = ShapeTreeName2 LArShape2Ntuple2.AddFEBTempInfo = False LArShape2Ntuple2.isSC = SuperCells topSequence += LArShape2Ntuple2 if (doPhysWaveShifter): from LArCalibTools.LArCalibToolsConf import LArFebTimeOffset2Ntuple
LArOFC2Ntuple.ContainerKey = OFCKey LArOFC2Ntuple.AddFEBTempInfo = False topSequence += LArOFC2Ntuple if (doPhysWaveShifter): from LArCalibTools.LArCalibToolsConf import LArFebTimeOffset2Ntuple LArFebTimeOffset2Ntuple = LArFebTimeOffset2Ntuple( "LArFebTimeOffset2Ntuple") LArFebTimeOffset2Ntuple.ContainerKey = "FebTimeOffset" LArFebTimeOffset2Ntuple.AddFEBTempInfo = False topSequence += LArFebTimeOffset2Ntuple if (FillShape): from LArCalibTools.LArCalibToolsConf import LArShape2Ntuple LArShape2Ntuple = LArShape2Ntuple("LArShape2Ntuple") LArShape2Ntuple.ContainerKey = ShapeKey #LArShape2Ntuple.ContainerKey = "tempShape" LArShape2Ntuple.AddFEBTempInfo = False topSequence += LArShape2Ntuple theApp.HistogramPersistency = "ROOT" from GaudiSvc.GaudiSvcConf import NTupleSvc if os.path.exists(OutputOFCRootFileDir + "/" + OutputOFCRootFileName): os.remove(OutputOFCRootFileDir + "/" + OutputOFCRootFileName) svcMgr += NTupleSvc() svcMgr.NTupleSvc.Output = [ "FILE1 DATAFILE='" + OutputOFCRootFileDir + "/" + OutputOFCRootFileName + "' OPT='NEW'" ]