mercedesEventCutMonitor.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /***************************************************************************
  2. *
  3. * $Id: mercedesEventCutMonitor.h,v 1.2 2003/02/02 23:50:43 magestro Exp $
  4. *
  5. * Author: Mercedes Lopez Noriega , Ohio State, mercedes@pacific.mps.ohio-state.edu
  6. *
  7. ***************************************************************************
  8. *
  9. * Event Cut Monitor that plots just the tracks that passed
  10. * mercedesStarStandardEventCut in the multiplicity plot
  11. * Plots: EventMultiplicity (just # of tracks that passed the event cut),
  12. * ZVertexPosition, and 2D plot: EventMultiplicity vs Tracks (# of tracks that
  13. * passed the cuts vs # of tracks in the event)
  14. *
  15. ***************************************************************************
  16. *
  17. * $Log: mercedesEventCutMonitor.h,v $
  18. * Revision 1.2 2003/02/02 23:50:43 magestro
  19. * Added dummy Fill() functions to take care of compiler warning related to overloaded virtual functions
  20. *
  21. * Revision 1.1 2002/04/09 15:14:34 mercedes
  22. * Event Cut Monitor for mercedesStarStandardEventCut
  23. *
  24. *
  25. **************************************************************************/
  26. #ifndef mercedesEventCutMonitor_hh
  27. #define mercedesEventCutMonitor_hh
  28. #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
  29. #include "StHbtMaker/Infrastructure/StHbtEvent.hh"
  30. #include "StHbtMaker/Base/StHbtCutMonitor.hh"
  31. class mercedesEventCutMonitor : public StHbtCutMonitor{
  32. private:
  33. StHbt1DHisto* mEventMultHisto;
  34. StHbt1DHisto* mZVertexPosHisto;
  35. StHbt2DHisto* mEventMultvsTracks;
  36. public:
  37. mercedesEventCutMonitor();
  38. virtual ~mercedesEventCutMonitor();
  39. virtual StHbtString Report();
  40. virtual void Fill(const StHbtEvent* event);
  41. virtual void Finish();
  42. // These dummy Fill() functions were introduced to remove a compiler
  43. // warning related to overloaded base-class Fill() functions being
  44. // hidden by a single version of Fill() in this derived class
  45. void Fill(const StHbtParticleCollection* d) {;}
  46. void Fill(const StHbtEvent *d1, const StHbtParticleCollection* d2) {;}
  47. void Fill(const StHbtPair* d) {;}
  48. void Fill(const StHbtKink* d) {;}
  49. void Fill(const StHbtV0* d) {;}
  50. void Fill(const StHbtTrack* d) {;}
  51. StHbt1DHisto* EventMultHisto() {return mEventMultHisto;}
  52. StHbt1DHisto* ZVertexPosHisto() {return mZVertexPosHisto;}
  53. StHbt2DHisto* EventMultvsTracks() {return mEventMultvsTracks;}
  54. #ifdef __ROOT__
  55. ClassDef(mercedesEventCutMonitor, 1)
  56. #endif
  57. };
  58. #endif