00001 #ifndef StHbtAssociationReader_hh
00002 #define StHbtAssociationReader_hh
00003
00004
00005 #include <ctime>
00006 #include "StMaker.h"
00007 #include "StHbtMaker/Infrastructure/StHbtCheckPdgIdList.h"
00008 #include "StHbtMaker/Base/StHbtEventReader.hh"
00009 #include "StHbtMaker/Infrastructure/StHbtHisto.hh"
00010
00011 class StHbtAssociationReader : public StHbtEventReader, public StHbtCheckPdgIdList {
00012
00013 private:
00014
00015 StMaker* mTheEventMaker;
00016 StMaker* mTheMcEventMaker;
00017 StMaker* mTheAssociationMaker;
00018
00019
00020
00021 StHbt1DHisto* mDiffCurrent;
00022 StHbt1DHisto* mDiff;
00023 StHbt1DHisto* mDiffMean;
00024 StHbt1DHisto* mDiffRMS;
00025
00026 long mV0;
00027 int eventNumber;
00028 time_t timeStamp;
00029 bool mPerfectPID;
00030
00031 protected:
00032
00033 public:
00034
00035 StHbtAssociationReader();
00036 ~StHbtAssociationReader();
00037
00038 StHbtEvent* ReturnHbtEvent();
00039 StHbtString Report();
00040
00041
00042 void SetTheEventMaker(StMaker*);
00043 void SetTheMcEventMaker(StMaker*);
00044
00045
00046 void SetTheAssociationMaker(StMaker*);
00047
00048 StMaker* TheEventMaker();
00049 StMaker* TheMcEventMaker();
00050 StMaker* TheAssociationMaker();
00051
00052
00053 bool PerfectPID();
00054 void SetPerfectPID(bool);
00055
00056 ClassDef(StHbtAssociationReader, 0)
00057 };
00058
00059 inline void StHbtAssociationReader::SetTheEventMaker(StMaker* maker){mTheEventMaker=maker;}
00060 inline void StHbtAssociationReader::SetTheMcEventMaker(StMaker* mcMaker){mTheMcEventMaker=mcMaker;}
00061 inline void StHbtAssociationReader::SetTheAssociationMaker(StMaker* associationMaker){mTheAssociationMaker=associationMaker;}
00062
00063 inline StMaker* StHbtAssociationReader::TheEventMaker(){return mTheEventMaker;}
00064 inline StMaker* StHbtAssociationReader::TheMcEventMaker(){return mTheMcEventMaker;}
00065 inline StMaker* StHbtAssociationReader::TheAssociationMaker(){return mTheAssociationMaker;}
00066
00067 inline bool StHbtAssociationReader::PerfectPID(){return mPerfectPID;}
00068 inline void StHbtAssociationReader::SetPerfectPID(bool b) {mPerfectPID=b;}
00069
00070
00071 #endif
00072
00073