mikesPairCut.cxx 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /***************************************************************************
  2. *
  3. * $Id: mikesPairCut.cxx,v 1.3 2000/01/25 17:35:02 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.cxx,v $
  14. * Revision 1.3 2000/01/25 17:35:02 laue
  15. * I. In order to run the stand alone version of the StHbtMaker the following
  16. * changes have been done:
  17. * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
  18. * b) unnecessary includes of StMaker.h have been removed
  19. * c) the subdirectory StHbtMaker/doc/Make has been created including everything
  20. * needed for the stand alone version
  21. *
  22. * II. To reduce the amount of compiler warning
  23. * a) some variables have been type casted
  24. * b) some destructors have been declared as virtual
  25. *
  26. * Revision 1.2 1999/07/06 22:33:21 lisa
  27. * Adjusted all to work in pro and new - dev itself is broken
  28. *
  29. * Revision 1.1.1.1 1999/06/29 16:02:56 lisa
  30. * Installation of StHbtMaker
  31. *
  32. **************************************************************************/
  33. #include "StHbtMaker/Cut/mikesPairCut.h"
  34. #include <string>
  35. #include <cstdio>
  36. #ifdef __ROOT__
  37. ClassImp(mikesPairCut)
  38. #endif
  39. //__________________
  40. mikesPairCut::mikesPairCut(){
  41. mNPairsPassed = mNPairsFailed = 0;
  42. }
  43. //__________________
  44. //mikesPairCut::~mikesPairCut(){
  45. // /* no-op */
  46. //}
  47. //__________________
  48. bool mikesPairCut::Pass(const StHbtPair* pair){
  49. bool temp = true;
  50. temp ? mNPairsPassed++ : mNPairsFailed++;
  51. return true;
  52. }
  53. //__________________
  54. StHbtString mikesPairCut::Report(){
  55. string Stemp = "Mikes Pair Cut - total dummy-- always returns true\n";
  56. char Ctemp[100];
  57. sprintf(Ctemp,"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
  58. Stemp += Ctemp;
  59. StHbtString returnThis = Stemp;
  60. return returnThis;
  61. }
  62. //__________________