1 #include "StIstCluster.h"
2 #include "StIstClusterCollection.h"
3 #include "St_base/StMessMgr.h"
6 StIstClusterCollection::StIstClusterCollection(
int ladder ) :
StObject(), mLadder( ladder )
10 StIstClusterCollection::~StIstClusterCollection()
15 void StIstClusterCollection::Clear( Option_t *opt )
18 std::vector< StIstCluster * >::iterator vecIter;
20 for ( vecIter = mClusterVec.begin(); vecIter != mClusterVec.end(); ++vecIter ) {
21 if (*vecIter != NULL) {
31 void StIstClusterCollection::Print(Option_t *opt)
const
35 for (std::vector<StIstCluster*>::const_iterator it = mClusterVec.begin(); it != mClusterVec.end(); ++it, ++clusterIdx)
37 LOG_DEBUG <<
"cluster: Idx=" << clusterIdx << endm;
43 vector<StIstCluster *> &StIstClusterCollection::getClusterVec()
48 const vector<StIstCluster *> &StIstClusterCollection::getClusterVec()
const
53 size_t StIstClusterCollection::getNumClusters()
const
55 return mClusterVec.size();
58 void StIstClusterCollection::setLadder(
int ladder )
63 unsigned char StIstClusterCollection::getLadder()
const