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.

59 lines
2.1 KiB

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"]["ResidualMatch"] = "01_long"
  24. basedict["long"]["Forward"] = "01_long"
  25. basedict["long_fromB"]["BestLong"] = "05_long_fromB"
  26. basedict["long_fromB"]["Seed"] = "04_long_fromB"
  27. basedict["long_fromB"]["Match"] = "05_long_fromB"
  28. basedict["long_fromB"]["ResidualMatch"] = "05_long_fromB"
  29. basedict["long_fromB"]["Forward"] = "05_long_fromB"
  30. basedict["long_fromB_P>5GeV"]["BestLong"] = "06_long_fromB_P>5GeV"
  31. basedict["long_fromB_P>5GeV"]["Seed"] = "05_long_fromB_P>5GeV"
  32. basedict["long_fromB_P>5GeV"]["Match"] = "06_long_fromB_P>5GeV"
  33. basedict["long_fromB_P>5GeV"]["ResidualMatch"] = "06_long_fromB_P>5GeV"
  34. basedict["long_fromB_P>5GeV"]["Forward"] = "06_long_fromB_P>5GeV"
  35. return basedict
  36. def getCompColors():
  37. basedict = {
  38. "Forward": {},
  39. "Match": {},
  40. "Seed": {},
  41. "BestLong": {},
  42. }
  43. basedict["Forward"] = 0
  44. basedict["Match"] = 4
  45. basedict["Seed"] = 6
  46. basedict["BestLong"] = 1
  47. return basedict