StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
StEmcPreClusterCollection Class Reference

#include <StEmcPreClusterCollection.h>

Inheritance diagram for StEmcPreClusterCollection:

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
 
StEmcPreClusternewCluster ()
 creates a new cluster in the collection. Returns its pointer
 
StEmcPreClustergetCluster (Int_t)
 gets a cluster in the collection by its index
 
StEmcPreClusterremoveCluster (Int_t)
 removes a cluster from the collection. DOES NOT delete it. Returns its pointer
 
StEmcPreClusterremoveCluster (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
 

Detailed Description

Author
Alexandre A. P. Suaide

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.


The documentation for this class was generated from the following files: