50 #include "StTofCollection.h"
52 static const char rcsid[] =
"$Id: StTofCollection.cxx,v 2.10 2008/06/03 17:41:28 ullrich Exp $";
64 StTofCollection::~StTofCollection() { }
66 const StSPtrVecTofCell&
67 StTofCollection::tofCells()
const
73 StTofCollection::tofCells()
78 const StSPtrVecTofSlat&
79 StTofCollection::tofSlats()
const
85 StTofCollection::tofSlats()
90 const StSPtrVecTofHit&
91 StTofCollection::tofHits()
const
97 StTofCollection::tofHits()
102 const StSPtrVecTofData&
103 StTofCollection::tofData()
const
109 StTofCollection::tofData()
114 const StSPtrVecTofRawData&
115 StTofCollection::tofRawData()
const
121 StTofCollection::tofRawData()
127 StTofCollection::addCell(
const StTofCell* aCell)
129 if (aCell) mTofCells.push_back(aCell);
133 StTofCollection::addSlat(
const StTofSlat* aSlat)
135 if (aSlat) mTofSlats.push_back(aSlat);
139 StTofCollection::addHit(
const StTofHit* aHit)
141 if (aHit) mTofHits.push_back(aHit);
145 StTofCollection::addData(
const StTofData* aData)
147 if (aData) mTofData.push_back(aData);
151 StTofCollection::addRawData(
const StTofRawData* aRawData)
153 if (aRawData) mTofRawData.push_back(aRawData);
158 StTofCollection::cellsPresent()
const
160 return mTofCells.size();
164 StTofCollection::slatsPresent()
const
166 return mTofSlats.size();
170 StTofCollection::hitsPresent()
const
172 return mTofHits.size();
176 StTofCollection::dataPresent()
const
178 return mTofData.size();
182 StTofCollection::rawdataPresent()
const
184 return mTofRawData.size();
188 StTofCollection::numberOfVpdEast()
const
190 unsigned int num = 0;
191 for(
int i=0;i<32;i++) {
192 num += mVpdEast>>i & 1;
198 StTofCollection::numberOfVpdWest()
const
200 unsigned int num = 0;
201 for(
int i=0;i<32;i++) {
202 num += mVpdWest>>i & 1;