ManyPairCuts.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /***************************************************************************
  2. *
  3. * $Id: ManyPairCuts.h,v 1.1 2000/07/31 01:19:24 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. * ManyPairCuts is a StHbtPairCut that simply owns a collection
  10. * of StHbtPairCut objects, and returns the AND of their return values
  11. *
  12. ***************************************************************************
  13. *
  14. * $Log: ManyPairCuts.h,v $
  15. * Revision 1.1 2000/07/31 01:19:24 lisa
  16. * add PairCut which contains collection of PairCuts - also 3D bertsch-pratt CorrFctn
  17. *
  18. *
  19. **************************************************************************/
  20. #ifndef ManyPairCuts_hh
  21. #define ManyPairCuts_hh
  22. #include "StHbtMaker/Infrastructure/StHbtPairCutCollection.hh"
  23. #include "StHbtMaker/Base/StHbtPairCut.h"
  24. class ManyPairCuts : public StHbtPairCut{
  25. public:
  26. ManyPairCuts();
  27. ManyPairCuts(const ManyPairCuts&);
  28. //~ManyPairCuts();
  29. virtual bool Pass(const StHbtPair*);
  30. virtual StHbtString Report();
  31. ManyPairCuts* Clone();
  32. void AddPairCut(StHbtPairCut*);
  33. private:
  34. long mNPairsPassed;
  35. long mNPairsFailed;
  36. StHbtPairCutCollection mPairCutCollection;
  37. #ifdef __ROOT__
  38. ClassDef(ManyPairCuts, 0)
  39. #endif
  40. };
  41. inline ManyPairCuts::ManyPairCuts(const ManyPairCuts& c) : StHbtPairCut(c) {
  42. mNPairsPassed = 0;
  43. mNPairsFailed = 0;
  44. }
  45. inline ManyPairCuts* ManyPairCuts::Clone() { ManyPairCuts* c = new ManyPairCuts(*this); return c;}
  46. inline void ManyPairCuts::AddPairCut(StHbtPairCut* pc){mPairCutCollection.push_back(pc);}
  47. #endif