adamsTrackCut.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /***************************************************************************
  2. *
  3. * $Id:
  4. *
  5. * Author: Frank Laue, Ohio State, laue@mps.ohio-state.edu
  6. ***************************************************************************
  7. *
  8. * Description: part of STAR HBT Framework: StHbtMaker package
  9. * a particle cut that uses NSigma cut below certain P threshhold
  10. # and a PID probability above it
  11. *
  12. ***************************************************************************
  13. *
  14. * $Log:
  15. *
  16. **************************************************************************/
  17. #ifndef adamsTrackCut_hh
  18. #define adamsTrackCut_hh
  19. //#ifndef StMaker_H
  20. //#include "StMaker.h"
  21. //#endif
  22. #include "Stsstream.h"
  23. #include "StHbtMaker/Base/StHbtTrackCut.h"
  24. #include "StHbtMaker/Cut/franksTrackCut.h"
  25. class adamsTrackCut : public franksTrackCut
  26. {
  27. public:
  28. adamsTrackCut();
  29. adamsTrackCut(adamsTrackCut& );
  30. ~adamsTrackCut();
  31. virtual bool Pass(const StHbtTrack*);
  32. virtual StHbtString Report();
  33. void SetPIDPThreshold(const float&);
  34. adamsTrackCut* Clone();
  35. ostrstream* finalReport() const;
  36. private: // here are the quantities I want to cut on...
  37. float mPIDPThreshold;
  38. protected:
  39. long mNTracksPassed;
  40. long mNTracksFailed;
  41. #ifdef __ROOT__
  42. ClassDef(adamsTrackCut, 1)
  43. #endif
  44. };
  45. inline void adamsTrackCut::SetPIDPThreshold(const float& pidpt){mPIDPThreshold = pidpt;}
  46. inline adamsTrackCut* adamsTrackCut::Clone() { adamsTrackCut* c = new adamsTrackCut(*this); return c;}
  47. #endif