StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPmdClusterCollection.cxx
1 /********************************************************************
2  *
3  * $Id: StPmdClusterCollection.cxx,v 1.2 2003/05/12 12:07:12 subhasis Exp $
4  *
5  * Author: Subhasis Chattopadhyay
6  ********************************************************************
7  *
8  * Description: StPmdClusterCollection is base class for
9  * PMD cluster collection.
10  *
11  * $Log: StPmdClusterCollection.cxx,v $
12  * Revision 1.2 2003/05/12 12:07:12 subhasis
13  * Mapping added
14  *
15  ********************************************************************/
16 #include "StPmdClusterCollection.h"
17 #include <TBrowser.h>
18 #include <TTableSorter.h>
19 #include <TDataSetIter.h>
20 #include <math.h>
21 #include "StPmdUtil/StPmdGeom.h"
22 #include "StPmdHit.h"
23 
24 ClassImp(StPmdClusterCollection)
25 
26 
27 //_____________________________________________________________________________
28 //StPmdClusterCollection::StPmdClusterCollection():TDataSet("Default")
30 {
31  mNclusters=0;
32 }
33 //_____________________________________________________________________________
34 
36 {
37  DeleteCluster();
38 }
39 
40 void
41 StPmdClusterCollection::DeleteCluster()
42 {
43  Option_t* opt="ALL";
44  mClusters.Delete(opt);
45 }
46 
47 //_____________________________________________________________________________
48 
49 void StPmdClusterCollection::addCluster(StPmdCluster* cluster)
50 {
51 
52  mClusters.Add(cluster);
53  mNclusters += 1;
54 
55  }
56 
57 
58 
59 
virtual ~StPmdClusterCollection()
constructor