17 #include "StHbtTagMaker.h"
18 #define PR(x) cout << "##### HbtTag: " << (#x) << " = " << (x) << endl;
27 mTagWriter = StHbtTagWriter::Instance();
32 StHbtTagMaker::~StHbtTagMaker() {
35 Int_t StHbtTagMaker::Init() {
36 return StMaker::Init();
39 void StHbtTagMaker::Clear(Option_t* opt) {
40 if (mTagWriter) mTagWriter->Clear();
41 cout <<
" StHbtTagMaker::Clear() " << endl;
44 Int_t StHbtTagMaker::Make() {
48 mSt_HbtTag =
new St_HbtTag(
"HbtTag",1);
50 mSt_HbtTag->SetNRows(1);
52 AddData(mSt_HbtTag,
".data");
54 mHbtTag = mSt_HbtTag->GetTable();
57 if (Debug()) cout <<
"StTagPointer: " << mSt_HbtTag << endl;
58 if (Debug()) cout <<
"TagPointer: " << mHbtTag << endl;
62 cout <<
"StHbtTagMaker::Make() - fill tags now " << endl;
66 cout <<
"StHbtTagMaker::Make() - no tags written " << endl;
69 if ( mShowTags>0) PrintTag();
75 *mHbtTag = writer->mHbtTag;
79 void StHbtTagMaker::PrintInfo() {
80 if (Debug()) StMaker::PrintInfo();
85 void StHbtTagMaker::PrintTag(ostream& os) {
86 os <<
" HbtTag: " << endl;
87 os <<
" ************ " << endl;
88 int nFloats =
sizeof(*mHbtTag) /
sizeof(float);
90 for (
int i=0; i<nFloats; i++) {
91 if (i%5==0) os << endl;
92 os <<
" " << ((
float*)mHbtTag)[i];
99 Int_t StHbtTagMaker::Finish() {