StHbtTagMaker.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // StHbtTagMaker.hh
  4. //
  5. // Author List:
  6. // Frank Laue, The Ohio State University, laue@bnl.gov
  7. //
  8. ///////////////////////////////////////////////////////////////////////////////
  9. //
  10. // Description:
  11. // Maker to fill Tag database for hbt analysis
  12. //
  13. //
  14. //////////////////////////////////////////////////////////////////////
  15. #ifndef StHbtTagMaker_H
  16. #define StHbtTagMaker_H
  17. #include <Stiostream.h>
  18. //#include <stdlib.h>
  19. #include "StMaker.h"
  20. #include "tables/St_HbtTag_Table.h"
  21. #include "StHbtMaker/Infrastructure/StHbtTagWriter.hh"
  22. class StHbtEvent;
  23. class TH1F;
  24. class TH1D;
  25. class TProfile;
  26. class StHbtTagMaker
  27. #ifdef __ROOT__
  28. : public StMaker
  29. #endif
  30. {
  31. public:
  32. StHbtTagMaker(const Char_t* name = "HbtTag");
  33. virtual ~StHbtTagMaker();
  34. Int_t Init();
  35. void Clear(Option_t* opt="");
  36. Int_t Make();
  37. void PrintInfo();
  38. void SetTagWriter(const StHbtTagWriter* tagWriter);
  39. void SetShowTags(const int i=1);
  40. StHbtTagWriter* TagWriter() const;
  41. Int_t Finish();
  42. HbtTag_st* TagPointer() const; // returns pointer to the tag table
  43. void Fill(StHbtTagWriter*); // copy data from the StHbtTagWriter
  44. private:
  45. void PrintTag(ostream& = cout); // output Tag info to screen
  46. int mShowTags;
  47. St_HbtTag* mSt_HbtTag; //! the StHbtTag table header
  48. HbtTag_st* mHbtTag; //! the StHbtTag table structure to fill
  49. StHbtTagWriter* mTagWriter;
  50. #ifdef __ROOT__
  51. ClassDef(StHbtTagMaker, 0) // macro for rootcint
  52. #endif
  53. };
  54. //inline void StHbtTagMaker::SetTagWriter(const StHbtTagWriter* tagWriter) {mTagWriter = tagWriter;}
  55. inline StHbtTagWriter* StHbtTagMaker::TagWriter() const {return mTagWriter;}
  56. inline HbtTag_st* StHbtTagMaker::TagPointer() const { return mHbtTag; }
  57. inline void StHbtTagMaker::SetShowTags(const int i) { mShowTags=i; }
  58. #endif