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.

73 lines
2.7 KiB

  1. //Renata Kopecna
  2. #include "RunningScripts.hh"
  3. #include <string.h>
  4. #include <helpers.hh>
  5. #include "ScriptHelpers.hh"
  6. int runWhatever(basic_params pars, basic_actions acts){
  7. int status = 0;
  8. for (auto obs: ANG_OBS){
  9. plotComparison(obs);
  10. plotComparisonMCFolding(obs);
  11. }
  12. // plotComparisonFull();
  13. // plotComparisonSigmas();
  14. // foldingTable();
  15. //return loadAllFiles("S3",pars);
  16. //return loadAllFiles("Fl",pars);
  17. //for(auto obs: ANG_OBS) loadAllFiles(obs,pars);
  18. return 0;
  19. bool toyEval = true;
  20. bool loopFolds = pars.folding == 5;
  21. bool onlySig = isInVec(pars.jobID,{531, 532, 533, 534, 535, 536, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595});
  22. bool onlyBkg = isInVec(pars.jobID,{546, 547, 548, 549, 550, 551});
  23. bool sWave = isInVec(pars.jobID,{496, 497, 498, 531, 532, 533, 534, 535, 536, 558, 559, 560, 561, 562, 563, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650});
  24. bool bMass = isInVec(pars.jobID,{496, 497, 498, 572, 573, 574, 575, 576, 577, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 626, 627, 628, 629, 649, 650});
  25. if(toyEval){
  26. //bool doPulls = true;
  27. std::vector<std::string> variables = {};
  28. std::vector<std::string> names = {};
  29. if(!onlyBkg){
  30. variables = merge_two_vecs(variables,ANG_OBS);
  31. names = merge_two_vecs(names,ANG_OBS_TLaTeX);
  32. }
  33. if(false){
  34. variables = merge_two_vecs(variables,P_OBS);
  35. names = merge_two_vecs(names,P_OBS_TLaTeX);
  36. }
  37. if(false){
  38. variables = merge_two_vecs(variables,MASS_OBS);
  39. names = merge_two_vecs(names,MASS_OBS_TLaTeX);
  40. }
  41. if(!onlySig){
  42. variables = merge_two_vecs(variables,BKG_OBS);
  43. names = merge_two_vecs(names,BKG_OBS_TLaTeX);
  44. }
  45. if (sWave){
  46. variables = merge_two_vecs(variables,SWAVE);
  47. names = merge_two_vecs(names,SWAVE_TLaTeX);
  48. }
  49. if (bMass || pars.reference){
  50. variables = merge_two_vecs(variables,{"m_b"});
  51. names = merge_two_vecs(names,{"m_{B^{+}}"});
  52. }
  53. if (pars.reference){
  54. variables = merge_two_vecs(variables,{"m_sigma_1"});
  55. names = merge_two_vecs(names,{"\\sigma_{1}"});
  56. }
  57. return EvaluateToyStudy(variables, names, pars, loopFolds, true, false, onlySig, onlyBkg) + EvaluateToyStudy(variables, names, pars, loopFolds, false, false, onlySig, onlyBkg);
  58. }
  59. return status;
  60. }