StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuFttCollection.h
1 /***************************************************************************
2  *
3  * $Id: StMuFttCollection.h
4  *
5  * Author: jdb, 2021
6  ***************************************************************************
7  *
8  * Description: Ftt data interface to StMuFttRawHit, StMuFttCluster and StMuFttPoint
9  *
10  ***************************************************************************
11  *
12  *
13  **************************************************************************/
14 #ifndef StMuFttCollection_hh
15 #define StMuFttCollection_hh
16 
17 #include <TObject.h>
18 #include "TClonesArray.h"
19 
20 class StMuFttRawHit;
21 class StMuFttCluster;
22 class StMuFttPoint;
23 
24 class StMuFttCollection : public TObject {
25 public:
28 
29  void init();
30  StMuFttRawHit* addRawHit();
31  StMuFttCluster* addCluster();
32  StMuFttPoint* addPoint();
33 
34  unsigned int numberOfRawHits() const;
35  unsigned int numberOfClusters() const;
36  unsigned int numberOfPoints() const;
37 
38  void setFttHitArray(TClonesArray *array) {mHits=array;};
39  void setFttClusterArray(TClonesArray* array) {mClusters=array;}
40  void setFttPointArray(TClonesArray* array) {mPoints=array;}
41 
42  StMuFttRawHit* getRawHit(int index);
43  StMuFttCluster* getCluster(int index);
44  StMuFttPoint* getPoint(int index);
45 
46  TClonesArray* getRawHitArray() { return mHits; };
47  TClonesArray* getClusterArray() { return mClusters; }
48  TClonesArray* getPointArray() { return mPoints; }
49 
50 private:
51  TClonesArray* mHits=0;
52  TClonesArray* mClusters=0;
53  TClonesArray* mPoints=0;
54 
55  ClassDef(StMuFttCollection,1)
56 };
57 #endif