from Moore import options
from HltEfficiencyChecker.config import run_allen_in_moore_with_tuples
from RecoConf.hlt1_tracking import make_SPmixed_raw_event, make_RetinaCluster_raw_event, make_VeloClusterTrackingSIMD, make_velo_full_clusters
from PyConf.Algorithms import VeloRetinaClusterTrackingSIMD, VPRetinaFullClustering
from Configurables import HiveDataBrokerSvc
from Configurables import LHCb__ParticlePropertySvc as ParticlePropertySvc
ParticlePropertySvc().Particles = [ "H_10 87 25 0.0 0.5 1e-11 Higgs0 25 0.000000e+000" ]
HiveDataBrokerSvc().OutputLevel = 2
decay = ("[${B_s0}B_s0 => "
"( phi(1020) => ${Kplus0}K+ ${Kminus0}K-) "
"( phi(1020) => ${Kplus1}K+ ${Kminus1}K-) ]CC")
decay = ("[${Bplus}B+ => "
"( H_10 => ${muplus}mu+ ${muminus}mu-) "
"${Kplus}K+]CC")
options.evt_max = 10000
options.data_type = 'Upgrade'
options.input_type = 'ROOT'
options.simulation = True
options.conddb_tag = 'sim-20210617-vc-mu100'
options.dddb_tag = 'dddb-20210617'
import glob
options.input_files = ["/eos/lhcb/user/l/lohenry/LLP_Paper/lohenry.510/629644019/lohenry.510/629644019/Boole-Extended.digi"]*100
from RecoConf.hlt1_allen import allen_gaudi_node_barriers
from RecoConf.reconstruction_objects import reconstruction
from AllenCore.generator import make_transposed_raw_banks
with allen_gaudi_node_barriers.bind(sequence="hlt1_pp_veloSP"), reconstruction.bind( from_file=False), make_transposed_raw_banks.bind(rawbank_list=[
"ODIN", "Muon", "FTCluster", "UT", "VP", "Calo", "EcalPacked",
"HcalPacked"
]): # FIXME Dont like that I have to hard code this in.
run_allen_in_moore_with_tuples(options, decay)