PresentAllEnergies.C 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #include <TFile.h>
  2. #include <TStyle.h>
  3. #include <TSystem.h>
  4. #include <TROOT.h>
  5. #include <TCanvas.h>
  6. #include <TGraphErrors.h>
  7. #include <TMultiGraph.h>
  8. #include <TH1.h>
  9. #include <TH3.h>
  10. #include <TString.h>
  11. #include <TMath.h>
  12. #include <TLatex.h>
  13. #include <TPaveText.h>
  14. #include <TLegend.h>
  15. void SetTGraphStyle(TGraphErrors* grErr, int pid, int cent);
  16. void PresentAllEnergies() {
  17. int nPionKtBins = 7;
  18. int PionFitKtArray[7][2] = {{2,2}, {3,3}, {4,4}, {5,5}, {6,6}, {7,7}, {8,10}};
  19. int nKaonKtBins = 5;
  20. int KaonFitKtArray[5][2] = {{0,3}, {4,5}, {6,7}, {7,8}, {9,10}};
  21. double KtShift = 0.1;
  22. double KtStep = 0.1;
  23. double KtVal;
  24. double MtVal;
  25. int nBeamEnergies = 8;
  26. int nCentralities = 3;
  27. TString mKaonFileName[8][3];
  28. TString mPionFileName[8][3];
  29. for(int iEne=0; iEne<2; iEne++) {
  30. for(int iCent=0; iCent<2; iCent++) {
  31. int energy;
  32. int centrality;
  33. switch(iEne) {
  34. case 0:
  35. energy = 200;
  36. break;
  37. case 1:
  38. energy = 62;
  39. break;
  40. case 2:
  41. energy = 39;
  42. break;
  43. case 3:
  44. energy = 27;
  45. break;
  46. case 4:
  47. energy = 19;
  48. break;
  49. case 5:
  50. energy
  51. default:
  52. energy = 200;
  53. };
  54. switch(iCent) {
  55. case 0:
  56. centrality = 8;
  57. break;
  58. case 1:
  59. centrality = 5;
  60. break;
  61. default:
  62. centrality = 8;
  63. }
  64. //Kaons
  65. mKaonFileName[iEne][iCent] = "/oAuAu";
  66. mKaonFileName[iEne][iCent] += energy;
  67. mKaonFileName[iEne][iCent] += "_kaons_3d_cent";
  68. mKaonFileName[iEne][iCent] += centrality;
  69. mKaonFileName[iEne][iCent] += ".root";
  70. //Pions
  71. mPionFileName[iEne][iCent] = "../oAuAu";
  72. mPionFileName[iEne][iCent] += energy;
  73. mPionFileName[iEne][iCent] += "_pions_3d_cent";
  74. mPionFileName[iEne][iCent] += centrality;
  75. mPionFileName[iEne][iCent] += ".root";
  76. }
  77. }
  78. }