StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPhmdClusterCollection.cxx
1 /********************************************************************
2  *
3  * $Id: StPhmdClusterCollection.cxx,v 2.1 2002/12/20 22:33:00 ullrich Exp $
4  *
5  * Author: Subhasis Chattopadhyay, Dec 2002
6  ********************************************************************
7  *
8  * Description: StPhmdClusterCollection is base class for
9  * PMD cluster collection.
10  *
11  ********************************************************************
12  *
13  * $Log: StPhmdClusterCollection.cxx,v $
14  * Revision 2.1 2002/12/20 22:33:00 ullrich
15  * Initial Revision.
16  *
17  ********************************************************************/
18 #include "StPhmdClusterCollection.h"
19 #include "StPhmdHit.h"
20 
22 
24 { /* noop */ }
25 
26 StPhmdClusterCollection::~StPhmdClusterCollection()
27 { /* noop */ }
28 
29 void
30 StPhmdClusterCollection::deleteClusters()
31 {
32  StSPtrVecPhmdClusterIterator iter;
33  for (iter=mClusters.begin(); iter != mClusters.end(); iter++)
34  mClusters.erase(iter);
35 }
36 
37 void
38 StPhmdClusterCollection::deleteCluster(StPhmdCluster* cluster)
39 {
40  StSPtrVecPhmdClusterIterator iter;
41  for (iter=mClusters.begin(); iter != mClusters.end(); iter++)
42  if (*iter == cluster) mClusters.erase(iter);
43 }
44 
45 void StPhmdClusterCollection::addCluster(StPhmdCluster* cluster)
46 {
47  mClusters.push_back(cluster);
48 }
49 
50 int
51 StPhmdClusterCollection::numberOfclusters() const
52 {return mClusters.size();}
53 
54 StSPtrVecPhmdCluster&
55 StPhmdClusterCollection::clusters()
56 {return mClusters;}
57 
58 const StSPtrVecPhmdCluster&
59 StPhmdClusterCollection::clusters() const
60 {return mClusters;}
61 
62 int
63 StPhmdClusterCollection::clusterFinderId() const
64 {return mClusterFinderId;}
65 
66 int
67 StPhmdClusterCollection::clusterFinderParamVersion() const
68 {return mClusterFinderParamVersion;}
69 
70 void
71 StPhmdClusterCollection::setClusterFinderId(int val)
72 {mClusterFinderId = val;}
73 
74 void
75 StPhmdClusterCollection::setClusterFinderParamVersion(int val)
76 {mClusterFinderParamVersion = val;}
77 
78