00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "TBrowser.h"
00025 #include "StMtdCollection.h"
00026
00027 static const char rcsid[] = "$Id: StMtdCollection.cxx,v 2.2 2012/02/28 01:25:32 perev Exp $";
00028
00029 ClassImp(StMtdCollection)
00030
00031 StMtdCollection::StMtdCollection()
00032 {
00033 mMtdHeader = 0;
00034 }
00035
00036 StMtdCollection::~StMtdCollection()
00037 {
00038 if(mMtdHeader) delete mMtdHeader;
00039 }
00040
00041 StMtdHeader*
00042 StMtdCollection::mtdHeader() { return mMtdHeader; }
00043
00044 const StMtdHeader*
00045 StMtdCollection::mtdHeader() const { return mMtdHeader; }
00046
00047 const StSPtrVecMtdHit&
00048 StMtdCollection::mtdHits() const { return mMtdHits; }
00049
00050 StSPtrVecMtdHit&
00051 StMtdCollection::mtdHits() { return mMtdHits; }
00052
00053 const StSPtrVecMtdRawHit&
00054 StMtdCollection::mtdRawHits() const { return mMtdRawHits; }
00055
00056 StSPtrVecMtdRawHit&
00057 StMtdCollection::mtdRawHits() { return mMtdRawHits; }
00058
00059 void
00060 StMtdCollection::setHeader(StMtdHeader* val) { mMtdHeader = val; }
00061
00062 void
00063 StMtdCollection::addHit(const StMtdHit* aHit)
00064 {
00065 if (aHit) mMtdHits.push_back(aHit);
00066 }
00067
00068 void
00069 StMtdCollection::addRawHit(const StMtdRawHit* aRawHit)
00070 {
00071 if (aRawHit) mMtdRawHits.push_back(aRawHit);
00072 }
00073
00074 bool
00075 StMtdCollection::hitsPresent() const { return mMtdHits.size(); }
00076
00077 bool
00078 StMtdCollection::rawHitsPresent() const { return mMtdRawHits.size(); }
00079
00080 void StMtdCollection::Browse(TBrowser *b)
00081 {
00082 mMtdHits.Browse(b);
00083 mMtdRawHits.Browse(b);
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095 }