StHbtMcEventReader.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef StHbtMcEventReader_hh
  2. #define StHbtMcEventReader_hh
  3. #include <ctime>
  4. #include "StMaker.h"
  5. #include "StHbtMaker/Infrastructure/StHbtCheckPdgIdList.h"
  6. #include "StHbtMaker/Base/StHbtEventReader.hh"
  7. #include "StHbtMaker/Base/StHbtEventCut.h"
  8. #include "StHbtMaker/Base/StHbtTrackCut.h"
  9. #include "StHbtMaker/Base/StHbtV0Cut.h"
  10. class StHbtMcEventReader : public StHbtEventReader, public StHbtCheckPdgIdList {
  11. private:
  12. // pointers to other makers
  13. StMaker* mTheMcEventMaker; //! this is the chain where the StEventReaderMaker is
  14. long mV0; //! Number of v0s looked at to date
  15. time_t timeStamp; // to display the time/event
  16. StHbt3DHisto* mMotherMinvYPt;
  17. StHbt3DHisto* mMotherMinvYMt;
  18. StHbt3DHisto* mMotherMinvEtaPt;
  19. protected:
  20. public:
  21. StHbtMcEventReader();
  22. ~StHbtMcEventReader();
  23. StHbtEvent* ReturnHbtEvent();
  24. StHbtString Report();
  25. // sets and gets for the other makers
  26. void SetTheMcEventMaker(StMaker*); // NOTE! this is now obsolete, as we get the maker via "GetDataSet"
  27. // but I leave it in just to not break any macros - malisa 28sep2005
  28. // You can Set it if you want, but it just doesn't do anything
  29. StMaker* TheMcEventMaker();
  30. #ifdef __ROOT__
  31. ClassDef(StHbtMcEventReader, 1)
  32. #endif
  33. };
  34. inline void StHbtMcEventReader::SetTheMcEventMaker(StMaker* mcMaker){mTheMcEventMaker=mcMaker;}
  35. inline StMaker* StHbtMcEventReader::TheMcEventMaker(){return mTheMcEventMaker;}
  36. #endif