trackCutMonitor_P_vs_Dedx.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef trackCutMonitor_P_vs_Dedx_hh
  2. #define trackCutMonitor_P_vs_Dedx_hh
  3. #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
  4. #include "StHbtMaker/Infrastructure/StHbtTrack.hh"
  5. #include "StHbtMaker/Base/StHbtCutMonitor.hh"
  6. #include "TH1.h"
  7. #include "TH2.h"
  8. #include "TH2F.h"
  9. class trackCutMonitor_P_vs_Dedx : public StHbtCutMonitor {
  10. private:
  11. TH2F* mHisto;
  12. int mCharge;
  13. public:
  14. trackCutMonitor_P_vs_Dedx(); // default constructor
  15. trackCutMonitor_P_vs_Dedx(const trackCutMonitor_P_vs_Dedx&); // copy constructor
  16. trackCutMonitor_P_vs_Dedx(const trackCutMonitor_P_vs_Dedx&, int charge); // copy constructor with charge setting
  17. trackCutMonitor_P_vs_Dedx(int charge);
  18. //added by gnigmat
  19. trackCutMonitor_P_vs_Dedx(int charge, const char* TitCutMoni);
  20. trackCutMonitor_P_vs_Dedx(int charge, const char* TitCutMoni, const char* title,
  21. int nbins1 ,double min1, double max1,
  22. int nbins2 ,double min2, double max2);
  23. virtual ~trackCutMonitor_P_vs_Dedx();
  24. virtual void Fill(const StHbtTrack* track);
  25. TH2F* Histo() {return mHisto;}
  26. // These dummy Fill() functions were introduced to remove a compiler
  27. // warning related to overloaded base-class Fill() functions being
  28. // hidden by a single version of Fill() in this derived class
  29. void Fill(const StHbtParticleCollection* d) {;}
  30. void Fill(const StHbtEvent *d1, const StHbtParticleCollection* d2) {;}
  31. void Fill(const StHbtPair* d) {;}
  32. void Fill(const StHbtKink* d) {;}
  33. void Fill(const StHbtV0* d) {;}
  34. void Fill(const StHbtEvent* d) {;}
  35. #ifdef __ROOT__
  36. ClassDef(trackCutMonitor_P_vs_Dedx, 1)
  37. #endif
  38. };
  39. #endif