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