StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtMuDstMakerReader.h
1 /***************************************************************************
2  *
3  * $Id: StHbtMuDstMakerReader.h,v 1.3 2004/02/19 21:41:16 magestro Exp $
4  * Author: Frank Laue, BNL, laue@bnl.gov
5  ***************************************************************************/
6 #ifndef StHbtMuDstMakerReader_hh
7 #define StHbtMuDstMakerReader_hh
8 
9 #include <string>
10 
11 #include "StMaker.h"
12 #include "StChain.h"
13 #include "St_DataSetIter.h"
14 
15 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
16 
17 #include "Base/StHbtEventReader.hh"
18 
19 
20 
21 class StMuEvent;
22 class StMuDst;
23 class StMuCut;
24 
25 class StEvent;
26 class StTrackNode;
27 class StTrack;
28 class StRichSpectra;
29 class StDetectorState;
30 class StL3AlgorithmInfo;
31 
33 
35 class StStrangeEvMuDst;
37 class StV0MuDst;
38 class StV0Mc;
39 class StXiMuDst;
40 class StXiMc;
41 class StKinkMuDst;
42 class StKinkMc;
43 class StStrangeAssoc;
44 
46 class StFlowMaker;
47 
48 class StMuCut;
49 class TFile;
50 class TTree;
51 class TChain;
52 class TClonesArray;
53 
56 
58  public:
61 
62  StHbtEvent* ReturnHbtEvent();
63  int Init();
64  int Init(const char* ReadWrite, StHbtString& Message)
65  { return StHbtEventReader::Init(ReadWrite,Message);}//WarnOff
66  void Clear();
67  void clear();
68  void Finish();
69 
70  bool readTracks();
71  bool readV0s();
72  bool readXis();
73  bool readKinks();
74  unsigned int trackType();
75  StMuDst* muDst();
76 
77  StStrangeMuDstMaker* stStrangeMuDstMaker();
78  StFlowMaker* flowMaker();
79 
80  void setProbabilityPidFile(const char* file);
81  void setFlowMaker(StFlowMaker*);
82  void setTrackType(unsigned int);
83  void setReadTracks(bool);
84  void setReadV0s(bool);
85  void setReadXis(bool);
86  void setReadKinks(bool);
87 
88  enum ioMode {ioRead, ioWrite};
89  enum ioNameMode {ioFix, ioAuto};
90 private:
91 
92  StMuDst* mMuDst;
93 
94  StStrangeMuDstMaker* mStStrangeMuDstMaker;
95  StFlowMaker* mFlowMaker;
96  StMuDstMaker* mMuDstMaker;
97 
98  ioMode mIoMode;
99  ioNameMode mIoNameMode;
100  string mDirName;
101  string mFileName;
102  string mFilter;
103  int mMaxFiles;
104 
105  unsigned int mTrackType;
106  bool mReadTracks;
107  bool mReadV0s;
108  bool mReadXis;
109  bool mReadKinks;
110  bool mFinish;
111 
112  TFile* mCurrentFile;
113  string mCurrentFileName;
114 
115  int mEventCounter;
116 
117  StHbtEvent* mHbtEvent;
118  StuProbabilityPidAlgorithm* mProbabilityPidAlgorithm;
119 
120  ClassDef(StHbtMuDstMakerReader, 1)
121 };
122 
123 inline StMuDst* StHbtMuDstMakerReader::muDst() { return mMuDst;}
124 inline void StHbtMuDstMakerReader::setFlowMaker(StFlowMaker* f) {mFlowMaker=f;}
125 inline StFlowMaker* StHbtMuDstMakerReader::flowMaker() {return mFlowMaker;}
126 inline void StHbtMuDstMakerReader::setTrackType(unsigned int t) {mTrackType=t;}
127 inline unsigned int StHbtMuDstMakerReader::trackType() {return mTrackType;}
128 
129 inline bool StHbtMuDstMakerReader::readTracks() { return mReadTracks;}
130 inline bool StHbtMuDstMakerReader::readV0s() { return mReadV0s;}
131 inline bool StHbtMuDstMakerReader::readXis() { return mReadXis;}
132 inline bool StHbtMuDstMakerReader::readKinks() { return mReadKinks;}
133 inline void StHbtMuDstMakerReader::setReadTracks(bool b) { mReadTracks=b;}
134 inline void StHbtMuDstMakerReader::setReadV0s(bool b) { mReadV0s=b;}
135 inline void StHbtMuDstMakerReader::setReadXis(bool b) { mReadXis=b;}
136 inline void StHbtMuDstMakerReader::setReadKinks(bool b) { mReadKinks=b;}
137 
138 #endif
139 
140 /***************************************************************************
141  *
142  * $Log: StHbtMuDstMakerReader.h,v $
143  * Revision 1.3 2004/02/19 21:41:16 magestro
144  * Removed class StIOMaker declaration
145  *
146  * Revision 1.2 2003/09/07 03:49:02 perev
147  * gcc 3.2 + WarnOff
148  *
149  * Revision 1.1 2002/08/27 18:21:26 laue
150  * New reader. Wrapper around the StMuDstMaker
151  *
152  *
153  **************************************************************************/
Definition: StV0Mc.hh:17
Definition: StXiMc.hh:17