Exemplo n.º 1
0
def execute():
    RecombineRawEvent()
    DecodeRawEvent().DataOnDemand = True

    from Configurables import ConfigTarFileAccessSvc
    ConfigTarFileAccessSvc().File = "config.tar"

    #Tesla().OutputLevel = DEBUG
    Tesla().TriggerLine = "Hlt2DiMuonJPsi"
    Tesla().ReportVersion = 2
    #Tesla().EvtMax = -1

    #from GaudiConf.IOHelper import IOHelper
    #ioh = IOHelper()
    #ioh.setupServices()
    #ioh.inputFiles(["EarlyEvents-Extended-L0-Turbo.xdst"])
    Tesla().outputFile = "EarlyEvents-Extended-L0-Turbo.xdst"
Exemplo n.º 2
0
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"
Exemplo n.º 3
0
from Configurables import Tesla
Tesla().Pack = True
Tesla().DataType = '2015'
Tesla().Simulation = False
Tesla().Mode = 'Offline'
Tesla().VertRepLoc = 'Hlt2'
Tesla().EvtMax = 1000
Tesla().outputFile = "tesla_2015_TCK.dst"

from Gaudi.Configuration import *
version = 'v10r0_0x00fa0051'
from TurboStreamProd.helpers import *
from TurboStreamProd import prodDict
lines = streamLines(prodDict, version, 'DiMuon', debug=True)
lines += streamLines(prodDict, version, 'Charm', debug=True)
lines += streamLines(prodDict, version, 'CharmSpec', debug=True)

Tesla().TriggerLines = lines

from PRConfig.TestFileDB import test_file_db
input = test_file_db['TeslaTest_TCK_0x022600a2']
input.run(configurable=Tesla())
Exemplo n.º 4
0
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"
Exemplo n.º 5
0
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"
Exemplo n.º 6
0
    'Hlt2IncPhiDecision': 50000,
    'Hlt2IncPhiSidebandsDecision': 50003,
    'Hlt2IncPhiTrackFitDecision': 50002
})
HltANNSvc().InfoID = {
    "FastTTValidationTool/ValidateWithTT": 6350,
    "MatchVeloMuon": 6400,
    "IsMuonTool": 6401,
    "PatForwardTool/LooseForward": 6299,
    "PatForwardTool/TightForward": 6300,
    'Hlt2Topo2BodyBBDTResponse': 6502,
    'Hlt2Topo3BodyBBDTResponse': 6303,
    'Hlt2Topo4BodyBBDTResponse': 6304
}

Tesla().TriggerLines = ["Hlt2IncPhi"]
Tesla().OutputLevel = 2
Tesla().EvtMax = -1
Tesla().Pack = False

from PRConfig.TestFileDB import test_file_db
input = test_file_db['Tesla_Bsphiphi_MC12wTurbo']
input.run(configurable=Tesla())

import GaudiPython
from Gaudi.Configuration import ApplicationMgr
from Configurables import LoKiSvc

from GaudiKernel import ROOT6WorkAroundEnabled
if ROOT6WorkAroundEnabled('ROOT-7492'):
    # trigger autoloading of LHCbKernel dictionary
Exemplo n.º 7
0
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
})
HltANNSvc().InfoID = {
    "FastTTValidationTool/ValidateWithTT": 6350,
    "MatchVeloMuon": 6400,
    "IsMuonTool": 6401,
    "PatForwardTool/LooseForward": 6299,
    "PatForwardTool/TightForward": 6300,
    'Hlt2Topo2BodyBBDTResponse': 6502,
    'Hlt2Topo3BodyBBDTResponse': 6303,
    'Hlt2Topo4BodyBBDTResponse': 6304
}

prefix = "Hlt2IncPhi"

Tesla().TriggerLines = ["Hlt2IncPhi"]
Tesla().OutputLevel = 4
Tesla().EvtMax = -1

from PRConfig.TestFileDB import test_file_db

input = test_file_db['Tesla_Bsphiphi_MC12wTurbo']
input.run(configurable=Tesla())
Exemplo n.º 8
0
from Configurables import Tesla 
from Gaudi.Configuration import *

Tesla().TriggerLines = ["Hlt2CharmHadMinBiasD02KPi"]
Tesla().OutputLevel = 4
Tesla().EvtMax = 2000
Tesla().outputFile = "Turbo_FSRcreated.dst"
Tesla().Mode="Online"
Tesla().Pack=True

from PRConfig.TestFileDB import test_file_db
#input = test_file_db['2012_raw_L041']
input = test_file_db['2012_raw_full']
input.run(configurable=Tesla())
#from GaudiConf import IOHelper
#IOHelper("MDF").inputFiles( ["mdf:root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/swtest/lhcb/data/2012/RAW/FULL/LHCb/COLLISION12/114753/114753_0000000015.raw"] , clear=True ) 
Exemplo n.º 9
0
# 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"