StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcPreClusterCollection.h
1 
12 #include "TList.h"
13 #include "StEmcPreCluster.h"
14 
15 #ifndef StEmcPreClusterCollection_HH
16 #define StEmcPreClusterCollection_HH
17 #include "StEmcRawMaker/defines.h"
18 class StEmcPreClusterCollection: public TList
19 {
20 private:
21 
22 protected:
23  Int_t mDetector;
24 public:
26  virtual ~StEmcPreClusterCollection();
27 
28  Int_t getDetector()
29  {
30  return mDetector;
31  }
32 
35  StEmcPreCluster* getCluster(Int_t);
38  void deleteCluster(Int_t);
40  Int_t getNClusters();
41  void empty()
42  {
43  Delete();
44  Clear();
45  }
46 
47  ClassDef(StEmcPreClusterCollection,1)
48 };
49 #endif
Int_t getDetector()
returns the detector id for the collection
Int_t getNClusters()
gets the number of clusters in the collection
void addCluster(StEmcPreCluster *)
add a previously created cluster to the collection
StEmcPreCluster * newCluster()
creates a new cluster in the collection. Returns its pointer
void deleteCluster(Int_t)
removes and deletes a cluster from the collection
void empty()
deletes all the cluster from the collection.
StEmcPreCluster * removeCluster(Int_t)
removes a cluster from the collection. DOES NOT delete it. Returns its pointer
StEmcPreCluster * getCluster(Int_t)
gets a cluster in the collection by its index