StFms  0.0.0
FMS software in the STAR framework
StFmsCollection.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * $Id: StFmsCollection.h,v 2.1 2010/01/08 22:42:31 ullrich Exp $
4  *
5  * Author: Jingguo Ma, Dec 2009
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StFmsCollection.h,v $
13  * Revision 2.1 2010/01/08 22:42:31 ullrich
14  * Initial Revision.
15  *
16  **************************************************************************/
17 #ifndef StFmsCollection_hh
18 #define StFmsCollection_hh
19 
20 #include "St_base/StObject.h"
21 #include "StEvent/StContainers.h" // StSPtrVecFmsHit/Cluster/Point definitions
22 
23 class StFmsHit;
24 class StFmsCluster;
25 class StFmsPoint;
26 
36 class StFmsCollection : public StObject {
37  public:
43  void addHit(StFmsHit*);
45  void addCluster(StFmsCluster*);
47  void addPoint(StFmsPoint*);
49  unsigned int numberOfHits() const;
51  unsigned int numberOfClusters() const;
53  unsigned int numberOfPoints() const;
55  StSPtrVecFmsHit& hits();
57  const StSPtrVecFmsHit& hits() const;
59  StSPtrVecFmsCluster& clusters();
61  const StSPtrVecFmsCluster& clusters() const;
63  StSPtrVecFmsPoint& points();
65  const StSPtrVecFmsPoint& points() const;
66 
67  private:
68  StSPtrVecFmsHit mHits;
69  StSPtrVecFmsCluster mClusters;
70  StSPtrVecFmsPoint mPoints;
71  ClassDef(StFmsCollection, 2)
72 };
73 
74 #endif
unsigned int numberOfClusters() const
void addPoint(StFmsPoint *)
unsigned int numberOfHits() const
StSPtrVecFmsCluster mClusters
Owns all FMS clusters.
StSPtrVecFmsHit mHits
Owns all FMS hits.
StSPtrVecFmsPoint mPoints
Owns all FMS points (photons)
void addHit(StFmsHit *)
StSPtrVecFmsPoint & points()
void addCluster(StFmsCluster *)
StSPtrVecFmsHit & hits()
unsigned int numberOfPoints() const
StSPtrVecFmsCluster & clusters()