StHbtAssociationReader.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef StHbtAssociationReader_hh
  2. #define StHbtAssociationReader_hh
  3. #include <ctime>
  4. #include "StMaker.h"
  5. #include "StHbtMaker/Infrastructure/StHbtCheckPdgIdList.h"
  6. #include "StHbtMaker/Base/StHbtEventReader.hh"
  7. #include "StHbtMaker/Infrastructure/StHbtHisto.hh"
  8. class StHbtAssociationReader : public StHbtEventReader, public StHbtCheckPdgIdList {
  9. private:
  10. // pointers to other mkers
  11. StMaker* mTheEventMaker; //! this is the chain where the StEventReaderMaker is
  12. StMaker* mTheMcEventMaker; //! this is the chain where the StMcEventReaderMaker is
  13. StMaker* mTheAssociationMaker; //! this is the chain where the StAssociationEventReaderMaker is
  14. // StMaker* mTheV0Maker; //! this is the chain where the StStrangeMuDstMaker is
  15. // some monitor histograms
  16. StHbt1DHisto* mDiffCurrent; //! momenta diff distribution
  17. StHbt1DHisto* mDiff; //! momenta diff distribution
  18. StHbt1DHisto* mDiffMean; //! mean of momenta diff distribution
  19. StHbt1DHisto* mDiffRMS; //! sigma of momenta diff distribution
  20. long mV0; //! Number of v0s looked at to date
  21. int eventNumber;
  22. time_t timeStamp;
  23. bool mPerfectPID;
  24. protected:
  25. public:
  26. StHbtAssociationReader();
  27. ~StHbtAssociationReader();
  28. StHbtEvent* ReturnHbtEvent();
  29. StHbtString Report();
  30. // sets and gets for the other makers
  31. void SetTheEventMaker(StMaker*);
  32. void SetTheMcEventMaker(StMaker*); // NOTE! this is now obsolete, as we get the maker via "GetDataSet"
  33. // but I leave it in just to not break any macros - malisa 28sep2005
  34. // You can Set it if you want, but it just doesn't do anything
  35. void SetTheAssociationMaker(StMaker*);
  36. //void SetTheV0Maker(StMaker*);
  37. StMaker* TheEventMaker();
  38. StMaker* TheMcEventMaker();
  39. StMaker* TheAssociationMaker();
  40. //StMaker* TheV0Maker();
  41. bool PerfectPID();
  42. void SetPerfectPID(bool);
  43. ClassDef(StHbtAssociationReader, 0)
  44. };
  45. inline void StHbtAssociationReader::SetTheEventMaker(StMaker* maker){mTheEventMaker=maker;}
  46. inline void StHbtAssociationReader::SetTheMcEventMaker(StMaker* mcMaker){mTheMcEventMaker=mcMaker;}
  47. inline void StHbtAssociationReader::SetTheAssociationMaker(StMaker* associationMaker){mTheAssociationMaker=associationMaker;}
  48. //inline void StHbtAssociationReader::SetTheV0Maker(StMaker* theV0Maker) { mTheV0Maker = theV0Maker; };
  49. inline StMaker* StHbtAssociationReader::TheEventMaker(){return mTheEventMaker;}
  50. inline StMaker* StHbtAssociationReader::TheMcEventMaker(){return mTheMcEventMaker;}
  51. inline StMaker* StHbtAssociationReader::TheAssociationMaker(){return mTheAssociationMaker;}
  52. //inline StMaker* StHbtAssociationReader::TheV0Maker(){return mTheV0Maker;}
  53. inline bool StHbtAssociationReader::PerfectPID(){return mPerfectPID;}
  54. inline void StHbtAssociationReader::SetPerfectPID(bool b) {mPerfectPID=b;}
  55. #endif