Angular analysis of B+->K*+(K+pi0)mumu
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.

82 lines
2.3 KiB

  1. import os
  2. def get_path(decay = "Kplus", year = "2012", polarity = "Down"):
  3. sim_version = "Sim09a"
  4. dst = "DST"
  5. E = 0
  6. nu = ""
  7. trigger = ""
  8. stripping = ""
  9. reco = ""
  10. if (decay=="Kplus"): decay_number = 12113100
  11. if (decay=="Kshort"): decay_number = 12115102
  12. if (year=="2011"):
  13. E = 3500
  14. nu = "2"
  15. trigger = "0x40760037"
  16. stripping = "21r1"
  17. reco = "Reco14c"
  18. sim_version = "Sim09a"
  19. elif (year=="2012"):
  20. E = 4000
  21. nu = "2.5"
  22. trigger = "0x409f0045"
  23. stripping = "21"
  24. reco = "Reco14c"
  25. sim_version = "Sim09a"
  26. elif (year=="2015"):
  27. E = 6500
  28. nu = "1.6-25ns"
  29. trigger = "0x411400a2"
  30. stripping = "24"
  31. reco = "Reco15a/Turbo02"
  32. sim_version = "Sim09b"
  33. dst = "MDST"
  34. elif (year=="2016"):
  35. E = 6500
  36. nu = "1.6-25ns"
  37. trigger = "0x6138160F"
  38. stripping = "28"
  39. reco = "Reco16/Turbo03"
  40. sim_version = "Sim09c"
  41. dst = "MDST"
  42. elif (year=="2017"):
  43. E = 6500
  44. nu = "1.6-25ns"
  45. trigger = "0x62661709"
  46. stripping = "29r2"
  47. reco = "Reco17/Turbo04a-WithTurcal"
  48. sim_version = "Sim09e"
  49. dst = "MDST"
  50. elif (year=="2018"):
  51. E = 6500
  52. nu = "1.6-25ns"
  53. trigger = "0x617d18a4"
  54. stripping = "34"
  55. reco = "Reco18/Turbo05-WithTurcal"
  56. sim_version = "Sim09f"
  57. dst = "DST"
  58. script_opts = {"YEAR":year,"POL":polarity,"DATA_TYPE":"MC","ENERGY":E,"NU":nu,"TRIG":trigger,"STRIP":stripping,"CHAN":decay, "NUM":decay_number, "RECO":reco, "SIM": sim_version, "DST":dst}
  59. PATH = "/MC/%(YEAR)s/Beam%(ENERGY)sGeV-%(YEAR)s-Mag%(POL)s-Nu%(NU)s-Pythia8/%(SIM)s/Trig%(TRIG)s/%(RECO)s/Stripping%(STRIP)sNoPrescalingFlagged/%(NUM)s/ALLSTREAMS.%(DST)s" % script_opts
  60. return PATH
  61. def get_eff(decay = "Kplus", year = "2012", polarity = "Down"):
  62. command = "lb-run LHCbDirac/prod dirac-bookkeeping-rejection-stats -B " + str(get_path(decay,year,polarity))
  63. print command
  64. os.system(command)
  65. if __name__ == '__main__':
  66. get_eff()
  67. #def get_BKK_path(decay,year,polarity):
  68. # for dic in path_dict_list:
  69. # print dic
  70. # if (dic.get("year")==year) and (dic.get("decay")==decay) and (dic.get("pol")==polarity):
  71. # print dic
  72. # return dic.get("PATH")