# Test to read a ROOT sim file from Configurables import IOTest from GaudiConf.IOHelper import IOHelper IOTest(EvtMax=5, DataContent="SIM", WithMC=True, LoadAll=True) ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:ROOT.sim'])
from Configurables import IOTest from GaudiConf.IOHelper import IOHelper from Configurables import ApplicationMgr, createODIN odin = createODIN() ApplicationMgr().TopAlg += [odin] IOTest(EvtMax=5, LoadAll=True) ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:Reco14-Stripping20.dst'])
from Configurables import Tesla from Gaudi.Configuration import * from Configurables import RecombineRawEvent, DecodeRawEvent RecombineRawEvent() DecodeRawEvent().DataOnDemand = True from Configurables import ConfigTarFileAccessSvc ConfigTarFileAccessSvc( ).File = '/afs/cern.ch/work/s/sbenson/public/forTeslaExtendedReps/config.tar' Tesla().TriggerLine = "Hlt2DiMuonJPsi" Tesla().ReportVersion = 2 Tesla().EvtMax = -1 from GaudiConf.IOHelper import IOHelper ioh = IOHelper() ioh.setupServices() ioh.inputFiles(["/tmp/ikomarov/With_new_HLT.dst"]) Tesla().outputFile = "/tmp/ikomarov/Turbo.dst"
from Configurables import Tesla from Gaudi.Configuration import * from Configurables import RecombineRawEvent, DecodeRawEvent RecombineRawEvent() DecodeRawEvent().DataOnDemand = True # Path to private TCK from Configurables import ConfigTarFileAccessSvc ConfigTarFileAccessSvc( ).File = '/afs/cern.ch/user/s/sbenson/cmtuser/Moore_v23r2/TCKData/config.tar' Tesla().TriggerLines = ["Hlt2IncPhi"] # Enter your trigger line here Tesla().EvtMax = -1 from GaudiConf.IOHelper import IOHelper ioh = IOHelper() ioh.setupServices() ioh.inputFiles(["PATH/TO/HLT/PROCESSED/DATA"]) Tesla().outputFile = "PATH/TO/OUTPUT"
from Configurables import IOTest from GaudiConf.IOHelper import IOHelper IOTest(EvtMax=5, LoadAll=True, DataContent='MDST') ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:Reco12-Stripping17.mdst'])
from Configurables import Tesla from Gaudi.Configuration import * from Configurables import RecombineRawEvent, DecodeRawEvent RecombineRawEvent() DecodeRawEvent().DataOnDemand = True from Configurables import ConfigTarFileAccessSvc ConfigTarFileAccessSvc().File='/afs/cern.ch/work/s/sbenson/public/forTeslaExtendedReps/config.tar' Tesla().TriggerLine = "Hlt2DiMuonJPsi" Tesla().ReportVersion=2 Tesla().EvtMax = -1 from GaudiConf.IOHelper import IOHelper ioh = IOHelper() ioh.setupServices() ioh.inputFiles([ "/tmp/ikomarov/With_new_HLT.dst" ]) Tesla().outputFile = "/tmp/ikomarov/Turbo.dst"
# Test to ensure a Reco14-Stripping20 mdst can be copied from Configurables import IOTest from GaudiConf.IOHelper import IOHelper from PRConfig import TestFileDB IOTest(EvtMax=5, LoadAll=True, DataContent='MDST', KillDAQ=True) ioh = IOHelper() ioh.setupServices() ioh.outStream('PFN:Reco14-Stripping20.mdst', "InputCopyStream") ioh.inputFiles([ 'PFN:root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/swtest/lhcb/LHCb/Collision12/BHADRON.MDST/00020198/0000/00020198_00000758_1.bhadron.mdst' ]) #TestFileDB.test_file_db["R14S20-bhadron.mdst"].run()
# Test of UnpackTrack on SDST contaning a track with more than 65k LHCbIDs from PRConfig import TestFileDB from Gaudi.Configuration import ApplicationMgr from Configurables import DumpTracks, UnpackTrack from GaudiConf.IOHelper import IOHelper upkTr = UnpackTrack() ApplicationMgr().TopAlg += [ upkTr, DumpTracks() ] ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/swtest/lhcb/swtest/Reco10-sdst-10events/00011652_00000001_1-evt-18641to18650.sdst']) #TestFileDB.test_file_db["Reco10-sdst-10events"].run()
# Test to read a ROOT digi file from Configurables import IOTest from GaudiConf.IOHelper import IOHelper IOTest(EvtMax=5, DataContent="DIGI", WithMC=True, LoadAll=True) ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:ROOT.digi'])
from Configurables import IOTest from GaudiConf.IOHelper import IOHelper from Configurables import ApplicationMgr, createODIN odin = createODIN() ApplicationMgr().TopAlg += [odin] IOTest(EvtMax=5, LoadAll=True) ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:ROOT-Reco08.dst'])
# Test to read a ROOT MC10 dst file from Configurables import IOTest from GaudiConf.IOHelper import IOHelper IOTest(EvtMax=5, WithMC=True, LoadAll=True) ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:ROOT-MC10.dst'])
from Configurables import RecombineRawEvent, DecodeRawEvent RecombineRawEvent() DecodeRawEvent().DataOnDemand = True ## Tell HltANNSvc the ID of your line # NEEDED WHEN NOT RUNNING FROM A TCK # YOU CAN FIND THE ID IN THE PYTHON IMPLEMENTATION # IN Hlt/Hlt2Lines from Configurables import HltANNSvc Hlt2ID = HltANNSvc().Hlt2SelectionID if "Hlt2Global" not in Hlt2ID: Hlt2ID.update({"Hlt2Global": 2}) HltANNSvc().Hlt1SelectionID = {'PV3D': 10103, 'ProtoPV3D': 10117} Hlt2ID.update({ 'Hlt2IncPhiDecision': 50000, 'Hlt2IncPhiSidebandsDecision': 50003, 'Hlt2IncPhiTrackFitDecision': 50002 }) #from Configurables import ConfigTarFileAccessSvc #ConfigTarFileAccessSvc().File='/afs/cern.ch/user/s/sbenson/cmtuser/Moore_v23r2/TCKData/config.tar' Tesla().TriggerLines = ["Hlt2IncPhi"] # Enter your trigger line here Tesla().EvtMax = -1 Tesla().OutputLevel = DEBUG from GaudiConf.IOHelper import IOHelper ioh = IOHelper() ioh.setupServices() ioh.inputFiles(["/PATH/TO/INPUT"]) Tesla().outputFile = "OUTPUT"
from Configurables import IOTest from GaudiConf.IOHelper import IOHelper IOTest(EvtMax=5, LoadAll=True, DataType='MC09') ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:ROOT.dst'])
from Configurables import IOTest from GaudiConf.IOHelper import IOHelper IOTest(EvtMax=5, LoadAll=True) ioh = IOHelper('ROOT') ioh.setupServices() ioh.inputFiles(['PFN:ROOT-2009.dst'])
# Test to ensure a Reco12-Stripping17 mdst can be copied from Configurables import IOTest from GaudiConf.IOHelper import IOHelper from PRConfig import TestFileDB IOTest(EvtMax=5, LoadAll=True, DataContent='MDST', KillDAQ=True) ioh = IOHelper() ioh.setupServices() ioh.outStream('PFN:Reco12-Stripping17.mdst', "InputCopyStream") ioh.inputFiles([ 'PFN:root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/swtest/lhcb/LHCb/Collision11/CHARM.MDST/00012547/0000/00012547_00000013_1.charm.mdst' ]) #TestFileDB.test_file_db["R12S17-charm.mdst"].run()
# SAMPLE FOR TUTORIAL: RunningTesla # FOR LATEST SCRIPT SEE Turbo_NewLine.py from Configurables import Tesla from Gaudi.Configuration import * from Configurables import RecombineRawEvent, DecodeRawEvent RecombineRawEvent() DecodeRawEvent().DataOnDemand = True from Configurables import ConfigTarFileAccessSvc ConfigTarFileAccessSvc().File='/afs/cern.ch/work/s/sbenson/public/forTeslaExtendedReps/config.tar' Tesla().TriggerLine = "Hlt2IncPhi" Tesla().EvtMax = -1 from GaudiConf.IOHelper import IOHelper ioh = IOHelper() ioh.setupServices() ioh.inputFiles([ "root://eoslhcb.cern.ch//eos/lhcb/user/s/sbenson/DSTs/TeslaChain/RemadeSel_phiphi_1k_Tutorial_0044.dst" ]) Tesla().outputFile = "Turbo.dst"