StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtEventReader.cc
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 
30 #include "StHbtMaker/Infrastructure/StHbtEvent.hh"
31 #include "StHbtMaker/Base/StHbtEventCut.h"
32 #include "StHbtMaker/Base/StHbtTrackCut.h"
33 #include "StHbtMaker/Base/StHbtV0Cut.h"
34 #include "StHbtMaker/Base/StHbtXiCut.h"
35 #include "StHbtMaker/Base/StHbtKinkCut.h"
36 #include "StHbtMaker/Base/StHbtEventReader.hh"
37 
38 #ifdef __ROOT__
39 ClassImp(StHbtEventReader)
40 #endif
41 
42 StHbtString StHbtEventReader::Report(){
43  StHbtString temp = "\n This is the base class StHbtEventReader reporting";
44  temp += "\n---> EventCuts in Reader: ";
45  if (mEventCut) {
46  temp += mEventCut->Report();
47  }
48  else {
49  temp += "NONE";
50  }
51  temp += "\n---> TrackCuts in Reader: ";
52  if (mTrackCut) {
53  temp += mTrackCut->Report();
54  }
55  else {
56  temp += "NONE";
57  }
58  temp += "\n---> V0Cuts in Reader: ";
59  if (mV0Cut) {
60  temp += mV0Cut->Report();
61  }
62  else {
63  temp += "NONE";
64  }
65  temp += "\n---> XiCuts in Reader: ";
66  if (mXiCut) {
67  temp += mXiCut->Report();
68  }
69  else {
70  temp += "NONE";
71  }
72  temp += "\n---> KinkCuts in Reader: ";
73  if (mKinkCut) {
74  temp += mKinkCut->Report();
75  }
76  else {
77  temp += "NONE";
78  }
79  temp += "\n";
80  return temp;
81 }
82 
83 void StHbtEventReader::SetEventCut(StHbtEventCut* ecut){mEventCut=ecut;}
84 void StHbtEventReader::SetTrackCut(StHbtTrackCut* pcut){cout << pcut << endl; mTrackCut=pcut;}
85 void StHbtEventReader::SetV0Cut(StHbtV0Cut* pcut){mV0Cut=pcut;}
86 void StHbtEventReader::SetXiCut(StHbtXiCut* pcut){mXiCut=pcut;}
87 void StHbtEventReader::SetKinkCut(StHbtKinkCut* pcut){mKinkCut=pcut;}
88 StHbtEventCut* StHbtEventReader::EventCut(){return mEventCut;}
89 StHbtTrackCut* StHbtEventReader::TrackCut(){return mTrackCut;}
90 StHbtV0Cut* StHbtEventReader::V0Cut(){return mV0Cut;}
91 StHbtXiCut* StHbtEventReader::XiCut(){return mXiCut;}
92 StHbtKinkCut* StHbtEventReader::KinkCut(){return mKinkCut;}
93 
94