mikesPairCut.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /***************************************************************************
  2. *
  3. * $Id: mikesPairCut.h,v 1.5 2000/03/23 22:57:28 laue 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. * a do-nothing pair cut that simply says "true" to every pair
  10. *
  11. ***************************************************************************
  12. *
  13. * $Log: mikesPairCut.h,v $
  14. * Revision 1.5 2000/03/23 22:57:28 laue
  15. * Clone() function implemented
  16. *
  17. * Revision 1.4 2000/01/25 17:35:03 laue
  18. * I. In order to run the stand alone version of the StHbtMaker the following
  19. * changes have been done:
  20. * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
  21. * b) unnecessary includes of StMaker.h have been removed
  22. * c) the subdirectory StHbtMaker/doc/Make has been created including everything
  23. * needed for the stand alone version
  24. *
  25. * II. To reduce the amount of compiler warning
  26. * a) some variables have been type casted
  27. * b) some destructors have been declared as virtual
  28. *
  29. * Revision 1.3 1999/10/15 01:57:05 lisa
  30. * Important enhancement of StHbtMaker - implement Franks CutMonitors
  31. * ----------------------------------------------------------
  32. * This means 3 new files in Infrastructure area (CutMonitor),
  33. * several specific CutMonitor classes in the Cut area
  34. * and a new base class in the Base area (StHbtCutMonitor).
  35. * This means also changing all Cut Base class header files from .hh to .h
  36. * so we have access to CutMonitor methods from Cint command line.
  37. * This last means
  38. * 1) files which include these header files are slightly modified
  39. * 2) a side benefit: the TrackCuts and V0Cuts no longer need
  40. * a SetMass() implementation in each Cut class, which was stupid.
  41. * Also:
  42. * -----
  43. * Include Franks StHbtAssociationReader
  44. * ** None of these changes should affect any user **
  45. *
  46. * Revision 1.2 1999/07/06 22:33:21 lisa
  47. * Adjusted all to work in pro and new - dev itself is broken
  48. *
  49. * Revision 1.1.1.1 1999/06/29 16:02:56 lisa
  50. * Installation of StHbtMaker
  51. *
  52. **************************************************************************/
  53. #ifndef mikesPairCut_hh
  54. #define mikesPairCut_hh
  55. // do I need these lines ?
  56. //#ifndef StMaker_H
  57. //#include "StMaker.h"
  58. //#endif
  59. #include "StHbtMaker/Base/StHbtPairCut.h"
  60. class mikesPairCut : public StHbtPairCut{
  61. public:
  62. mikesPairCut();
  63. mikesPairCut(const mikesPairCut&);
  64. //~mikesPairCut();
  65. virtual bool Pass(const StHbtPair*);
  66. virtual StHbtString Report();
  67. mikesPairCut* Clone();
  68. private:
  69. long mNPairsPassed;
  70. long mNPairsFailed;
  71. #ifdef __ROOT__
  72. ClassDef(mikesPairCut, 1)
  73. #endif
  74. };
  75. inline mikesPairCut::mikesPairCut(const mikesPairCut& c) : StHbtPairCut(c) {
  76. mNPairsPassed = 0;
  77. mNPairsFailed = 0;
  78. }
  79. inline mikesPairCut* mikesPairCut::Clone() { mikesPairCut* c = new mikesPairCut(*this); return c;}
  80. #endif