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.

66 lines
2.4 KiB

10 months ago
10 months ago
10 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. }
  20. basedict["long"]["BestLong"] = "01_long"
  21. basedict["long"]["Seed"] = "02_long"
  22. basedict["long"]["Match"] = "01_long"
  23. basedict["long"]["MergedMatch"] = "01_long"
  24. basedict["long"]["DefaultMatch"] = "01_long"
  25. basedict["long"]["Forward"] = "01_long"
  26. basedict["long_fromB"]["BestLong"] = "05_long_fromB"
  27. basedict["long_fromB"]["Seed"] = "04_long_fromB"
  28. basedict["long_fromB"]["Match"] = "05_long_fromB"
  29. basedict["long_fromB"]["MergedMatch"] = "05_long_fromB"
  30. basedict["long_fromB"]["DefaultMatch"] = "05_long_fromB"
  31. basedict["long_fromB"]["Forward"] = "05_long_fromB"
  32. basedict["long_fromB_P>5GeV"]["BestLong"] = "06_long_fromB_P>5GeV"
  33. basedict["long_fromB_P>5GeV"]["Seed"] = "05_long_fromB_P>5GeV"
  34. basedict["long_fromB_P>5GeV"]["Match"] = "06_long_fromB_P>5GeV"
  35. basedict["long_fromB_P>5GeV"]["MergedMatch"] = "06_long_fromB_P>5GeV"
  36. basedict["long_fromB_P>5GeV"]["DefaultMatch"] = "06_long_fromB_P>5GeV"
  37. basedict["long_fromB_P>5GeV"]["Forward"] = "06_long_fromB_P>5GeV"
  38. return basedict
  39. def getCompColors():
  40. basedict = {
  41. "Forward": {},
  42. "Match": {},
  43. "MergedMatch": {},
  44. "DefaultMatch": {},
  45. "Seed": {},
  46. "BestLong": {},
  47. }
  48. basedict["Forward"] = 0
  49. basedict["Match"] = 4
  50. basedict["MergedMatch"] = 4
  51. basedict["DefaultMatch"] = 4
  52. basedict["Seed"] = 6
  53. basedict["BestLong"] = 1
  54. return basedict