00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef StBTofCollection_hh
00027 #define StBTofCollection_hh
00028
00029 #include "StObject.h"
00030 #include "StContainers.h"
00031 #include "StEnumerations.h"
00032 #include "StBTofHeader.h"
00033 #include "StBTofHit.h"
00034 #include "StBTofRawHit.h"
00035
00036 class StBTofCollection : public StObject {
00037 public:
00038 StBTofCollection();
00039 ~StBTofCollection();
00040
00041 const StBTofHeader* tofHeader() const;
00042 StBTofHeader* tofHeader();
00043
00044 const StSPtrVecBTofHit& tofHits() const;
00045 StSPtrVecBTofHit& tofHits();
00046
00047 const StSPtrVecBTofRawHit& tofRawHits() const;
00048 StSPtrVecBTofRawHit& tofRawHits();
00049
00050 void setHeader(StBTofHeader*);
00051
00052 void addHit(const StBTofHit*);
00053 void addRawHit(const StBTofRawHit*);
00054
00055 bool hitsPresent() const;
00056 bool rawHitsPresent() const;
00057
00058 private:
00059 StBTofHeader* mBTofHeader;
00060
00061 StSPtrVecBTofHit mBTofHits;
00062 StSPtrVecBTofRawHit mBTofRawHits;
00063
00064 ClassDef(StBTofCollection, 1)
00065 };
00066
00067 #endif