StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPmdClusterCollection.h
1 
5 /*********************************************************
6  *
7  * $Id: StPmdClusterCollection.h,v 1.2 2003/05/12 12:07:12 subhasis Exp $
8  *
9  * Author: Subhasis Chattopadhaya
10  **********************************************************
11  *
12  * Description: Base class for PMD cluster collection
13  *
14  * $Log: StPmdClusterCollection.h,v $
15  * Revision 1.2 2003/05/12 12:07:12 subhasis
16  * Mapping added
17  *
18  *
19  *********************************************************/
20 #ifndef STAR_StPmdClusterCollection
21 #define STAR_StPmdClusterCollection
22 
23 #include <TObjArray.h>
24 #include <TArrayI.h>
25 #include <TArrayF.h>
26 #include <TMatrix.h>
27 #include "StPmdDetector.h"
28 #include "StPmdCluster.h"
29 
30 
32 private:
33 
34  Int_t mNclusters;
35  TObjArray mClusters;
36 
37 protected:
38 public:
39 
41  virtual ~StPmdClusterCollection();
42 
43  Int_t Nclusters() const;
44  TObjArray* Clusters();
45 
46  void setNclusters(Int_t);
47 
48  virtual void DeleteCluster();
49 
50 
51  virtual void addCluster(StPmdCluster* cluster);
52 
53 
54  ClassDef(StPmdClusterCollection,1)// Base class for PMD cluster collection
55 };
56 
57 inline Int_t StPmdClusterCollection::Nclusters() const {return mNclusters;}
58 inline TObjArray* StPmdClusterCollection::Clusters() {return &mClusters;}
59 inline void StPmdClusterCollection::setNclusters(Int_t var) {mNclusters = var;}
60 
61 #endif
62 
63 
64 
65 
Int_t Nclusters() const
destructor
TObjArray * Clusters()
no. of clusters
virtual ~StPmdClusterCollection()
constructor