fxtTrackCutMonitor.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef fxtTrackCutMonitor_hh
  2. #define fxtTrackCutMonitor_hh
  3. class StHbtTrack;
  4. #include "StHbtMaker/Infrastructure/StHbtHisto.hh"
  5. #include "StHbtMaker/Base/StHbtCutMonitor.hh"
  6. //_________________
  7. class fxtTrackCutMonitor : public StHbtCutMonitor {
  8. private:
  9. StHbt1FHisto* mDCAGlobal;
  10. StHbt1FHisto* mNhits;
  11. StHbt1FHisto* mP;
  12. StHbt1FHisto* mPt;
  13. StHbt2FHisto* mPtVsNsigmaPion;
  14. StHbt2FHisto* mPtVsNsigmaKaon;
  15. StHbt2FHisto* mPtVsNsigmaProton;
  16. StHbt2FHisto* mPvsDedx;
  17. StHbt1FHisto* mRapidity;
  18. StHbt1FHisto* mPseudoRapidity;
  19. StHbt2FHisto* mPvsMassSqr;
  20. StHbt2FHisto* mPvsInvBeta;
  21. #ifdef TPC_DNDX
  22. StHbt2FHisto* mPtVsDndxNsigmaPion;
  23. StHbt2FHisto* mPtVsDndxNsigmaKaon;
  24. StHbt2FHisto* mPtVsDndxNsigmaProton;
  25. StHbt2FHisto* mPvsDndx;
  26. #endif
  27. double monMass;
  28. public:
  29. fxtTrackCutMonitor(const char*, const double); // default constructor
  30. fxtTrackCutMonitor( const fxtTrackCutMonitor& cutMoni);
  31. virtual ~fxtTrackCutMonitor();
  32. virtual void Fill(const StHbtTrack* track);
  33. // These dummy Fill() functions were introduced to remove a compiler
  34. // warning related to overloaded base-class Fill() functions being
  35. // hidden by a single version of Fill() in this derived class
  36. void Fill(const StHbtParticleCollection* d) {;}
  37. void Fill(const StHbtEvent *d1, const StHbtParticleCollection* d2) {;}
  38. void Fill(const StHbtPair* d) {;}
  39. void Fill(const StHbtKink* d) {;}
  40. void Fill(const StHbtV0* d) {;}
  41. void Fill(const StHbtEvent* d) {;}
  42. StHbt1FHisto* DCAGlobal() { return mDCAGlobal; }
  43. StHbt1FHisto* Nhits() { return mNhits; }
  44. StHbt1FHisto* P() { return mP; }
  45. StHbt1FHisto* Pt() { return mPt; }
  46. StHbt2FHisto* PtVsNsigmaPion() { return mPtVsNsigmaPion; }
  47. StHbt2FHisto* PtVsNsigmaKaon() { return mPtVsNsigmaKaon; }
  48. StHbt2FHisto* PtVsNsigmaProton() {return mPtVsNsigmaProton; }
  49. StHbt2FHisto* PvsDedx() { return mPvsDedx; }
  50. StHbt1FHisto* Rapidity() { return mRapidity; }
  51. StHbt1FHisto* PseudoRapidity() { return mPseudoRapidity; }
  52. StHbt2FHisto* PvsMassSqr() { return mPvsMassSqr; }
  53. StHbt2FHisto* PvsInvBeta() {return mPvsInvBeta; }
  54. #ifdef TPC_DNDX
  55. StHbt2FHisto* PtVsDndxNsigmaPion() { return mPtVsDndxNsigmaPion;}
  56. StHbt2FHisto* PtVsDndxNsigmaKaon() { return mPtVsDndxNsigmaKaon;}
  57. StHbt2FHisto* PtVsDndxNsigmaProton() { return mPtVsDndxNsigmaProton;}
  58. StHbt2FHisto* PvsDndx() { return mPvsDndx;}
  59. #endif
  60. #ifdef __ROOT__
  61. ClassDef(fxtTrackCutMonitor, 2)
  62. #endif
  63. };
  64. #endif