OpenAngPairCut.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /***************************************************************************
  2. *
  3. * $Id: OpenAngPairCut.h,v 1.1 2000/10/26 16:09:11 lisa Exp $
  4. *
  5. * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu
  6. ***************************************************************************
  7. *
  8. * Description: part of STAR HBT Framework: StHbtMaker package
  9. * cut on nominal Opening angle of the pair - for dealing with track merging
  10. *
  11. ***************************************************************************
  12. *
  13. * $Log: OpenAngPairCut.h,v $
  14. * Revision 1.1 2000/10/26 16:09:11 lisa
  15. * Added OpeningAngle PairCut class and method to StHbtPair
  16. *
  17. *
  18. **************************************************************************/
  19. #ifndef OpenAngPairCut_hh
  20. #define OpenAngPairCut_hh
  21. #include "StHbtMaker/Base/StHbtPairCut.h"
  22. class OpenAngPairCut : public StHbtPairCut{
  23. public:
  24. OpenAngPairCut();
  25. OpenAngPairCut(const OpenAngPairCut&);
  26. //~OpenAngPairCut();
  27. virtual bool Pass(const StHbtPair*);
  28. virtual StHbtString Report();
  29. OpenAngPairCut* Clone();
  30. void SetOpenAngRange(const double& Lo, const double& Hi);
  31. private:
  32. long mNPairsPassed;
  33. long mNPairsFailed;
  34. double mLo;
  35. double mHi;
  36. #ifdef __ROOT__
  37. ClassDef(OpenAngPairCut, 1)
  38. #endif
  39. };
  40. inline OpenAngPairCut::OpenAngPairCut(const OpenAngPairCut& c) : StHbtPairCut(c) {
  41. mNPairsPassed = 0;
  42. mNPairsFailed = 0;
  43. }
  44. inline OpenAngPairCut* OpenAngPairCut::Clone() { OpenAngPairCut* c = new OpenAngPairCut(*this); return c;}
  45. #endif