Oscar97QA.h 729 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef Oscar97QA_h
  2. #define Oscar97QA_h
  3. #include "Oscar97Event.h"
  4. #include <TFile.h>
  5. #include <TTree.h>
  6. #include <TMath.h>
  7. #include <TH1F.h>
  8. #include <TH2F.h>
  9. #include <iostream>
  10. #define BFSZ 0xFF
  11. class Oscar97QA {
  12. public:
  13. Oscar97QA(const char *inFileList = "root.list",
  14. const char *outFile = "qa.root");
  15. void MakeQA();
  16. bool GetError();
  17. void SetDebug(bool val);
  18. private:
  19. bool mError;
  20. bool mDebug;
  21. FILE *mListFile;
  22. TFile *mOut;
  23. //
  24. // Histograms
  25. //
  26. // event
  27. TH1D *hImpPar;
  28. // track
  29. TH1D *hPx;
  30. TH1D *hPy;
  31. TH1D *hPz;
  32. TH1D *hPt;
  33. TH1D *hXfr;
  34. TH1D *hYfr;
  35. TH1D *hZfr;
  36. TH1D *hTfr;
  37. TH1D *hEnergy;
  38. TH2D *hMSqrVsPt;
  39. TH1D *hEta;
  40. void ReadFile(const char *file);
  41. };
  42. #endif