StFms  0.0.0
FMS software in the STAR framework
StMuFmsCollection.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * $Id: StMuFmsCollection.h,v 1.1 2010/01/25 03:57:39 tone421 Exp $
4  *
5  * Author: Jingguo Ma, Jan 2010
6  ***************************************************************************
7  *
8  * Description: FMS data interface to StMuFmsHit, StMuFmsCluster and StMuFmsPoint
9  *
10  ***************************************************************************
11  *
12  * $Log: StMuFmsCollection.h,v $
13  * Revision 1.1 2010/01/25 03:57:39 tone421
14  * Added FMS and Roman pot arrays
15  *
16  **************************************************************************/
17 #ifndef StMuFmsCollection_hh
18 #define StMuFmsCollection_hh
19 
20 #include "St_base/StObject.h"
21 #include "TClonesArray.h"
22 
23 class StMuFmsHit;
24 class StMuFmsCluster;
25 class StMuFmsPoint;
26 
27 class StMuFmsCollection : public StObject {
28 public:
31 
32  void init();
33  void addHit();
34  void addCluster();
36  unsigned int numberOfHits() const;
37  unsigned int numberOfClusters() const;
38  unsigned int numberOfPoints() const;
39  void setFmsHitArray(TClonesArray *array) {mHits=array;};
40  void setFmsClusterArray(TClonesArray* array) {mClusters=array;}
41  void setFmsPointArray(TClonesArray* array) {mPoints=array;}
42 
43  StMuFmsHit* getHit(int hitId);
44  StMuFmsCluster* getCluster(int index);
45  StMuFmsPoint* getPoint(int index);
46  TClonesArray* getHitArray() { return mHits; };
47  TClonesArray* getClusterArray() { return mClusters; }
48  TClonesArray* getPointArray() { return mPoints; }
49 
50 private:
51  TClonesArray* mHits;
52  TClonesArray* mClusters;
53  TClonesArray* mPoints;
54 
55  ClassDef(StMuFmsCollection,2)
56 };
57 #endif
TClonesArray * getHitArray()
unsigned int numberOfPoints() const
unsigned int numberOfClusters() const
void setFmsPointArray(TClonesArray *array)
TClonesArray * mClusters
StMuFmsPoint * addPoint()
StMuFmsCluster * getCluster(int index)
void setFmsHitArray(TClonesArray *array)
void setFmsClusterArray(TClonesArray *array)
TClonesArray * mHits
unsigned int numberOfHits() const
TClonesArray * mPoints
StMuFmsPoint * getPoint(int index)
TClonesArray * getClusterArray()
StMuFmsHit * getHit(int hitId)
TClonesArray * getPointArray()