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.

56 lines
1.6 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 = 12143401
  11. if (decay=="Kshort"): decay_number = 12145102
  12. if (year=="2011"):
  13. E = 3500
  14. nu = 2
  15. trigger = "0x40760037"
  16. stripping = "21r1"
  17. reco = "Reco14c"
  18. elif (year=="2012"):
  19. E = 4000
  20. nu = 2.5
  21. trigger = "0x409f0045"
  22. stripping = "21"
  23. reco = "Reco14c"
  24. elif (year=="2015"):
  25. E = 6500
  26. nu = "1.6-25ns"
  27. trigger = "0x411400a2"
  28. stripping = "24"
  29. reco = "Reco15a/Turbo02"
  30. sim_version = "Sim09b"
  31. dst = "MDST"
  32. elif (year=="2016"):
  33. E = 6500
  34. nu ="1.6-25ns"
  35. trigger = "0x409f0045"
  36. stripping = "28"
  37. reco = "Reco15a/Turbo02"
  38. sim_version = "Sim09c"
  39. dst = "MDST"
  40. 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}
  41. 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
  42. return PATH
  43. def get_eff(decay = "Kplus", year = "2012", polarity = "Down"):
  44. command = "lb-run LHCbDirac/prod dirac-bookkeeping-rejection-stats -B " + str(get_path(decay,year,polarity))
  45. print command
  46. os.system(command)
  47. if __name__ == '__main__':
  48. get_eff()