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.

60 lines
1.7 KiB

8 months ago
10 months ago
7 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
7 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 = (
  13. f"/work/cetin/LHCb/reco_tuner/data/param_data_{decay}_Default.root"
  14. )
  15. if decay == "B":
  16. options.input_files = glob.glob("/auto/data/guenther/Bd_Kstee/*.xdigi")
  17. elif decay == "BJpsi":
  18. options.input_files = glob.glob("/auto/data/guenther/Bd_JpsiKst_ee/*.xdigi")
  19. elif decay == "D":
  20. options.input_files = glob.glob("/auto/data/guenther/Dst_D0ee/*.xdigi")
  21. elif decay == "test2":
  22. options.input_files = [
  23. "/auto/data/guenther/Bd_JpsiKst_ee/00143565_00000009_1.xdigi"
  24. ]
  25. elif decay == "test":
  26. options.input_files = ["/auto/data/guenther/Bd_Kstee/00151673_00000002_1.xdigi"]
  27. options.input_type = "ROOT"
  28. options.dddb_tag = "dddb-20210617"
  29. options.conddb_tag = "sim-20210617-vc-md100"
  30. options.simulation = True
  31. def run_tracking_param_debug():
  32. links_to_hits = make_links_lhcbids_mcparticles_tracking_system()
  33. param_data = PrParameterisationData(
  34. MCParticles=mc_unpackers()["MCParticles"],
  35. MCVPHits=mc_unpackers()["MCVPHits"],
  36. MCFTHits=mc_unpackers()["MCFTHits"],
  37. zRef=8520.0,
  38. TrackInfo=make_data_with_FetchDataFromFile(
  39. "/Event/MC/TrackInfo", "LHCb::MCProperty"
  40. ),
  41. )
  42. data = [param_data]
  43. return Reconstruction("run_tracking_debug", data, [require_gec()])
  44. run_reconstruction(options, run_tracking_param_debug)