gregsFemtoDstEventCut.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef gregsFemtoDstEventCut_h
  2. #define gregsFemtoDstEventCut_h
  3. #include "StHbtMaker/Base/StHbtEventCut.h"
  4. //_________________
  5. class gregsFemtoDstEventCut : public StHbtEventCut {
  6. public:
  7. gregsFemtoDstEventCut();
  8. gregsFemtoDstEventCut(const gregsFemtoDstEventCut& copy);
  9. gregsFemtoDstEventCut *Clone(void);
  10. ~gregsFemtoDstEventCut();
  11. //Setters
  12. void SetEventMult(const int& lo, const int& hi) {mRefMult[0]=lo;mRefMult[1]=hi;}
  13. void SetVertXPos(const float& lo, const float& hi) {mVtxX[0]=lo; mVtxX[1]=hi;}
  14. void SetVertYPos(const float& lo, const float& hi) {mVtxY[0]=lo; mVtxY[1]=hi;}
  15. void SetVertZPos(const float& lo, const float& hi) {mVtxZ[0]=lo; mVtxZ[1]=hi;}
  16. void SetVertXYShift(const float& xShift, const float& yShift) {mVtxXShift=xShift;mVtxYShift=yShift;}
  17. void SetVertRPos(const float& v) {mVtxR=v;}
  18. void SetCollisionType(const int& type) {mCollisionType=type;} //0-pp; 1-AuAu
  19. void SetVzVpdVzDiff(const float& lo, const float& hi) {mVzVpdVzDiff[0]=lo;mVzVpdVzDiff[1]=hi;}
  20. //The values from StRefMultCorr
  21. void SetEventCentralityBins(const int& lo, const int& hi) {mCentralityBinRange[0]=lo;mCentralityBinRange[1]=hi;}
  22. void SetCentralityDefinition(const int& nCentralityBins) {mNumberOfCentralityBins=nCentralityBins;}
  23. //Getters
  24. int NEventsPassed() {return mNEventsPassed;}
  25. int NEventsFailed() {return mNEventsFailed;}
  26. virtual string Report();
  27. virtual bool Pass(const StHbtEvent*);
  28. private:
  29. int mRefMult[2];
  30. float mVtxX[2];
  31. float mVtxY[2];
  32. float mVtxZ[2];
  33. float mVtxR;
  34. float mVzVpdVzDiff[2];
  35. int mCollisionType; //0-pp; 1-AuAu
  36. float mVtxXShift;
  37. float mVtxYShift;
  38. //Centrality definitions for AuAu
  39. int mNumberOfCentralityBins; //9 or 16 centrality bins
  40. int mCentralityBinRange[2];
  41. long mNEventsPassed;
  42. long mNEventsFailed;
  43. #ifdef __ROOT__
  44. ClassDef(gregsFemtoDstEventCut, 1)
  45. #endif
  46. };
  47. inline gregsFemtoDstEventCut* gregsFemtoDstEventCut::Clone() {
  48. gregsFemtoDstEventCut *c = new gregsFemtoDstEventCut(*this);
  49. return c;
  50. }
  51. #endif