tracking-parametrisation-tuner/moore_options/get_parameterisation_data.py

54 lines
1.5 KiB
Python
Raw Normal View History

2024-02-05 15:44:57 +01:00
# flake8: noqa
2023-12-19 13:00:59 +01:00
from Moore import options, run_reconstruction
from Moore.config import Reconstruction
from PyConf.Algorithms import PrParameterisationData
from RecoConf.data_from_file import mc_unpackers
from PyConf.application import make_data_with_FetchDataFromFile
import glob
2024-02-08 17:42:15 +01:00
decay = "B"
2024-02-04 16:55:36 +01:00
2023-12-19 13:00:59 +01:00
options.evt_max = -1
2024-02-04 16:55:36 +01:00
2024-02-08 17:42:15 +01:00
options.ntuple_file = f"data/param_data_{decay}_default_thesis.root"
2024-02-04 16:55:36 +01:00
2023-12-19 13:00:59 +01:00
if decay == "B":
options.input_files = glob.glob("/auto/data/guenther/Bd_Kstee/*.xdigi")
2024-02-04 16:55:36 +01:00
elif decay == "BJpsi":
options.input_files = glob.glob("/auto/data/guenther/Bd_JpsiKst_ee/*.xdigi")
2023-12-19 13:00:59 +01:00
elif decay == "D":
options.input_files = glob.glob("/auto/data/guenther/Dst_D0ee/*.xdigi")
2024-02-08 17:42:15 +01:00
elif decay == "test2":
options.input_files = [
"/auto/data/guenther/Bd_JpsiKst_ee/00143565_00000009_1.xdigi"
]
2024-02-04 16:55:36 +01:00
elif decay == "test":
options.input_files = ["/auto/data/guenther/Bd_Kstee/00151673_00000002_1.xdigi"]
options.input_type = "ROOT"
2023-12-19 13:00:59 +01:00
options.dddb_tag = "dddb-20210617"
options.conddb_tag = "sim-20210617-vc-md100"
options.simulation = True
def run_tracking_param_debug():
param_data = PrParameterisationData(
MCParticles=mc_unpackers()["MCParticles"],
MCVPHits=mc_unpackers()["MCVPHits"],
MCFTHits=mc_unpackers()["MCFTHits"],
zRef=8520.0,
2024-02-04 16:55:36 +01:00
TrackInfo=make_data_with_FetchDataFromFile(
"/Event/MC/TrackInfo", "LHCb::MCProperty"
),
2023-12-19 13:00:59 +01:00
)
data = [param_data]
return Reconstruction("run_tracking_debug", data)
run_reconstruction(options, run_tracking_param_debug)