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.

74 lines
2.6 KiB

10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
  1. ###############################################################################
  2. # (c) Copyright 2019 CERN for the benefit of the LHCb Collaboration #
  3. # #
  4. # This software is distributed under the terms of the GNU General Public #
  5. # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
  6. # #
  7. # In applying this licence, CERN does not waive the privileges and immunities #
  8. # granted to it by virtue of its status as an Intergovernmental Organization #
  9. # or submit itself to any jurisdiction. #
  10. ###############################################################################
  11. #
  12. # flake8: noqa
  13. from collections import defaultdict
  14. def getCompare():
  15. basedict = {
  16. "long": {},
  17. "long_fromB": {},
  18. "long_fromB_P>5GeV": {},
  19. "long_fromB_P>3GeV_Pt>0.5GeV": {},
  20. }
  21. basedict["long"]["BestLong"] = "01_long"
  22. basedict["long"]["Seed"] = "02_long"
  23. basedict["long"]["Match"] = "01_long"
  24. basedict["long"]["MergedMatch"] = "01_long"
  25. basedict["long"]["DefaultMatch"] = "01_long"
  26. basedict["long"]["Forward"] = "01_long"
  27. basedict["long_fromB"]["BestLong"] = "05_long_fromB"
  28. basedict["long_fromB"]["Seed"] = "04_long_fromB"
  29. basedict["long_fromB"]["Match"] = "05_long_fromB"
  30. basedict["long_fromB"]["MergedMatch"] = "05_long_fromB"
  31. basedict["long_fromB"]["DefaultMatch"] = "05_long_fromB"
  32. basedict["long_fromB"]["Forward"] = "05_long_fromB"
  33. basedict["long_fromB_P>5GeV"]["BestLong"] = "06_long_fromB_P>5GeV"
  34. basedict["long_fromB_P>5GeV"]["Seed"] = "05_long_fromB_P>5GeV"
  35. basedict["long_fromB_P>5GeV"]["Match"] = "06_long_fromB_P>5GeV"
  36. basedict["long_fromB_P>5GeV"]["Forward"] = "06_long_fromB_P>5GeV"
  37. basedict["long_fromB_P>3GeV_Pt>0.5GeV"][
  38. "BestLong"
  39. ] = "10_long_fromB_P>3GeV_Pt>0.5GeV"
  40. basedict["long_fromB_P>3GeV_Pt>0.5GeV"]["Seed"] = "04_long_fromB"
  41. basedict["long_fromB_P>3GeV_Pt>0.5GeV"]["Match"] = "10_long_fromB_P>3GeV_Pt>0.5GeV"
  42. basedict["long_fromB_P>3GeV_Pt>0.5GeV"][
  43. "Forward"
  44. ] = "10_long_fromB_P>3GeV_Pt>0.5GeV"
  45. return basedict
  46. def getCompColors():
  47. basedict = {
  48. "Forward": {},
  49. "Match": {},
  50. "MergedMatch": {},
  51. "DefaultMatch": {},
  52. "Seed": {},
  53. "BestLong": {},
  54. }
  55. basedict["Forward"] = 0
  56. basedict["Match"] = 4
  57. basedict["MergedMatch"] = 4
  58. basedict["DefaultMatch"] = 4
  59. basedict["Seed"] = 6
  60. basedict["BestLong"] = 1
  61. return basedict