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.

49 lines
1.7 KiB

  1. #include "../Paths.hpp"
  2. //Overloaded in case year is int or string
  3. //g++ getPathForPython.cc `root-config --libs --cflags` -o getPathForPython
  4. int main(int argc, char* argv[])
  5. {
  6. char *command = argv[1];
  7. string year(argv[2]);
  8. int Run = int(argv[3][0]-48); //48 is zero, not ideall, but if it works...
  9. string magnet(argv[4]);
  10. int Preselected = int(argv[5][0]-48);
  11. int MC = int(argv[6][0]-48);
  12. int ReferenceChannel = int(argv[7][0]-48);
  13. int PHSP = int(argv[8][0]-48);
  14. int KshortDecayInVelo = int(argv[9][0]-48);
  15. int Selection = int(argv[10][0]-48);
  16. int UseLowQ2Range = int(argv[11][0]-48);
  17. // ofstream myfileOutput(thePath+"/tmpPathForPython.txt",ios::trunc); //rewrites the old content
  18. if (strcmp(command, "input") == 0){
  19. cout << GetInputFile(year,magnet,Preselected,MC,ReferenceChannel,PHSP,false, false, false, false) <<endl;
  20. // myfileOutput << GetInputFile(year,magnet,Preselected,MC,ReferenceChannel,PHSP,false) << endl;
  21. return 0;
  22. }
  23. else if (strcmp(command, "BDTinput") == 0){
  24. cout <<GetBDTinputFile(year,MC,ReferenceChannel,PHSP,KshortDecayInVelo)<<endl;
  25. // myfileOutput << GetBDTinputFile(year,MC,ReferenceChannel,PHSP,KshortDecayInVelo) << endl;
  26. return 0;
  27. }
  28. else if (strcmp(command, "inputBkg") == 0){
  29. // TODO myfileOutput << GetInputFileBkg() << endl;
  30. }
  31. else if (strcmp(command, "BDToutput") == 0){
  32. cout << GetBDToutputFile(year,Run,MC,ReferenceChannel,PHSP,KshortDecayInVelo,UseLowQ2Range, false) <<endl;
  33. // myfileOutput << GetBDToutputFile (year,Run,Selection,MC,ReferenceChannel,PHSP,UseLowQ2Range) << endl;
  34. return 0;
  35. }
  36. else return 1; //in python, 0 is OK, 1 is wroooong
  37. }