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.

69 lines
2.0 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 = 12113446 #12113445
  11. if (decay=="Kshort"): decay_number = 12115179 #12115178
  12. if (decay=="Kplus"): year_list = ["2011","2012","2015","2016"]
  13. if (year=="2011"):
  14. E = 3500
  15. nu = "2"
  16. trigger = "0x40760037"
  17. stripping = "21r1p1"
  18. reco = "Reco14c"
  19. sim_version = "Sim09f"
  20. elif (year=="2012"):
  21. E = 4000
  22. nu = "2.5"
  23. trigger = "0x409f0045"
  24. stripping = "21r0p1"
  25. reco = "Reco14c"
  26. sim_version = "Sim09f"
  27. elif (year=="2012spec"):
  28. year = "2012"
  29. E = 4000
  30. nu = "2.5"
  31. trigger = "0x4097003d" #Only for Kshort!
  32. stripping = "21r0p1"
  33. reco = "Reco14c"
  34. sim_version = "Sim09f"
  35. elif (year=="2015"):
  36. E = 6500
  37. nu = "1.6-25ns"
  38. trigger = "0x411400a2"
  39. stripping = "24"
  40. reco = "Reco15a/Turbo02"
  41. sim_version = "Sim09b"
  42. dst = "MDST"
  43. elif (year=="2016"):
  44. E = 6500
  45. nu = "1.6-25ns"
  46. trigger = "0x6138160F"
  47. stripping = "28"
  48. reco = "Reco16/Turbo03"
  49. sim_version = "Sim09c"
  50. dst = "MDST"
  51. script_opts = {"YEAR":year,"POL":polarity,"DATA_TYPE":"PHSP","ENERGY":E,"NU":nu,"TRIG":trigger,"STRIP":stripping,"CHAN":decay, "NUM":decay_number, "RECO":reco, "SIM": sim_version, "DST":dst }
  52. 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)sFiltered/Merge14/%(NUM)s/B2XMUMU.STRIP.%(DST)s" % script_opts
  53. return PATH
  54. def get_eff(decay = "Kplus", year = "2012", polarity = "Down"):
  55. command = "lb-run LHCbDirac/prod dirac-bookkeeping-rejection-stats -B " + str(get_path(decay,year,polarity))
  56. print command
  57. os.system(command)
  58. if __name__ == '__main__':
  59. get_eff()