Beispiel #1
0
    from LArCalibTools.LArCalibToolsConf import LArParams2Ntuple
    LArParams2Ntuple = LArParams2Ntuple("LArParams2Ntuple")
    LArParams2Ntuple.NtupleName = "PARAMS"
    LArParams2Ntuple.KeyList = [
        "LArCaliPulseParamsComplete", "LArDetCellParamsComplete"
    ]
    LArParams2Ntuple.AllChannels2Ntuple = False
    LArParams2Ntuple.DBKeysList = [
        "LArCaliPulseParams_RTM", "LArDetCellParams_RTM"
    ]

    topSequence += LArParams2Ntuple

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

###########################################################################
#
# writing to POOL file...
#
###########################################################################

if (writePOOLfile):

    OutputObjectSpecCali = "LArCaliPulseParamsComplete#" + OutputKey_Cali + "#" + OutputFolder_Cali
    OutputObjectSpecTagCali = LArCalibFolderTag(OutputFolder_Cali, OutputTag)

    OutputObjectSpecDet = "LArDetCellParamsComplete#" + OutputKey_Det + "#" + OutputFolder_Det
    OutputObjectSpecTagDet = LArCalibFolderTag(OutputFolder_Det, OutputTag)
Beispiel #2
0
if topSequence.NSWL1Simulation.DoNtuple:

    if not hasattr(ServiceMgr, "THistSvc"):
        from GaudiSvc.GaudiSvcConf import THistSvc
        ServiceMgr += THistSvc()
    ServiceMgr.THistSvc.Output = [
        "EXPERT DATAFILE='Monitoring.root' OPT='RECREATE'"
    ]

    if not hasattr(theApp.Dlls, "RootHistCnv"):
        theApp.Dlls += ["RootHistCnv"]
        theApp.HistogramPersistency = "ROOT"

    if not hasattr(ServiceMgr, "NTupleSvc"):
        from GaudiSvc.GaudiSvcConf import NTupleSvc
        ServiceMgr += NTupleSvc()

    ServiceMgr.THistSvc.Output += [
        "NSWL1Simulation DATAFILE='NSWL1Simulation.root'  OPT='RECREATE'"
    ]
    print ServiceMgr

else:  #to avoid any possible crash. If DoNtuple is set to true for a tool but false for NSWL1Simulation the code will crash
    # ideally that should have been already handled in C++ side
    topSequence.NSWL1Simulation.PadTdsTool.DoNtuple = False
    topSequence.NSWL1Simulation.PadTriggerTool.DoNtuple = False
    topSequence.NSWL1Simulation.StripTdsTool.DoNtuple = False
    topSequence.NSWL1Simulation.StripClusterTool.DoNtuple = False
    topSequence.NSWL1Simulation.StripSegmentTool.DoNtuple = False