StFms
0.0.0
FMS software in the STAR framework
|
#include <StFmsCollection.h>
Public Member Functions | |
StFmsCollection () | |
~StFmsCollection () | |
void | addHit (StFmsHit *) |
void | addCluster (StFmsCluster *) |
void | addPoint (StFmsPoint *) |
unsigned int | numberOfHits () const |
unsigned int | numberOfClusters () const |
unsigned int | numberOfPoints () const |
StSPtrVecFmsHit & | hits () |
const StSPtrVecFmsHit & | hits () const |
StSPtrVecFmsCluster & | clusters () |
const StSPtrVecFmsCluster & | clusters () const |
StSPtrVecFmsPoint & | points () |
const StSPtrVecFmsPoint & | points () const |
Private Attributes | |
StSPtrVecFmsHit | mHits |
Owns all FMS hits. More... | |
StSPtrVecFmsCluster | mClusters |
Owns all FMS clusters. More... | |
StSPtrVecFmsPoint | mPoints |
Owns all FMS points (photons) More... | |
Collection of all hits (towers), clusters and points (photons) in the FMS.
This collection owns all these objects, and is itself owned by StEvent. It is therefore vital to not delete any of the objects stored in this container yourself - the collection will handle freeing memory. Similarly, any object added to the collection via an add() method must be allocated with new, and not be owned anywhere else.
Definition at line 36 of file StFmsCollection.h.
StFmsCollection::StFmsCollection | ( | ) |
Constructor
Definition at line 21 of file StFmsCollection.cxx.
StFmsCollection::~StFmsCollection | ( | ) |
Destructor. Deletes all hits, clusters and points
Definition at line 23 of file StFmsCollection.cxx.
void StFmsCollection::addCluster | ( | StFmsCluster * | cluster | ) |
Add a cluster to the collection
Definition at line 41 of file StFmsCollection.cxx.
void StFmsCollection::addHit | ( | StFmsHit * | hit | ) |
Add a hit to the collection
Definition at line 37 of file StFmsCollection.cxx.
void StFmsCollection::addPoint | ( | StFmsPoint * | point | ) |
Add a point to the collection
Definition at line 45 of file StFmsCollection.cxx.
StSPtrVecFmsCluster & StFmsCollection::clusters | ( | ) |
Return the cluster list
Definition at line 57 of file StFmsCollection.cxx.
const StSPtrVecFmsCluster & StFmsCollection::clusters | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 61 of file StFmsCollection.cxx.
StSPtrVecFmsHit & StFmsCollection::hits | ( | ) |
Return the hit list
Definition at line 49 of file StFmsCollection.cxx.
const StSPtrVecFmsHit & StFmsCollection::hits | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 53 of file StFmsCollection.cxx.
unsigned int StFmsCollection::numberOfClusters | ( | ) | const |
Return the number of clusters in the collection
Definition at line 29 of file StFmsCollection.cxx.
unsigned int StFmsCollection::numberOfHits | ( | ) | const |
Return the number of hits in the collection
Definition at line 25 of file StFmsCollection.cxx.
unsigned int StFmsCollection::numberOfPoints | ( | ) | const |
Return the number of points in the collection
Definition at line 33 of file StFmsCollection.cxx.
StSPtrVecFmsPoint & StFmsCollection::points | ( | ) |
Return the cluster list
Definition at line 65 of file StFmsCollection.cxx.
const StSPtrVecFmsPoint & StFmsCollection::points | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 69 of file StFmsCollection.cxx.
|
private |
Owns all FMS clusters.
Definition at line 69 of file StFmsCollection.h.
|
private |
Owns all FMS hits.
Definition at line 68 of file StFmsCollection.h.
|
private |
Owns all FMS points (photons)
Definition at line 70 of file StFmsCollection.h.