StHbtEventReader.cc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /***************************************************************************
  2. *
  3. * $Id: StHbtEventReader.cc,v 1.2 2001/09/05 20:41:00 laue Exp $
  4. *
  5. * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu
  6. ***************************************************************************
  7. *
  8. * Description: part of STAR HBT Framework: StHbtMaker package
  9. * base class for a StHbtEventReader
  10. * All HbtEventReaders should inherit from this.
  11. * Objects of these classes are required
  12. * to obtain the data and convert it somehow to the STAR StEvent object
  13. *
  14. * A major change is that on 3sep99, the StHbtReader classes _MUST_ implement
  15. * a Report() method, like the Cuts and CorrFctns.
  16. * Also, a StHbtReader MAY implement a WriteHbtEvent(StHbtEvent*) method.
  17. *
  18. ***************************************************************************
  19. *
  20. * $Log: StHbtEventReader.cc,v $
  21. * Revision 1.2 2001/09/05 20:41:00 laue
  22. * Updates of the hbtMuDstTree microDSTs
  23. *
  24. * Revision 1.1 2001/06/21 19:06:49 laue
  25. * Some minor structural changes (forward declarations, etc)
  26. *
  27. *
  28. **************************************************************************/
  29. #include "StHbtMaker/Infrastructure/StHbtEvent.hh"
  30. #include "StHbtMaker/Base/StHbtEventCut.h"
  31. #include "StHbtMaker/Base/StHbtTrackCut.h"
  32. #include "StHbtMaker/Base/StHbtV0Cut.h"
  33. #include "StHbtMaker/Base/StHbtXiCut.h"
  34. #include "StHbtMaker/Base/StHbtKinkCut.h"
  35. #include "StHbtMaker/Base/StHbtEventReader.hh"
  36. #ifdef __ROOT__
  37. ClassImp(StHbtEventReader)
  38. #endif
  39. StHbtString StHbtEventReader::Report(){
  40. StHbtString temp = "\n This is the base class StHbtEventReader reporting";
  41. temp += "\n---> EventCuts in Reader: ";
  42. if (mEventCut) {
  43. temp += mEventCut->Report();
  44. }
  45. else {
  46. temp += "NONE";
  47. }
  48. temp += "\n---> TrackCuts in Reader: ";
  49. if (mTrackCut) {
  50. temp += mTrackCut->Report();
  51. }
  52. else {
  53. temp += "NONE";
  54. }
  55. temp += "\n---> V0Cuts in Reader: ";
  56. if (mV0Cut) {
  57. temp += mV0Cut->Report();
  58. }
  59. else {
  60. temp += "NONE";
  61. }
  62. temp += "\n---> XiCuts in Reader: ";
  63. if (mXiCut) {
  64. temp += mXiCut->Report();
  65. }
  66. else {
  67. temp += "NONE";
  68. }
  69. temp += "\n---> KinkCuts in Reader: ";
  70. if (mKinkCut) {
  71. temp += mKinkCut->Report();
  72. }
  73. else {
  74. temp += "NONE";
  75. }
  76. temp += "\n";
  77. return temp;
  78. }
  79. void StHbtEventReader::SetEventCut(StHbtEventCut* ecut){mEventCut=ecut;}
  80. void StHbtEventReader::SetTrackCut(StHbtTrackCut* pcut){cout << pcut << endl; mTrackCut=pcut;}
  81. void StHbtEventReader::SetV0Cut(StHbtV0Cut* pcut){mV0Cut=pcut;}
  82. void StHbtEventReader::SetXiCut(StHbtXiCut* pcut){mXiCut=pcut;}
  83. void StHbtEventReader::SetKinkCut(StHbtKinkCut* pcut){mKinkCut=pcut;}
  84. StHbtEventCut* StHbtEventReader::EventCut(){return mEventCut;}
  85. StHbtTrackCut* StHbtEventReader::TrackCut(){return mTrackCut;}
  86. StHbtV0Cut* StHbtEventReader::V0Cut(){return mV0Cut;}
  87. StHbtXiCut* StHbtEventReader::XiCut(){return mXiCut;}
  88. StHbtKinkCut* StHbtEventReader::KinkCut(){return mKinkCut;}