00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "StPhmdClusterCollection.h"
00019 #include "StPhmdHit.h"
00020
00021 ClassImp(StPhmdClusterCollection)
00022
00023 StPhmdClusterCollection::StPhmdClusterCollection()
00024 { }
00025
00026 StPhmdClusterCollection::~StPhmdClusterCollection()
00027 { }
00028
00029 void
00030 StPhmdClusterCollection::deleteClusters()
00031 {
00032 StSPtrVecPhmdClusterIterator iter;
00033 for (iter=mClusters.begin(); iter != mClusters.end(); iter++)
00034 mClusters.erase(iter);
00035 }
00036
00037 void
00038 StPhmdClusterCollection::deleteCluster(StPhmdCluster* cluster)
00039 {
00040 StSPtrVecPhmdClusterIterator iter;
00041 for (iter=mClusters.begin(); iter != mClusters.end(); iter++)
00042 if (*iter == cluster) mClusters.erase(iter);
00043 }
00044
00045 void StPhmdClusterCollection::addCluster(StPhmdCluster* cluster)
00046 {
00047 mClusters.push_back(cluster);
00048 }
00049
00050 int
00051 StPhmdClusterCollection::numberOfclusters() const
00052 {return mClusters.size();}
00053
00054 StSPtrVecPhmdCluster&
00055 StPhmdClusterCollection::clusters()
00056 {return mClusters;}
00057
00058 const StSPtrVecPhmdCluster&
00059 StPhmdClusterCollection::clusters() const
00060 {return mClusters;}
00061
00062 int
00063 StPhmdClusterCollection::clusterFinderId() const
00064 {return mClusterFinderId;}
00065
00066 int
00067 StPhmdClusterCollection::clusterFinderParamVersion() const
00068 {return mClusterFinderParamVersion;}
00069
00070 void
00071 StPhmdClusterCollection::setClusterFinderId(int val)
00072 {mClusterFinderId = val;}
00073
00074 void
00075 StPhmdClusterCollection::setClusterFinderParamVersion(int val)
00076 {mClusterFinderParamVersion = val;}
00077
00078