HistoCollector3D.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef HistoCollector3D_h
  2. #define HistoCollector3D_h
  3. #include <TFile.h>
  4. #include <TSystem.h>
  5. #include <TH3.h>
  6. #include <TString.h>
  7. #include <TAttMarker.h>
  8. #include <iostream>
  9. #include <vector>
  10. using namespace std;
  11. //_________________
  12. class HistoCollector3D {
  13. public:
  14. HistoCollector3D();
  15. ~HistoCollector3D();
  16. void SetQinvBins(int qInvBins, double qInvLo, double qInvHi) {mQinvBins=qInvBins;mQinvLo=qInvLo;mQinvHi=qInvHi;}
  17. void SetPartType(int type) {mPartType=type;}
  18. //void SetCentBins(int bins) {mCentBins=bins;}
  19. void SetKtBins(int bins) {mKtBins=bins;}
  20. void SetFileName(const char *name) {mFileName = name;}
  21. void LoadData();
  22. TH3F *BuildKt3DNum(int charge, int binLo, int binHi);
  23. TH3F *BuildKt3DDen(int charge, int binLo, int binHi);
  24. TH3F *BuildKt3DQinv(int charge, int binLo, int binHi);
  25. private:
  26. void OpenFile();
  27. void ReadHistograms();
  28. TFile *mFile;
  29. int mKtBins;
  30. const char *mFileName;
  31. int mQinvBins;
  32. double mQinvLo;
  33. double mQinvHi;
  34. int mPartType;
  35. std::vector<TH3F *> h3DNum;
  36. std::vector<TH3F *> h3DDen;
  37. std::vector<TH3F *> h3DQinv;
  38. };
  39. #endif