ProcessMesons1D.C 755 B

12345678910111213141516171819202122232425262728293031
  1. #include "HistoCollector1D.h"
  2. #include <TCanvas.h>
  3. #include <TLegend.h>
  4. #include <TMath.h>
  5. #include <TROOT.h>
  6. //_________________
  7. void ProcessMesons1D() {
  8. int PartType = 4;
  9. //gROOT->ProcessLine(".L HistoCollector1D.cxx+");
  10. HistoCollector1D mHistoCollector;
  11. int qInvBins = 40;
  12. double qInvLo = 0.;
  13. double qInvHi = 0.4;
  14. int NCentBins = 9;
  15. int NKtBins = 24;
  16. const char* fname = "auau200_kaons_1d.root";
  17. mHistoCollector.SetFileName(fname);
  18. mHistoCollector.SetQinvBins(qInvBins,qInvLo,qInvHi);
  19. mHistoCollector.SetPartType(PartType);
  20. mHistoCollector.SetCentBins(NCentBins);
  21. mHistoCollector.SetKtBins(NKtBins);
  22. mHistoCollector.LoadData();
  23. TH1F *hCorrFctn = mHistoCollector.BuildCentKtCF(1,8,8,10,12);
  24. hCorrFctn->Draw();
  25. }