StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFstCluster.h
1 #ifndef StFstCluster_hh
2 #define StFstCluster_hh
3 
4 #include <map>
5 
6 #include "StObject.h"
7 #include "StFstRawHit.h"
8 
9 
16 class StFstCluster: public TObject
17 {
18 public:
19 
20  StFstCluster(int key = -1, int disk = -1, int wedge = -1, int sensor = -1, int apv = -1,
21  float meanRStrip = -1, float meanPhiStrip = -1, float totCharge = 0,
22  float totChargeErr = 0, int clusteringType = -1);
23  ~StFstCluster();
24 
25  //accessors
26  vector<StFstRawHit *> &getRawHitVec();
27  const vector<StFstRawHit *> &getRawHitVec() const;
28  int getKey() const;
29  unsigned char getDisk() const;
30  unsigned char getWedge() const;
31  unsigned char getSensor() const;
32  unsigned char getApv() const;
33  float getMeanRStrip() const;
34  float getMeanPhiStrip() const;
35  float getTotCharge() const;
36  float getTotChargeErr() const;
37  unsigned char getMaxTimeBin() const;
38  unsigned char getClusteringType() const;
39  unsigned char getNRawHits() const;
40  unsigned char getNRawHitsR() const;
41  unsigned char getNRawHitsPhi() const;
42  unsigned short getIdTruth() const;
43 
44  void setDisk(int disk);
45  void setWedge(int wedge);
46  void setSensor(int sensor);
47  void setApv(int apv);
48  void setMeanRStrip(float meanRStrip);
49  void setMeanPhiStrip(float meanPhiStrip);
50  void setTotCharge(float totCharge);
51  void setTotChargeErr(float totChargeErr);
52  void setMaxTimeBin(int tb);
53  void setClusteringType(int clusteringType);
54  void setNRawHits(int nRawHits);
55  void setNRawHitsR(int nRawHitsR);
56  void setNRawHitsPhi(int nRawHitsPhi);
57  void setIdTruth(unsigned short idTruth);
58 
59  virtual void Print(Option_t *opt = "") const;
60 
61 protected:
62  Int_t mKey;
63  Float_t mMeanRStrip;
64  Float_t mMeanPhiStrip;
65  Float_t mTotCharge;
66  Float_t mTotChargeErr;
67  UShort_t mIdTruth;
68  UChar_t mDiskId;
69  UChar_t mWedgeId;
70  UChar_t mSensorId;
71  UChar_t mApv;
72  UChar_t mClusteringType;
73  UChar_t mMaxTimeBin;
74  UChar_t mNRawHits;
75  UChar_t mNRawHitsR;
76  UChar_t mNRawHitsPhi;
77  std::vector<StFstRawHit *> mRawHitVec;
78 
79  ClassDef(StFstCluster, 1);
80 };
81 
82 #endif
UChar_t mApv
Apv id the cluster belongs to.
Definition: StFstCluster.h:71
Int_t mKey
Cluster unique label.
Definition: StFstCluster.h:62
UChar_t mDiskId
Disk id the cluster belongs to.
Definition: StFstCluster.h:68
UShort_t mIdTruth
For embedding, 0 as background.
Definition: StFstCluster.h:67
unsigned char getSensor() const
0-2
UChar_t mNRawHits
Cluster size.
Definition: StFstCluster.h:74
StFstCluster(int key=-1, int disk=-1, int wedge=-1, int sensor=-1, int apv=-1, float meanRStrip=-1, float meanPhiStrip=-1, float totCharge=0, float totChargeErr=0, int clusteringType=-1)
UChar_t mNRawHitsPhi
Cluster size in Phi direction.
Definition: StFstCluster.h:76
UChar_t mWedgeId
Wedge id the cluster belongs to.
Definition: StFstCluster.h:69
UChar_t mMaxTimeBin
Max ADC time bin index.
Definition: StFstCluster.h:73
Float_t mMeanPhiStrip
Cluster&#39;s mean phistrip.
Definition: StFstCluster.h:64
unsigned char getDisk() const
1-3
unsigned char getApv() const
0-15
UChar_t mNRawHitsR
Cluster size in R direction.
Definition: StFstCluster.h:75
Float_t mMeanRStrip
Cluster&#39;s mean rstrip.
Definition: StFstCluster.h:63
UChar_t mClusteringType
Clustering algorithm type.
Definition: StFstCluster.h:72
unsigned char getWedge() const
1-36
Float_t mTotChargeErr
rMS noise of the cluster
Definition: StFstCluster.h:66
Float_t mTotCharge
Charge sum of the cluster.
Definition: StFstCluster.h:65
std::vector< StFstRawHit * > mRawHitVec
Map container to save raw hits who contribute to the cluster.
Definition: StFstCluster.h:77
UChar_t mSensorId
Sensor id the cluster belongs to.
Definition: StFstCluster.h:70