StSphericity.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef STSPHERICITY_HH
  2. #define STSPHERICITY_HH
  3. #include <iostream>
  4. #include "StMaker.h"
  5. #include "StChain.h"
  6. #include "TChain.h"
  7. #include "TSystem.h"
  8. #include "TH1.h"
  9. #include "TH2.h"
  10. #include "TH3.h"
  11. #include "TProfile.h"
  12. #include "StFemtoDstMaker/StFemtoEvent.h"
  13. #include <string>
  14. #include <stdlib.h>
  15. class StSphericity : public StMaker
  16. {
  17. public:
  18. StSphericity(const char *aDirName,
  19. const char *aFileName,
  20. const char *aFilter = ".",
  21. int aMaxFiles = 10000);
  22. void AddTrigId(unsigned int aTrigId);
  23. int GetNEvents();
  24. Int_t Init();
  25. Int_t Make();
  26. Int_t Finish();
  27. void SetOutFileName(const char *oFileName) {outFileName = oFileName;}
  28. void SetTrigger(unsigned int trig, char mode);
  29. private:
  30. string dir;
  31. string fileName;
  32. string filter;
  33. unsigned int eventId;
  34. unsigned int nEvents;
  35. TFile *outFile;
  36. TChain *chain;
  37. TTree *tree;
  38. StFemtoEvent *femtoEvent;
  39. const char *outFileName;
  40. std::vector<unsigned int> mTrigIdCol;
  41. unsigned int mTrig;
  42. TH1F *hEta;
  43. TH1F *hPhi;
  44. TH2F *hEtaPhi;
  45. TH2F *hDEtaDPhi;
  46. TH3F *hDEtaDPhiNPairs;
  47. TH2F *hDEtaDPhi_lo_sph; // sphericity < 0.1 "jet-like" events
  48. TH2F *hDEtaDPhi_hi_sph; // sphericity > 0.9 isotropic
  49. TH1F *hSphericity;
  50. int maxFiles;
  51. int InitRead(string aDir, string aFileName,
  52. string aFilter, int aMaxFiles);
  53. int FillChain(TChain *aChain, const char *aFileName, int aMaxFiles);
  54. int FillChain(TChain *aChain, char *aDir, const char *aFilter, int aMaxFiles);
  55. void UninitRead();
  56. ClassDef(StSphericity, 1)
  57. };
  58. #endif