123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- /***************************************************************************
- *
- * $Id: StHbtMuDstMakerReader.h,v 1.3 2004/02/19 21:41:16 magestro Exp $
- * Author: Frank Laue, BNL, laue@bnl.gov
- ***************************************************************************/
- #ifndef StHbtMuDstMakerReader_hh
- #define StHbtMuDstMakerReader_hh
- #include <string>
- #include "StMaker.h"
- #include "StChain.h"
- #include "St_DataSetIter.h"
- #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
- #include "StMuDSTMaker/COMMON/StMuPrimaryVertex.h" //Needed for the primary vertex loop
- #include "Base/StHbtEventReader.hh"
- class StMuEvent;
- class StMuDst;
- class StMuCut;
- class StMuPrimaryVertex;
- class StEvent;
- class StTrackNode;
- class StTrack;
- class StRichSpectra;
- class StDetectorState;
- class StL3AlgorithmInfo;
- class StuProbabilityPidAlgorithm;
- /// strangeness group stuff
- class StStrangeEvMuDst;
- class StStrangeMuDstMaker;
- class StV0MuDst;
- class StV0Mc;
- class StXiMuDst;
- class StXiMc;
- class StKinkMuDst;
- class StKinkMc;
- class StStrangeAssoc;
- /// flowstuff
- class StFlowMaker;
- class StMuCut;
- class TFile;
- class TTree;
- class TChain;
- class TClonesArray;
- //!class ioMode;//!enum ioMode {ioRead, ioWrite};
- //!class ioNameMode;//!enum ioNameMode {ioFix, ioAuto};
- class StHbtMuDstMakerReader : public StHbtEventReader {
- public:
- StHbtMuDstMakerReader(StMuDstMaker* maker);
- ~StHbtMuDstMakerReader();
-
- StHbtEvent* ReturnHbtEvent();
- int Init();
- int Init(const char* ReadWrite, StHbtString& Message)
- { return StHbtEventReader::Init(ReadWrite,Message);}//WarnOff
- void Clear();
- void clear();
- void Finish();
- bool readTracks();
- bool readV0s();
- bool readXis();
- bool readKinks();
- unsigned int trackType();
- StMuDst* muDst();
- StStrangeMuDstMaker* stStrangeMuDstMaker();
- StFlowMaker* flowMaker();
- void setProbabilityPidFile(const char* file);
- void setFlowMaker(StFlowMaker*);
- void setTrackType(unsigned int);
- void setReadTracks(bool);
- void setReadV0s(bool);
- void setReadXis(bool);
- void setReadKinks(bool);
- //added by gnigmat
- void AddTriggerId(const unsigned int& id);
- enum ioMode {ioRead, ioWrite};
- enum ioNameMode {ioFix, ioAuto};
- private:
-
- StMuDst* mMuDst;
- StStrangeMuDstMaker *mStStrangeMuDstMaker;
- StFlowMaker *mFlowMaker;
- StMuDstMaker *mMuDstMaker;
- StMuPrimaryVertex *mPrimVert; //For the vertex loop
- //added by gnigmat
- vector<unsigned int> mTriggerIdCollection;
- ioMode mIoMode;
- ioNameMode mIoNameMode;
- string mDirName;
- string mFileName;
- string mFilter;
- int mMaxFiles;
- unsigned int mTrackType;
- bool mReadTracks;
- bool mReadV0s;
- bool mReadXis;
- bool mReadKinks;
- bool mFinish;
- TFile* mCurrentFile;
- string mCurrentFileName;
- int mEventCounter;
- StHbtEvent* mHbtEvent;
- StuProbabilityPidAlgorithm* mProbabilityPidAlgorithm;
- ClassDef(StHbtMuDstMakerReader, 1)
- };
- inline StMuDst* StHbtMuDstMakerReader::muDst() { return mMuDst;}
- inline void StHbtMuDstMakerReader::setFlowMaker(StFlowMaker* f) {mFlowMaker=f;}
- inline StFlowMaker* StHbtMuDstMakerReader::flowMaker() {return mFlowMaker;}
- inline void StHbtMuDstMakerReader::setTrackType(unsigned int t) {mTrackType=t;}
- inline unsigned int StHbtMuDstMakerReader::trackType() {return mTrackType;}
- inline bool StHbtMuDstMakerReader::readTracks() { return mReadTracks;}
- inline bool StHbtMuDstMakerReader::readV0s() { return mReadV0s;}
- inline bool StHbtMuDstMakerReader::readXis() { return mReadXis;}
- inline bool StHbtMuDstMakerReader::readKinks() { return mReadKinks;}
- inline void StHbtMuDstMakerReader::setReadTracks(bool b) { mReadTracks=b;}
- inline void StHbtMuDstMakerReader::setReadV0s(bool b) { mReadV0s=b;}
- inline void StHbtMuDstMakerReader::setReadXis(bool b) { mReadXis=b;}
- inline void StHbtMuDstMakerReader::setReadKinks(bool b) { mReadKinks=b;}
- //added by gnigmat
- inline void StHbtMuDstMakerReader::AddTriggerId(const unsigned int& id)
- {mTriggerIdCollection.push_back(id);}
- #endif
- /***************************************************************************
- *
- * $Log: StHbtMuDstMakerReader.h,v $
- * Revision 1.3 2004/02/19 21:41:16 magestro
- * Removed class StIOMaker declaration
- *
- * Revision 1.2 2003/09/07 03:49:02 perev
- * gcc 3.2 + WarnOff
- *
- * Revision 1.1 2002/08/27 18:21:26 laue
- * New reader. Wrapper around the StMuDstMaker
- *
- *
- **************************************************************************/
|