You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

8 months ago
10 months ago
8 months ago
7 months ago
10 months ago
8 months ago
10 months ago
8 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
7 months ago
10 months ago
  1. # flake8: noqa
  2. from Moore import options, run_reconstruction
  3. from Moore.config import Reconstruction
  4. from PyConf.Algorithms import PrParameterisationData
  5. from RecoConf.data_from_file import mc_unpackers
  6. from PyConf.application import make_data_with_FetchDataFromFile
  7. from RecoConf.mc_checking import make_links_lhcbids_mcparticles_tracking_system
  8. from RecoConf.event_filters import require_gec
  9. import glob
  10. decay = "B"
  11. options.evt_max = -1
  12. options.ntuple_file = f"data/param_data_{decay}_default_thesis.root"
  13. if decay == "B":
  14. options.input_files = glob.glob("/auto/data/guenther/Bd_Kstee/*.xdigi")
  15. elif decay == "BJpsi":
  16. options.input_files = glob.glob("/auto/data/guenther/Bd_JpsiKst_ee/*.xdigi")
  17. elif decay == "D":
  18. options.input_files = glob.glob("/auto/data/guenther/Dst_D0ee/*.xdigi")
  19. elif decay == "test2":
  20. options.input_files = [
  21. "/auto/data/guenther/Bd_JpsiKst_ee/00143565_00000009_1.xdigi"
  22. ]
  23. elif decay == "test":
  24. options.input_files = ["/auto/data/guenther/Bd_Kstee/00151673_00000002_1.xdigi"]
  25. options.input_type = "ROOT"
  26. options.dddb_tag = "dddb-20210617"
  27. options.conddb_tag = "sim-20210617-vc-md100"
  28. options.simulation = True
  29. def run_tracking_param_debug():
  30. links_to_hits = make_links_lhcbids_mcparticles_tracking_system()
  31. param_data = PrParameterisationData(
  32. MCParticles=mc_unpackers()["MCParticles"],
  33. MCVPHits=mc_unpackers()["MCVPHits"],
  34. MCFTHits=mc_unpackers()["MCFTHits"],
  35. zRef=8520.0,
  36. TrackInfo=make_data_with_FetchDataFromFile(
  37. "/Event/MC/TrackInfo", "LHCb::MCProperty"
  38. ),
  39. )
  40. data = [param_data]
  41. return Reconstruction("run_tracking_debug", data, [require_gec()])
  42. run_reconstruction(options, run_tracking_param_debug)