StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StIstCluster.h
1 // $Id: StIstCluster.h,v 1.12 2016/01/05 16:29:25 smirnovd Exp $
2 
3 #ifndef StIstCluster_hh
4 #define StIstCluster_hh
5 
6 #include <map>
7 
8 #include "StObject.h"
9 #include "StIstRawHit.h"
10 
11 
18 class StIstCluster: public TObject
19 {
20 public:
21 
22  StIstCluster(int key = -1, int ladder = -1, int sensor = -1,
23  float meanRow = -1, float meanColumn = -1, float totCharge = 0,
24  float totChargeErr = 0, int clusteringType = -1);
25  ~StIstCluster();
26 
27  //accessors
28  vector<StIstRawHit *> &getRawHitVec();
29  const vector<StIstRawHit *> &getRawHitVec() const;
30  int getKey() const;
31  unsigned char getLadder() const;
32  unsigned char getSensor() const;
33  float getMeanRow() const;
34  float getMeanColumn() 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 getNRawHitsRPhi() const;
41  unsigned char getNRawHitsZ() const;
42  unsigned short getIdTruth() const;
43 
44  void setLadder(int ladder);
45  void setSensor(int sensor);
46  void setMeanRow(float meanRow);
47  void setMeanColumn(float meanColumn);
48  void setTotCharge(float totCharge);
49  void setTotChargeErr(float totChargeErr);
50  void setMaxTimeBin(int tb);
51  void setClusteringType(int clusteringType);
52  void setNRawHits(int nRawHits);
53  void setNRawHitsRPhi(int nRawHitsRPhi);
54  void setNRawHitsZ(int nRawHitsZ);
55  void setIdTruth(unsigned short idTruth);
56 
57  virtual void Print(Option_t *opt = "") const;
58 
59 protected:
60  Int_t mKey;
61  Float_t mMeanRow;
62  Float_t mMeanColumn;
63  Float_t mTotCharge;
64  Float_t mTotChargeErr;
65  UShort_t mIdTruth;
66  UChar_t mLadderId;
67  UChar_t mSensorId;
68  UChar_t mClusteringType;
69  UChar_t mMaxTimeBin;
70  UChar_t mNRawHits;
71  UChar_t mNRawHitsRPhi;
72  UChar_t mNRawHitsZ;
73  std::vector<StIstRawHit *> mRawHitVec;
74 
75  ClassDef(StIstCluster, 1);
76 };
77 
78 #endif
UChar_t mNRawHitsRPhi
Cluster size in r-phi direction.
Definition: StIstCluster.h:71
unsigned char getSensor() const
1-6
UChar_t mMaxTimeBin
Max ADC time bin index.
Definition: StIstCluster.h:69
UChar_t mClusteringType
Clustering algorithm type.
Definition: StIstCluster.h:68
Int_t mKey
Cluster unique label.
Definition: StIstCluster.h:60
Float_t mTotCharge
Charge sum of the cluster.
Definition: StIstCluster.h:63
StIstCluster(int key=-1, int ladder=-1, int sensor=-1, float meanRow=-1, float meanColumn=-1, float totCharge=0, float totChargeErr=0, int clusteringType=-1)
Float_t mMeanRow
Cluster&#39;s mean row.
Definition: StIstCluster.h:61
Float_t mMeanColumn
Cluster&#39;s mean column.
Definition: StIstCluster.h:62
UChar_t mSensorId
Sensor id the cluster belongs to.
Definition: StIstCluster.h:67
UChar_t mNRawHitsZ
Cluster size in beam direction.
Definition: StIstCluster.h:72
Float_t mTotChargeErr
rMS noise of the cluster
Definition: StIstCluster.h:64
UChar_t mLadderId
Ladder id the cluster belongs to.
Definition: StIstCluster.h:66
UChar_t mNRawHits
Cluster size.
Definition: StIstCluster.h:70
std::vector< StIstRawHit * > mRawHitVec
Map container to save raw hits who contribute to the cluster.
Definition: StIstCluster.h:73
UShort_t mIdTruth
For embedding, 0 as background.
Definition: StIstCluster.h:65
unsigned char getLadder() const
1-24