StRoot
1
|
#include <StEmcPreClusterCollection.h>
Public Member Functions | |
StEmcPreClusterCollection (Int_t) | |
Int_t | getDetector () |
returns the detector id for 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 | |
StEmcPreCluster * | getCluster (Int_t) |
gets a cluster in the collection by its index | |
StEmcPreCluster * | removeCluster (Int_t) |
removes a cluster from the collection. DOES NOT delete it. Returns its pointer | |
StEmcPreCluster * | removeCluster (StEmcPreCluster *) |
removes a cluster from the collection. DOES NOT delete it. Returns its pointer | |
void | deleteCluster (Int_t) |
removes and deletes a cluster from the collection | |
void | deleteCluster (StEmcPreCluster *) |
removes and deletes a cluster from the collection | |
Int_t | getNClusters () |
gets the number of clusters in the collection | |
void | empty () |
deletes all the cluster from the collection. | |
Protected Attributes | |
Int_t | mDetector |
This is a placeholder for the StEmcPreClusters. The collection owns the clusters added to them so be careful about deleting. If you want a cluster to be part of the collection, create and delete clusters using the methods newCluster() and removeCluster() instead of new and delete.
Definition at line 18 of file StEmcPreClusterCollection.h.