HitMergingPairCut.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /***************************************************************************
  2. *
  3. * $Id: HitMergingPairCut.h,v 1.1 2001/12/14 23:11:27 fretiere Exp $
  4. *
  5. * Author: Fabrice Retiere
  6. ***************************************************************************
  7. *
  8. * Description: Allow to cut on hit merging
  9. * Usage :
  10. * HitMergingPairCut* pairCut = new HitMergingPairCut();
  11. * pairCut->setDefaultHalfFieldMergingPar();
  12. * pairCut->setMaxFracOfMergedRow(MaxMergedHit);
  13. *
  14. ***************************************************************************
  15. *
  16. * $Log: HitMergingPairCut.h,v $
  17. * Revision 1.1 2001/12/14 23:11:27 fretiere
  18. * Add class HitMergingCut. Add class fabricesPairCut = HitMerginCut + pair purity cuts. Add TpcLocalTransform function which convert to local tpc coord (not pretty). Modify StHbtTrack, StHbtParticle, StHbtHiddenInfo, StHbtPair to handle the hit information and cope with my code
  19. *
  20. *
  21. **************************************************************************/
  22. #ifndef HitMergingPairCut_hh
  23. #define HitMergingPairCut_hh
  24. // do I need these lines ?
  25. //#ifndef StMaker_H
  26. //#include "StMaker.h"
  27. //#endif
  28. #include "StHbtMaker/Base/StHbtPairCut.h"
  29. class ostrstream;
  30. class HitMergingPairCut : public StHbtPairCut{
  31. public:
  32. HitMergingPairCut();
  33. HitMergingPairCut(const HitMergingPairCut&);
  34. //~HitMergingPairCut();
  35. virtual bool Pass(const StHbtPair*);
  36. virtual StHbtString Report();
  37. HitMergingPairCut* Clone();
  38. void setMaxFracOfMergedRow(double aMaxFracPair);
  39. void setMergingPar(double aMaxDuInner, double aMaxDzInner,
  40. double aMaxDuOuter, double aMaxDzOuter);
  41. void setDefaultHalfFieldMergingPar();
  42. void setDefaultFullFieldMergingPar();
  43. virtual ostrstream* finalReport() const;
  44. protected:
  45. long mNPairsPassed;
  46. long mNPairsFailed;
  47. double mMaxFracPair;
  48. #ifdef __ROOT__
  49. ClassDef(HitMergingPairCut, 1)
  50. #endif
  51. };
  52. inline HitMergingPairCut::HitMergingPairCut(const HitMergingPairCut& c) : StHbtPairCut(c) {
  53. mNPairsPassed = 0;
  54. mNPairsFailed = 0;
  55. }
  56. inline HitMergingPairCut* HitMergingPairCut::Clone() { HitMergingPairCut* c = new HitMergingPairCut(*this); return c;}
  57. inline void HitMergingPairCut::setMaxFracOfMergedRow(double aMaxFracPair){
  58. mMaxFracPair=aMaxFracPair;
  59. }
  60. #endif